我檢查了類似的問題,這些問題確實與我的問題相似,但之前提出的解決方案都不適合我。
當我嘗試使用軟體中心安裝任何內容時,會傳回依賴項錯誤:
The following packages have unmet dependencies:
cpp-4.8: Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.4-2ubuntu1~14.04.1 is installed
Depends: zlib1g (>= 1:1.1.4) but 1:1.2.8.dfsg-1ubuntu1 is installed
gcc-4.8: Depends: cpp-4.8 (= 4.8.4-2ubuntu1~14.04.1) but 4.8.4-2ubuntu1~14.04 is installed
Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04.1) but 4.8.4-2ubuntu1~14.04.1 is installed
Depends: libgcc-4.8-dev (>= 4.8.4-2ubuntu1~14.04.1) but 4.8.4-2ubuntu1~14.04.1 is installed
Depends: zlib1g (>= 1:1.1.4) but 1:1.2.8.dfsg-1ubuntu1 is installed
當我讓軟體中心嘗試修復它時,我總是得到:
Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu1~14.04.1_amd64.deb ...
Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04) ...
dpkg: error processing archive /var/cache/apt/archives/cpp-4.8_4.8.4-2ubuntu1~14.04.1_amd64.deb (--unpack):
unable to make backup link of `./usr/lib/gcc/x86_64-linux-gnu/4.8/cc1' before installing new version: Input/output error
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
/var/cache/apt/archives/cpp-4.8_4.8.4-2ubuntu1~14.04.1_amd64.deb
Error in function:
dpkg: dependency problems prevent configuration of gcc-4.8:
gcc-4.8 depends on cpp-4.8 (= 4.8.4-2ubuntu1~14.04.1); however:
正如我上面所說,我嘗試了建議的解決方案,例如:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
我也嘗試刪除軟體包但沒有成功。依賴性問題不斷發生,最終我無法建立./usr/lib/gcc/x86_64-linux-gnu/4.8/cc1
訊息的備份連結。如果有幫助就dpkg -S /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1
返回。cpp-4.8: /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1
我的ubuntu版本是14.04,(說明:Ubuntu 14.04.4 LTS)。
目前我無法安裝或卸載任何東西。任何建議將不勝感激。