2016-08-04 39 views
2

目前,我正在使用Linux Mint 17.3。無法在安裝gcc-4.9 g ++時提取檔案 - 4.9

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?

+0

這與C++無關,也不與編程有關。我已要求轉到superuser.stackexchange.com。你會有更多的運氣在那裏得到答案。 –

回答

0

刪除的/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