升级到 Ubuntu 20.04

升级到 Ubuntu 20.04

我正在尝试从 Ubuntu 18.04.5 升级到 Ubuntu 20.04。在apt update&之后apt upgrade,我尝试

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.

我发现我之前已经安装过ppa:ubuntu-toolchain-r/test并且 ppa:hanipouspilot/rtlwifi导致了这个问题。

因此我尝试清除它们,但出现以下错误:

root@ubuntu:~# ppa-purge ppa:ubuntu-toolchain-r/test
Updating packages lists
E: Failed to fetch http://ppa.launchpad.net/hanipouspilot/rtlwifi/ubuntu/dists/bionic/InRelease  403  Forbidden [IP: 91.189.95.83 80]
E: The repository 'http://ppa.launchpad.net/hanipouspilot/rtlwifi/ubuntu bionic InRelease' is not signed.
Warning:  apt-get update failed for some reason
root@ubuntu:~# ppa-purge ppa:hanipouspilot/rtlwifi
Updating packages lists
E: Failed to fetch http://ppa.launchpad.net/hanipouspilot/rtlwifi/ubuntu/dists/bionic/InRelease  403  Forbidden [IP: 91.189.95.83 80]
E: The repository 'http://ppa.launchpad.net/hanipouspilot/rtlwifi/ubuntu bionic InRelease' is not signed.
Warning:  apt-get update failed for some reason

看起来清除失败了,因为服务器不再可用?

我如何手动删除这些包?

- - 编辑 - - - /var/log/dist-upgrade/[CURRENT_DATE]/main.log 包含以下错误:

ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
 DEBUG abort called

/var/log/dist-upgrade/[CURRENT_DATE]/apt.log 末尾包含

Investigating (5) gsettings-desktop-schemas:amd64 < 3.28.0-1ubuntu1 -> 3.36.0-1ubuntu1 @ii umU Ib >
Broken gsettings-desktop-schemas:amd64 Breaks on mutter:amd64 < 3.28.4-0ubuntu18.04.2 | 3.36.4-0ubuntu0.20.04.2 @ii umH > (< 3.31.4)
  Considering mutter:amd64 2 as a solution to gsettings-desktop-schemas:amd64 79
  Upgrading mutter:amd64 due to Breaks field in gsettings-desktop-schemas:amd64
Investigating (5) mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib >
Broken mutter:amd64 Depends on gnome-settings-daemon-common:amd64 < none | 3.36.1-0ubuntu1 @un uH >
  Considering gnome-settings-daemon-common:amd64 0 as a solution to mutter:amd64 2
  MarkKeep mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib > FU=0
  Holding Back mutter:amd64 rather than change gnome-settings-daemon-common:amd64
Investigating (5) gir1.2-mutter-6:amd64 < none -> 3.36.4-0ubuntu0.20.04.2 @un uN Ib >
Broken gir1.2-mutter-6:amd64 Depends on libmutter-6-0:amd64 < none | 3.36.4-0ubuntu0.20.04.2 @un uH > (= 3.36.4-0ubuntu0.20.04.2)
  Considering libmutter-6-0:amd64 0 as a solution to gir1.2-mutter-6:amd64 0
  MarkKeep gir1.2-mutter-6:amd64 < none -> 3.36.4-0ubuntu0.20.04.2 @un uN Ib > FU=0
  Holding Back gir1.2-mutter-6:amd64 rather than change libmutter-6-0:amd64
Investigating (6) gsettings-desktop-schemas:amd64 < 3.28.0-1ubuntu1 -> 3.36.0-1ubuntu1 @ii umU Ib >
Broken gsettings-desktop-schemas:amd64 Breaks on mutter:amd64 < 3.28.4-0ubuntu18.04.2 | 3.36.4-0ubuntu0.20.04.2 @ii umH > (< 3.31.4)
  Considering mutter:amd64 2 as a solution to gsettings-desktop-schemas:amd64 79
  Upgrading mutter:amd64 due to Breaks field in gsettings-desktop-schemas:amd64
