cannot upgrade ubuntu 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
here are the last bits of main.log
2021-01-28 16:19:57,078 DEBUG Obsolete: cuda-command-
2021-01-28 16:19:57,079 DEBUG updateSourcesList()
2021-01-28 16:19:57,088 DEBUG rewriteSourcesL
2021-01-28 16:19:57,089 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2021-01-28 16:19:57,089 DEBUG Checking pkg: ubuntu-minimal
2021-01-28 16:19:57,090 DEBUG Checking pkg: ubuntu-standard
2021-01-28 16:19:57,092 DEBUG examining: 'deb http://
2021-01-28 16:19:57,092 DEBUG verifySourcesLi
2021-01-28 16:19:57,092 DEBUG url_downloadable: http://
2021-01-28 16:19:57,092 DEBUG s='http' n='us.archive.
2021-01-28 16:19:57,114 DEBUG entry 'deb http://
2021-01-28 16:19:57,114 DEBUG examining: 'deb http://
2021-01-28 16:19:57,114 DEBUG entry 'deb http://
2021-01-28 16:19:57,114 DEBUG examining: 'deb http://
2021-01-28 16:19:57,114 DEBUG entry 'deb http://
2021-01-28 16:19:57,114 DEBUG examining: 'deb http://
2021-01-28 16:19:57,114 DEBUG entry 'deb http://
2021-01-28 16:19:57,114 DEBUG examining: 'deb http://
2021-01-28 16:19:57,115 DEBUG entry 'deb http://
2021-01-28 16:19:57,115 DEBUG examining: 'deb http://
2021-01-28 16:19:57,115 DEBUG entry 'deb http://
2021-01-28 16:19:57,115 DEBUG examining: 'deb http://
2021-01-28 16:19:57,115 DEBUG entry 'deb http://
2021-01-28 16:19:57,115 DEBUG examining: 'deb http://
2021-01-28 16:19:57,115 DEBUG verifySourcesLi
2021-01-28 16:19:57,115 DEBUG url_downloadable: http://
2021-01-28 16:19:57,115 DEBUG s='http' n='security.
2021-01-28 16:19:57,134 DEBUG entry 'deb http://
2021-01-28 16:19:57,134 DEBUG examining: 'deb http://
2021-01-28 16:19:57,134 DEBUG entry 'deb http://
2021-01-28 16:19:57,134 DEBUG examining: 'deb http://
2021-01-28 16:19:57,135 DEBUG entry 'deb http://
2021-01-28 16:19:57,138 DEBUG running doUpdate() (showErrors=True)
2021-01-28 16:20:11,116 DEBUG openCache()
2021-01-28 16:20:12,073 DEBUG Comparing 5.4.0-54 with
2021-01-28 16:20:12,074 DEBUG Comparing 5.4.0-58 with 5.4.0-54
2021-01-28 16:20:12,074 DEBUG Comparing 5.4.0-64 with 5.4.0-58
2021-01-28 16:20:12,332 DEBUG /openCache(), new cache size 67657
2021-01-28 16:20:12,332 DEBUG need_server_mode(): run in 'desktop' mode, (because of pkg 'ubuntu-desktop')
2021-01-28 16:20:12,333 DEBUG quirks: running PreDistUpgradeCache
2021-01-28 16:20:12,333 DEBUG running Quirks.
2021-01-28 16:20:12,333 INFO checking for python-dbg
2021-01-28 16:20:12,333 INFO checking for python-doc
2021-01-28 16:20:12,333 INFO checking for python-minimal
2021-01-28 16:20:12,333 INFO installing python-is-python2 because python-minimal was installed
2021-01-28 16:20:12,333 DEBUG Installing 'python-is-python2' (python-minimal was installed on the system)
2021-01-28 16:23:12,303 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'
2021-01-28 16:23:12,306 DEBUG abort called
2021-01-28 16:23:12,307 DEBUG openCache()
2021-01-28 16:23:15,917 DEBUG Comparing 5.4.0-54 with
2021-01-28 16:23:15,917 DEBUG Comparing 5.4.0-58 with 5.4.0-54
2021-01-28 16:23:15,917 DEBUG Comparing 5.4.0-64 with 5.4.0-58
2021-01-28 16:23:16,329 DEBUG /openCache(), new cache size 101660
and here is apt.log
Log time: 2021-01-28 16:19:45.851060
Log time: 2021-01-28 16:20:12.314792
MarkInstall python-
Installing python2 as Depends of python-is-python2
MarkInstall python2:amd64 < none -> 2.7.17-2ubuntu4 @un uN Ib > FU=0
Installing python2-minimal as PreDepends of python2
MarkInstall python2-
Removing: python-minimal
MarkDelete python-
Installing libpython2-stdlib as Depends of python2
MarkInstall libpython2-
Removing: libpython-stdlib
MarkDelete libpython-
Removing: python
MarkDelete python:amd64 < 2.7.15~rc1-1 @ii mK Ib > FU=0
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) nodejs:amd64 < 14.15.4-
Broken nodejs:amd64 Depends on python-
Considering python-
Added python-
Fixing nodejs:amd64 via keep of python-
MarkKeep python-
Investigating (0) python2-
Broken python2-
Considering python-
MarkKeep python2-
Holding Back python2-
Investigating (1) python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2:amd64 PreDepends on python2-
Considering python2-
MarkKeep python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
Holding Back python2:amd64 rather than change python2-
Investigating (2) python-
Broken python-
Considering python2:amd64 1 as a solution to python-
Re-Instated python2-
Re-Instated python2:amd64
Investigating (2) python2-
Broken python2-
Considering python-
MarkKeep python2-
Holding Back python2-
Investigating (3) python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib >
Broken python2:amd64 PreDepends on python2-
Considering python2-
MarkKeep python2:amd64 < none -> 2.7.17-2ubuntu4 @un umN Ib > FU=0
Holding Back python2:amd64 rather than change python2-
Investigating (4) python-
Broken python-
Considering python2:amd64 1 as a solution to python-
Done
Log time: 2021-01-28 16:23:16.315041
So I had python2 on this machine but it is choking the upgrade.
I do have python2 on this system:
$ python2 -V
Python 2.7.17
but it seems unremovable:
sudo apt remove python2 --simulate
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python2
FIXED with 'autoremove'
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.4.0-64-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.21
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Thu Jan 28 16:22:47 2021
InstallationDate: Installed on 2020-03-18 (316 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to bionic on 2021-01-28 (0 days ago)
VarLogDistupgra
Thanks for taking the time to report this upgrade failure. There is currently a new version of the release upgrader availalbe in -proposed which may resolve the error you've encountered. Please run the following command to test the new version of the upgrader:
do-release- upgrade -p
Please lets us know the results in this bug report. Thanks again and good luck!