AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1284808
Accepted
Yadnesh Salvi
Yadnesh Salvi
Asked: 2020-10-19 07:43:35 +0800 CST2020-10-19 07:43:35 +0800 CST 2020-10-19 07:43:35 +0800 CST

从 18.04 升级到 ubuntu 20.04 失败

  • 772

我尝试过sudo do-release-upgrade,但失败并出现以下错误

Calculating the changes

Calculating the changes

Could not calculate the 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

处的输出/var/log/dist-upgrade/main.log如下

2020-10-18 20:54:09,188 INFO Using config files '['./DistUpgrade.cfg.bionic']'
2020-10-18 20:54:09,188 INFO uname information: 'Linux not-script-kiddie 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64'
2020-10-18 20:54:09,609 INFO apt version: '1.6.12ubuntu0.1'
2020-10-18 20:54:09,609 INFO python version: '3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]'
2020-10-18 20:54:09,613 INFO release-upgrader version '20.04.28' started
2020-10-18 20:54:09,624 INFO locale: 'en_IN' 'ISO8859-1'
2020-10-18 20:54:09,670 INFO screen could not be run
2020-10-18 20:54:09,702 DEBUG Using 'DistUpgradeViewText' view
2020-10-18 20:54:09,749 DEBUG enable dpkg --force-overwrite
2020-10-18 20:54:09,778 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2020-10-18 20:54:14,187 DEBUG lsb-release: 'bionic'
2020-10-18 20:54:14,187 DEBUG _pythonSymlinkCheck run
2020-10-18 20:54:14,188 DEBUG openCache()
2020-10-18 20:54:14,188 DEBUG quirks: running PreCacheOpen
2020-10-18 20:54:14,188 DEBUG running Quirks.PreCacheOpen
2020-10-18 20:54:15,314 DEBUG Comparing 4.15.0-118 with
2020-10-18 20:54:15,332 DEBUG Comparing 5.4.0-47 with 4.15.0-118
2020-10-18 20:54:15,332 DEBUG Comparing 5.4.0-48 with 5.4.0-47
2020-10-18 20:54:15,594 DEBUG /openCache(), new cache size 100437
2020-10-18 20:54:15,595 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2020-10-18 20:54:15,595 DEBUG checkViewDepends()
2020-10-18 20:54:15,677 DEBUG running doUpdate() (showErrors=False)
2020-10-18 20:54:31,823 DEBUG openCache()
2020-10-18 20:54:33,115 DEBUG Comparing 4.15.0-118 with
2020-10-18 20:54:33,121 DEBUG Comparing 5.4.0-47 with 4.15.0-118
2020-10-18 20:54:33,122 DEBUG Comparing 5.4.0-48 with 5.4.0-47
2020-10-18 20:54:33,484 DEBUG /openCache(), new cache size 100757
2020-10-18 20:54:33,484 DEBUG doPostInitialUpdate
2020-10-18 20:54:33,484 DEBUG quirks: running focalPostInitialUpdate
2020-10-18 20:54:33,484 DEBUG running Quirks.focalPostInitialUpdate
2020-10-18 20:54:37,160 DEBUG MetaPkgs:
2020-10-18 20:54:42,777 DEBUG Foreign: bluetooth bluez bluez-cups bluez-obexd cuda-repo-ubuntu1604 google-chrome-stable libbluetooth3 libcudnn7 libcudnn7-dev libvdpau1 libvulkan1 nvidia-machine-learning-repo-ubuntu1604 nvidia-opencl-icd-440 sublime-text teams teamviewer vdpau-driver-all
2020-10-18 20:54:42,777 DEBUG Obsolete: cuda-repo-ubuntu1604-9-0-local libcudnn7-doc zoom
2020-10-18 20:54:42,778 DEBUG updateSourcesList()
2020-10-18 20:54:42,817 DEBUG rewriteSourcesList() with mirror_check
2020-10-18 20:54:42,817 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2020-10-18 20:54:42,817 DEBUG Checking pkg: ubuntu-minimal
2020-10-18 20:54:42,820 DEBUG Checking pkg: ubuntu-standard
2020-10-18 20:54:42,822 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic main restricted'
2020-10-18 20:54:42,823 DEBUG verifySourcesListEntry: deb http://it-mirrors.evowise.com/ubuntu/ focal main restricted
2020-10-18 20:54:42,823 DEBUG url_downloadable: http://it-mirrors.evowise.com/ubuntu//dists/focal/Release
2020-10-18 20:54:42,823 DEBUG s='http' n='it-mirrors.evowise.com' p='/ubuntu//dists/focal/Release' q='' f=''
2020-10-18 20:54:43,384 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal main restricted' updated to new dist
2020-10-18 20:54:43,384 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic-updates main restricted'
2020-10-18 20:54:43,386 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal-updates main restricted' updated to new dist
2020-10-18 20:54:43,386 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic universe'
2020-10-18 20:54:43,387 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal universe' updated to new dist
2020-10-18 20:54:43,388 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic-updates universe'
2020-10-18 20:54:43,389 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal-updates universe' updated to new dist
2020-10-18 20:54:43,389 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic multiverse'
2020-10-18 20:54:43,390 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal multiverse' updated to new dist
2020-10-18 20:54:43,390 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic-updates multiverse'
2020-10-18 20:54:43,392 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal-updates multiverse' updated to new dist
2020-10-18 20:54:43,392 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic-backports main restricted universe multiverse'
2020-10-18 20:54:43,393 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal-backports main restricted universe multiverse' updated to new dist
2020-10-18 20:54:43,393 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic-security main restricted'
2020-10-18 20:54:43,394 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal-security main restricted' updated to new dist
2020-10-18 20:54:43,394 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic-security universe'
2020-10-18 20:54:43,396 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal-security universe' updated to new dist
2020-10-18 20:54:43,396 DEBUG examining: 'deb http://it-mirrors.evowise.com/ubuntu/ bionic-security multiverse'
2020-10-18 20:54:43,397 DEBUG entry 'deb http://it-mirrors.evowise.com/ubuntu/ focal-security multiverse' updated to new dist
2020-10-18 20:54:43,397 DEBUG examining: 'deb [arch=amd64] https://repo.skype.com/deb stable main'
2020-10-18 20:54:43,399 DEBUG entry '# deb [arch=amd64] https://repo.skype.com/deb stable main # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,399 DEBUG examining: 'deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main'
2020-10-18 20:54:43,400 DEBUG entry '# deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,400 DEBUG examining: 'deb http://ppa.launchpad.net/bluetooth/bluez/ubuntu bionic main'
2020-10-18 20:54:43,401 DEBUG entry '# deb http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal main # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,401 DEBUG examining: 'deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main'
2020-10-18 20:54:43,402 DEBUG entry '# deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,402 DEBUG examining: 'deb file:///var/cuda-repo-9-0-local /'
2020-10-18 20:54:43,403 DEBUG entry '# deb file:///var/cuda-repo-9-0-local / # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,403 DEBUG examining: 'deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 /'
2020-10-18 20:54:43,404 DEBUG entry '# deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 / # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,404 DEBUG examining: 'deb https://download.sublimetext.com/ apt/stable/'
2020-10-18 20:54:43,405 DEBUG entry '# deb https://download.sublimetext.com/ apt/stable/ # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,405 DEBUG examining: 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main'
2020-10-18 20:54:43,406 DEBUG entry '# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,406 DEBUG examining: 'deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /'
2020-10-18 20:54:43,408 DEBUG entry '# deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 / # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:43,408 DEBUG examining: 'deb http://linux.teamviewer.com/deb stable main'
2020-10-18 20:54:43,409 DEBUG entry '# deb http://linux.teamviewer.com/deb stable main # disabled on upgrade to focal' was disabled (unknown mirror)
2020-10-18 20:54:57,582 DEBUG running doUpdate() (showErrors=True)
2020-10-18 20:55:20,273 DEBUG openCache()
2020-10-18 20:55:21,086 DEBUG Comparing 4.15.0-118 with
2020-10-18 20:55:21,087 DEBUG Comparing 5.4.0-47 with 4.15.0-118
2020-10-18 20:55:21,087 DEBUG Comparing 5.4.0-48 with 5.4.0-47
2020-10-18 20:55:21,271 DEBUG /openCache(), new cache size 66663
2020-10-18 20:55:21,272 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2020-10-18 20:55:21,274 DEBUG quirks: running PreDistUpgradeCache
2020-10-18 20:55:21,275 DEBUG running Quirks.PreDistUpgradeCache
2020-10-18 20:55:21,275 INFO checking for python-dbg
2020-10-18 20:55:21,275 INFO checking for python-doc
2020-10-18 20:55:21,275 INFO checking for python-minimal
2020-10-18 20:55:21,275 INFO installing python-is-python2 because python-minimal was installed
2020-10-18 20:55:21,275 DEBUG Installing 'python-is-python2' (python-minimal was installed on the system)
2020-10-18 20:55:21,631 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
2020-10-18 20:55:21,633 DEBUG abort called
2020-10-18 20:55:21,636 DEBUG openCache()
2020-10-18 20:55:26,258 DEBUG Comparing 4.15.0-118 with
2020-10-18 20:55:26,263 DEBUG Comparing 5.4.0-47 with 4.15.0-118
2020-10-18 20:55:26,263 DEBUG Comparing 5.4.0-48 with 5.4.0-47
2020-10-18 20:55:26,527 DEBUG /openCache(), new cache size 100757
do-release-upgrade 18.04 20.04
  • 1 1 个回答
  • 1392 Views

1 个回答

  • Voted
  1. Best Answer
    Maybe LB Did It
    2020-10-19T07:51:02+08:002020-10-19T07:51:02+08:00

    运行命令ppa-purge排除源问题;我的升级必须这样做。还请确保您的库存软件完好无损(我的示例是我将 Python 3.8.2 迁移到 3.9,因此它拒绝更新,因此不得不恢复 3.8.2)。

    除了 ppa-purge 问题之外,似乎没有什么真正会导致如此巨大的错误。如果出现更多问题,将更新此内容。让我知道发生什么事。

    • 1

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve