我试图在Ubuntu16.04上安装一些不同的桌面环境,但是当尝试安装kubuntu-desktop时,它会运行,但是在操作结束时它会出错。现在,当我在apt-get上运行某些东西时,它永远不会结束!它只给了我这个:
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 installed
E: Unmet dependencies. Try using -f.`当我运行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:
kde-config-telepathy-accounts
The following NEW packages will be installed:
kde-config-telepathy-accounts
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
439 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 ... 430234 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.13+16.04.20160810-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)我尝试过删除和清除kubuntu-desktop,但是它给了我相同的错误代码,什么也不做。我试着删除和清除kde-config-telepathy。“心灵感应”。kde。毫无办法!这件事越来越令人沮丧了,怎么回事?我怎么才能解决这个问题?我绝对不想重新安装Ubuntu,我已经安装了很多应用程序!
发布于 2016-08-20 17:54:26
如果你观察到输出,你会发现这一行。
trying to overwrite '/usr/share/accounts/services/google-im.service',
which is also in package account-plugin-google 0.13+16.04.20160810-0ubuntu1问题是其中一个文件已经存在于由其他软件包(account-plugin)安装的系统中,该包正在被您试图安装的新包覆盖。
但是,在没有指定dpkg之前,dpkg不会覆盖它。
所以你有两个选择
在您的情况下,我更喜欢第二种解决方案。
要解决这个问题,请执行以下命令
sudo dpkg -i --force-overwrite /var/cache/apt/archives/kde-config-
telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb紧接着是
sudo apt-get -f install发布于 2016-08-20 14:23:52
让Ubuntu修复未满足的依赖项和损坏的包的命令是sudo apt-获取从手册页面安装-f:
-f,--修复-损坏的修补程序;尝试纠正一个依赖关系中断的系统。当与安装/删除一起使用时,此选项可以省略任何包以允许推断出可能的解决方案。如果指定了包,则必须完全纠正问题。当首次运行APT时,这个选项有时是必需的;APT本身不允许系统上存在破碎的包依赖关系。系统的依赖结构可能会损坏到需要手动干预(这通常意味着使用dselect(1)或dpkg -remove来消除一些错误的包)。
运行命令时,Ubuntu将尝试修复自己。当它完成时,您可以通过再次运行命令来测试它是否工作,并且您应该收到类似于以下内容的输出:
正在读取包列表...创建依赖树读取状态信息..。已完成0升级,0新安装,0删除,2未升级。
发布于 2016-08-20 14:18:48
经过大量的谷歌搜索和实验,我终于找到了答案。打开突触,选择状态,然后单击“断开”。完全移除那里的任何东西,然后它又起作用了。就像魔法一样。但我还是不明白为什么在修好之前你什么都不能安装.我想,电脑还有很长的路要走。
https://askubuntu.com/questions/814581
复制相似问题