我在更新 Kali 系统时遇到问题。尝试 apt-get update && apt-get full-upgrade -y 并得到以下输出 -
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 https://repo.protonvpn.com/debian stable InRelease
Hit:4 http://mirror.vinehost.net/kali kali-rolling InRelease
Hit:5 https://ngrok-agent.s3.amazonaws.com buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
coinor-libcoinmp1v5 : Depends: coinor-libcbc3.1 (>= 2.10.10+really2.10.10+ds1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
尝试过 apt --fix-broken install 并出现相同的错误
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
coinor-libcbc3 libcolamd2 libsuitesparseconfig5
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
coinor-libcbc3.1
The following NEW packages will be installed:
coinor-libcbc3.1
0 upgraded, 1 newly installed, 0 to remove and 291 not upgraded.
3 not fully installed or removed.
Need to get 0 B/728 kB of archives.
After this operation, 2,364 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 553287 files and directories currently installed.)
Preparing to unpack .../coinor-libcbc3.1_2.10.10+really2.10.10+ds1-2_amd64.deb ...
Unpacking coinor-libcbc3.1:amd64 (2.10.10+really2.10.10+ds1-2) ...
dpkg: error processing archive /var/cache/apt/archives/coinor-libcbc3.1_2.10.10+really2.10.10+ds1
-2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libCbc.so.3.10.10', which is also in package coin
or-libcbc3:amd64 2.10.10+ds1-1
Errors were encountered while processing:
/var/cache/apt/archives/coinor-libcbc3.1_2.10.10+really2.10.10+ds1-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
尝试了自动删除、清洁和自动清洁,但没有解决问题。
还尝试了 sudo dpkg --configure -a 并且没有修复 -
dpkg: dependency problems prevent configuration of coinor-libcoinmp1v5:amd64:
coinor-libcoinmp1v5:amd64 depends on coinor-libcbc3.1 (>= 2.10.10+really2.10.10+ds1); however:
Package coinor-libcbc3.1:amd64 is not installed.
dpkg: error processing package coinor-libcoinmp1v5:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-calc:
libreoffice-calc depends on coinor-libcoinmp1v5 (>= 1.8.3-3); however:
Package coinor-libcoinmp1v5:amd64 is not configured yet.
dpkg: error processing package libreoffice-calc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice:
libreoffice depends on libreoffice-calc; however:
Package libreoffice-calc is not configured yet.
dpkg: error processing package libreoffice (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.37-5) ...
Errors were encountered while processing:
coinor-libcoinmp1v5:amd64
libreoffice-calc
libreoffice
尝试删除并清除所有这些软件包,但不起作用。
如有任何帮助,我们将不胜感激。
sudo dpkg -r coinor-libcbc3 sudo apt --修复损坏的安装 sudo apt 升级 须藤apt更新