我有一些软件包冲突,使我无法安装其他必需的软件:我想安装tftp
但得到以下信息:
ron@jpax-build07:~/tmp$ sudo apt install tftp
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:
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).
ron@jpax-build07:~/tmp$
好的,所以我尝试了:
ron@jpax-build07:~/tmp$ sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libpthread-stubs0-dev:i386 libx11-dev:i386 libxau-dev:i386 libxcb1-dev:i386
libxdmcp-dev:i386 libxext-dev:i386 libxfixes-dev:i386 libxtst6:i386
Use 'sudo apt autoremove' to remove them.
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 0 not upgraded.
444 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]
(Reading database ... 303598 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-0ubuntu9) ...
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)
ron@jpax-build07:~/tmp$
我如何摆脱困境?
更新1
当我这样做时$ sudo apt remove kde-config-telepathy-accounts
,我得到的Package 'kde-config-telepathy-accounts' is not installed, so not removed
地方$ sudo apt remove account-plugin-google
给了我未满足的依赖关系,kde-telepathy-minimal
这取决于kde-config-telepathy-accounts
-这是没有道理的!
仔细阅读错误消息,查找实际的dpkg错误。
这是您的,可能与其他大多数找到此线程的人有所不同。
dpkg:处理归档文件/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb(--unpack)时出错:试图覆盖'/ usr / share / accounts / services / google- im.service”,也位于package-plugin-google 0.12 + 16.04.20160126-0ubuntu1
让我们将其分开并更清楚地重述一下:
dpkg:处理PACKAGE_A(-解压)时出错:试图覆盖FILE_NAME,它也位于PACKAGE_B中
现在,您可以看到错误消息要说的内容吗?
一次只能由一个软件包提供系统上的大多数文件。当两个软件包尝试提供相同的文件时,它们会发生冲突。您不能同时安装两个。
您可以通过确定要保留的软件包并卸载另一个软件包来解决此问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句