我安装了 KDE,现在我想删除它。使用以下命令:sudo apt-get purge kubuntu-desktop
但是我没有删除它,而是收到以下错误:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
运行后,sudo dpkg --configure -a
我再次尝试运行清除命令,这是输出:
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).
我运行了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 0 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 ... 364670 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-0ubuntu5) ...
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)
答案1
我使用了 Synaptic 并卸载了 kubuntu。我对 kubuntu 软件包使用了“标记为完全删除”,这解决了问题。
我还安装了 BleachBit 并进行了自动清理以删除不必要的过时文件。
答案2
您一定中断了 dpkg。只需运行它所提示的命令,一切都会修复,然后您就可以删除它了。
答案3
尝试这个:
打开终端,
按Ctrl++AltT
运行:
exec sudo -i
rm /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
dpkg --configure -a
apt-get update
apt-get install --reinstall aptitude deborphan
aptitude remove '?and(?reverse-depends(kubuntu),?not(?reverse-depends(?exact-name(ubuntu-desktop))))'
aptitude remove '?and(?reverse-depends(kde),?not(?reverse-depends(?exact-name(ubuntu-desktop))))'
apt-get install --reinstall ubuntu-desktop
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get autoremove
apt-get clean
reboot