![错误损坏计数>0 未满足的依赖项](https://linux22.com/image/886850/%E9%94%99%E8%AF%AF%E6%8D%9F%E5%9D%8F%E8%AE%A1%E6%95%B0%3E0%20%E6%9C%AA%E6%BB%A1%E8%B6%B3%E7%9A%84%E4%BE%9D%E8%B5%96%E9%A1%B9.png)
标题上有红色错误图标,我遵循了论坛上的许多建议,但都没有用。我使用匈牙利语的 Ubuntu,但也许你可以从错误消息中读出重要内容。我输入了以下内容,sudo apt-get install -f
结果如下:
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
kde-config-telepathy-accounts
The following NEW packages will be installed:
kde-config-telepathy-accounts
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
2 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 825 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 213142 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy- accounts_4%3a15.12.3-0ubuntu1_amd64.deb ...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
编辑!:
~$ sudo apt-get autoremove kde-config-telepathy-accounts
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'kde-config-telepathy-accounts' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
kde-telepathy-minimal : Depends: kde-config-telepathy-accounts (>= 15.04.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
hamana@hamana-AO756:~$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
hamana@hamana-AO756:~$ sudo apt-get update
Get:1 http://hu.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:4 http://hu.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Fetched 437 kB in 1s (338 kB/s)
Reading package lists... Done
hamana@hamana-AO756:~$ sudo apt-get --reinstall kde-config-telepathy-accounts
E: Command line option --reinstall is not understood in combination with the other options
hamana@hamana-AO756:~$ sudo apt-get install --reinstall kde-config-telepathy-accounts
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
kde-config-telepathy-accounts
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
2 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 825 kB of additional disk space will be used.
(Reading database ... 213142 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb ...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
hamana@hamana-AO756:~$
答案1
sudo dpkg --configure -a
如果不起作用那么
sudo apt-get autoremove <packagename>
sudo apt-get autoclean
sudo apt-get update
sudo apt-get install --reinstall <packagename>
编辑:如果它不起作用则删除 sources.list 文件并创建新的 sources.list...
sudo rm /etc/apt/sources.list
然后输入
sudo software-properties-gtk
这将打开 software-properties-gtk 并自动创建一个 newsources.list。
然后将服务器更改为美国或您选择的任何其他服务器。您必须从新对话框中启用存储库才能创建新的 sources.list。
勾选所有框然后单击“恢复”,再单击“关闭”。
需要恢复默认存储库
sudo apt-get update && sudo apt-get dist-upgrade -y
(最好在安装之前备份此文件,以便在发生此类情况时进行恢复)