无法从 18.04 升级到 20.04 — “Ubuntu 未提供非官方软件包...”

无法从 18.04 升级到 20.04 — “Ubuntu 未提供非官方软件包...”

运行sudo do-release-upgrade偶然发现错误:

An unresolvable problem occurred while calculating the upgrade. 

This was likely caused by: 
* Unofficial software packages not provided by Ubuntu 
Please use the tool 'ppa-purge' from the ppa-purge 
package to remove software from a Launchpad PPA and 
try the upgrade again. 

If none of this applies, then please report this bug using the 
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If 
you want to investigate this yourself the log files in 
'/var/log/dist-upgrade' will contain details about the upgrade. 
Specifically, look at 'main.log' and 'apt.log'. 


Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

我附加了 apt.log 和 main.log https://gist.github.com/omerbn/6e44593d8cab464be7f959b426d1c31c

下一步我应该做什么?

谢谢,

答案1

  1. 安装 ppa-purge

    sudo apt install ppa-purge
    
  2. 找到main.log有问题的包:

    grep disabled /var/log/dist-upgrade/main.log
    

    输出示例:

    2021-03-19 02:44:31,173 DEBUG entry '# deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main # disabled on upg...
    
  3. 删除 ppa

    sudo ppa-purge kisak/kisak-mesa
    

答案2

我通过以下简单的方法解决了这个问题:

  • 1.- 从“软件和更新”>“其他软件”禁用 ppa 存储库

  • 2.- 清洁公寓:

sudo dpkg --configure -a
sudo apt clean
sudo apt update

  • 3.- 继续升级
sudo do-release-upgrade

答案3

我遵循了@Omeriko 当前接受的答案:安装 ppa-purge

sudo apt install ppa-purge

在 main.log 中查找有故障的包:

grep disabled /var/log/dist-upgrade/main.log

输出示例:

2021-03-19 02:44:31,173 DEBUG entry '# deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main # disabled on upg...

删除 ppa

sudo ppa-purge kisak/kisak-mesa

然后还有@Ecofintech 的回答:

sudo dpkg --configure -a
sudo apt clean
sudo apt update

最后升级:

sudo do-release-upgrade

感谢你们两位的回答,帮助我升级了系统

相关内容