Investigating (6) mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib >
Broken mutter:amd64 Depends on gnome-settings-daemon-common:amd64 < none | 3.36.1-0ubuntu1 @un uH >
  Considering gnome-settings-daemon-common:amd64 0 as a solution to mutter:amd64 2
  MarkKeep mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib > FU=0
  Holding Back mutter:amd64 rather than change gnome-settings-daemon-common:amd64
Investigating (7) gsettings-desktop-schemas:amd64 < 3.28.0-1ubuntu1 -> 3.36.0-1ubuntu1 @ii umU Ib >
Broken gsettings-desktop-schemas:amd64 Breaks on mutter:amd64 < 3.28.4-0ubuntu18.04.2 | 3.36.4-0ubuntu0.20.04.2 @ii umH > (< 3.31.4)
  Considering mutter:amd64 2 as a solution to gsettings-desktop-schemas:amd64 79
  Upgrading mutter:amd64 due to Breaks field in gsettings-desktop-schemas:amd64
Investigating (7) mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib >
Broken mutter:amd64 Depends on gnome-settings-daemon-common:amd64 < none | 3.36.1-0ubuntu1 @un uH >
  Considering gnome-settings-daemon-common:amd64 0 as a solution to mutter:amd64 2
  MarkKeep mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib > FU=0
  Holding Back mutter:amd64 rather than change gnome-settings-daemon-common:amd64
Investigating (8) gsettings-desktop-schemas:amd64 < 3.28.0-1ubuntu1 -> 3.36.0-1ubuntu1 @ii umU Ib >
Broken gsettings-desktop-schemas:amd64 Breaks on mutter:amd64 < 3.28.4-0ubuntu18.04.2 | 3.36.4-0ubuntu0.20.04.2 @ii umH > (< 3.31.4)
  Considering mutter:amd64 2 as a solution to gsettings-desktop-schemas:amd64 79
  Upgrading mutter:amd64 due to Breaks field in gsettings-desktop-schemas:amd64
Investigating (8) mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib >
Broken mutter:amd64 Depends on gnome-settings-daemon-common:amd64 < none | 3.36.1-0ubuntu1 @un uH >
  Considering gnome-settings-daemon-common:amd64 0 as a solution to mutter:amd64 2
  MarkKeep mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib > FU=0
  Holding Back mutter:amd64 rather than change gnome-settings-daemon-common:amd64
Investigating (9) gsettings-desktop-schemas:amd64 < 3.28.0-1ubuntu1 -> 3.36.0-1ubuntu1 @ii umU Ib >
Broken gsettings-desktop-schemas:amd64 Breaks on mutter:amd64 < 3.28.4-0ubuntu18.04.2 | 3.36.4-0ubuntu0.20.04.2 @ii umH > (< 3.31.4)
  Considering mutter:amd64 2 as a solution to gsettings-desktop-schemas:amd64 79
  Upgrading mutter:amd64 due to Breaks field in gsettings-desktop-schemas:amd64
Investigating (9) mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib >
Broken mutter:amd64 Depends on gnome-settings-daemon-common:amd64 < none | 3.36.1-0ubuntu1 @un uH >
  Considering gnome-settings-daemon-common:amd64 0 as a solution to mutter:amd64 2
  MarkKeep mutter:amd64 < 3.28.4-0ubuntu18.04.2 -> 3.36.4-0ubuntu0.20.04.2 @ii umU Ib > FU=0
  Holding Back mutter:amd64 rather than change gnome-settings-daemon-common:amd64
Done

谢谢!Vitaliy

答案1

我在从 18.04 LTS 升级到 20.04 LTS 时遇到了类似的问题。

我必须删除列出的损坏的软件包/var/log/dist-upgrade/[CURRENT_DATE]/apt.log

列出损坏的包裹:

grep Broken /var/log/dist-upgrade/[CURRENT_DATE]/apt.log

然后删除每个损坏的包装:

apt remove gsettings-desktop-schemas mutter gir1.2-mutter-6

可能需要删除依赖于这些包的其他包。

答案2

来自这里的答案:由于“E:Error,pkgProblemResolver::Resolve 生成​​中断,这可能是由持有的包裹引起的”而阻止从 18.04 升级到 20.04。
问题可能与咕哝尝试
sudo apt remove python2.7-minimal无关sudo apt autoremove

这确实解决了我的问题。

相关内容