在安装、更新或删除任何应用程序时,出现此错误:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
winetricks : Depends: cabextract
E: Unmet dependencies. Try using -f.
当我运行时sudo apt -f install
,出现此错误:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
cabextract
The following NEW packages will be installed:
cabextract
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
Need to get 0 B/21.4 kB of archives.
After this operation, 112 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 282096 files and directories currently
installed.)
Preparing to unpack .../cabextract_1.6-1_amd64.deb ...
Unpacking cabextract (1.6-1) ...
dpkg: error processing archive /var/cache/apt/archives/cabextract_1.6-
1_amd64.deb (--unpack):
trying to overwrite '/usr/share/icons/cab_extract.png', which is also
in package zorinos-icons 10.0~xenial~NoobsLab.com
Errors were encountered while processing:
/var/cache/apt/archives/cabextract_1.6-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
删除该软件包zorinos-icons
。它不是官方的,并且cabextract
通过提供相同的文件来阻止安装。
答案2
由于 apt 无法工作,我无法执行 sudo apt purge zorinos-icons,因此我不得不通过 root 模式下的文件管理器搜索来手动删除这些内容。现在已修复。