【问题标题】:Failed to fetch archives while installing gcc-4.9 g++-4.9安装 gcc-4.9 g++-4.9 时无法获取档案
【发布时间】:2016-08-04 06:20:33
【问题描述】:

目前,我使用的是 Linux Mint 17.3。

E: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/pool/main/g/gcc-4.9/cpp-4.9_4.9.3-8ubuntu2~14.04_amd64.deb Hash Sum mismatch

E: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/pool/main/g/gcc-4.9/g++-4.9_4.9.3-8ubuntu2~14.04_amd64.deb Hash Sum mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

【问题讨论】:

  • 这与 C++ 和编程无关。我已请求转移到 superuser.stackexchange.com。你会更幸运地在那里得到答案。

标签: linux gcc linux-mint


【解决方案1】:

删除/var/lib/apt/lists directory的内容:

sudo rm -rf /var/lib/apt/lists
sudo apt-get update
sudo apt-get -f install

安装gcc-4.9

sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

【讨论】:

    猜你喜欢
    • 2020-10-30
    • 1970-01-01
    • 2016-02-01
    • 2014-07-28
    • 1970-01-01
    • 1970-01-01
    • 2014-09-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多