purge-ppa 崩溃后如何将 Ubuntu 16 LTS 升级到 18 LTS

purge-ppa 崩溃后如何将 Ubuntu 16 LTS 升级到 18 LTS

在自动 Ubuntu 图形界面升级过程中,它要求我执行purge-ppa,以清除 PPA...我照做了...但在 期间ppa-purge出现错误,现在,即使在终端上运行命令sudo apt upgrade,其中写道:

The following packages have mismatched dependencies:
  libelementary2: It depends: libefreet-bin
                   It depends: libethumb-client-bin
  terminology: It depends: libefreet-bin
                It depends: libethumb-client-bin
E: Mismatched dependencies. Try using -f.

正如建议的那样我也尝试了apt-get -f install但是

sudo apt-get -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:
  dctrl-tools libcgal11v5 libcoin80v5 libiso9660-8 libmcrypt4 libmpcdec6 libopenscenegraph100v5 libopenthreads20 libpcre2-8-0 libpgm-5.2-0
  libvcdinfo0 libxine2 libxine2-bin libxine2-doc libxine2-ffmpeg libxine2-misc-plugins libxine2-plugins snapd-login-service xml2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libefreet-bin libethumb-client-bin
The following NEW packages will be installed:
  libefreet-bin libethumb-client-bin
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
26 not fully installed or removed.
Need to get 0 B/31.3 kB of archives.
After this operation, 137 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 289060 files and directories currently installed.)
Preparing to unpack .../libefreet-bin_1.8.6-2.5_amd64.deb ...
Unpacking libefreet-bin (1.8.6-2.5) ...
dpkg: error processing archive /var/cache/apt/archives/libefreet-bin_1.8.6-2.5_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/efreetd', which is also in package libefl-bin 201702271931-50218~ubuntu16.04.1
Preparing to unpack .../libethumb-client-bin_1.8.6-2.5_amd64.deb ...
Unpacking libethumb-client-bin (1.8.6-2.5) ...
dpkg: error processing archive /var/cache/apt/archives/libethumb-client-bin_1.8.6-2.5_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/ethumbd', which is also in package libefl-bin 201702271931-50218~ubuntu16.04.1
Errors were encountered while processing:
 /var/cache/apt/archives/libefreet-bin_1.8.6-2.5_amd64.deb
 /var/cache/apt/archives/libethumb-client-bin_1.8.6-2.5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我进行的清除操作中,最后的一些清除操作出现了错误:

sudo ppa-purge ppa:mkusb/unstable
sudo ppa-purge ppa:webupd8team/atom
sudo ppa-purge ppa:ondrej/php

sudo ppa-purge ppa:git-core/ppa
sudo ppa-purge ppa:enlightenment-git/ppa
sudo ppa-purge ppa:smathot/cogscinl
sudo ppa-purge ppa:mkusb/ppa
sudo ppa-purge ppa:gezakovacs/ppa
sudo ppa-purge ppa:mc3man/avidemux1

答案1

在你的特定情况下,我建议强制使用以下方法安装软件包

sudo dpkg -i --force-all /var/cache/apt/archives/libefreet-bin_1.8.6-2.5_amd64.deb
sudo dpkg -i --force-all /var/cache/apt/archives/libethumb-client-bin_1.8.6-2.5_amd64.deb

然后继续:

sudo apt-get -f install

最后安装最新的依赖项

sudo apt-get dist-upgrade

相关内容