14.04 LTS 中的“软件包系统损坏”和“无法建立备份链接”组合

14.04 LTS 中的“软件包系统损坏”和“无法建立备份链接”组合

我检查了类似的问题,它们确实与我的问题相似,但之前提出的解决方案都不适合我。

当我尝试使用软件中心安装任何东西时,都会返回依赖性错误:

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)。

目前我无法安装或卸载任何东西。任何建议都将不胜感激。

相关内容