首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何清除kde等离子体封装(由于安装期间断电)?

如何清除kde等离子体封装(由于安装期间断电)?
EN

Ask Ubuntu用户
提问于 2017-04-21 00:46:36
回答 1查看 364关注 0票数 1

我在Ubuntu上安装了KDE等离子体,但是电源被切断了。当我试图重新安装时,出现了一个错误。

代码语言:javascript
复制
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).

我试图使用sudo apt-get --purge remove kubuntu-desktop,但失败了。使用sudo apt-get -f install不起作用。

代码语言:javascript
复制
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 60 not upgraded.
704 not fully installed or removed.
Need to get 0 B/148 kB of archives.
After this operation, 808 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 293342 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy accounts_4%3a15.12.3-0ubuntu1_i386.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_i386.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-0ubuntu7) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我也使用了sudo dpkg --remove --force-remove-reinstreq kubuntu-desktop,它成功地完成了,但没有效果。我不能安装synaptic,我也不能升级这个包。我也不能移除google-im.service

EN

回答 1

Ask Ubuntu用户

发布于 2017-04-22 22:12:20

只需运行:

代码语言:javascript
复制
sudo dpkg -i --force-all /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_i386.deb

这将重新安装包,并强制文件被覆盖。当文件从一个包移动到另一个包时,由于存储库没有完全更新,或者在您的情况下,安装中断,新文件似乎与另一个包冲突,因此无法解压缩,就会出现此问题。

上面的命令会导致dpkg忽略任何错误(通过使用--force-all标志)。您也可以使用--force-overwrite

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/907199

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档