[Bug 1887544] Re: upgrade from 18.04 to 20.04 fails to calculate if python-dbg is installed
Toto
1887544 at bugs.launchpad.net
Sun Feb 21 07:43:18 UTC 2021
Hello,
Still cannot update from up to date 18.04.5 LTS to 20.
I have tried to re install every python package...deactivate every PPAs...
2021-02-21 08:32:44,663 INFO Using config files '['./DistUpgrade.cfg.bionic']'
2021-02-21 08:32:44,664 INFO uname information: 'Linux yann-ThinkPad-E590 5.4.0-65-generic #73~18.04.1-Ubuntu SMP Tue Jan 19 09:02:24 UTC 2021 x86_64'
2021-02-21 08:32:45,157 INFO apt version: '1.6.12ubuntu0.2'
2021-02-21 08:32:45,157 INFO python version: '3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0]'
2021-02-21 08:32:45,162 INFO release-upgrader version '20.04.29' started
2021-02-21 08:32:45,227 INFO locale: 'fr_FR' 'UTF-8'
2021-02-21 08:32:45,544 DEBUG Using 'DistUpgradeViewGtk3' view
2021-02-21 08:32:45,584 DEBUG enable dpkg --force-overwrite
2021-02-21 08:32:45,599 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2021-02-21 08:32:49,070 DEBUG lsb-release: 'bionic'
2021-02-21 08:32:49,070 DEBUG _pythonSymlinkCheck run
2021-02-21 08:32:49,071 DEBUG openCache()
2021-02-21 08:32:49,071 DEBUG quirks: running PreCacheOpen
2021-02-21 08:32:49,071 DEBUG running Quirks.PreCacheOpen
2021-02-21 08:32:50,070 DEBUG Comparing 5.4.0-64 with
2021-02-21 08:32:50,070 DEBUG Comparing 5.4.0-65 with 5.4.0-64
2021-02-21 08:32:50,268 DEBUG /openCache(), new cache size 101813
2021-02-21 08:32:50,269 DEBUG need_server_mode(): run in 'desktop' mode, (because of pkg 'ubuntu-mate-core')
2021-02-21 08:32:50,269 DEBUG checkViewDepends()
2021-02-21 08:32:50,273 DEBUG running doUpdate() (showErrors=False)
2021-02-21 08:32:51,208 DEBUG openCache()
2021-02-21 08:32:52,215 DEBUG Comparing 5.4.0-64 with
2021-02-21 08:32:52,215 DEBUG Comparing 5.4.0-65 with 5.4.0-64
2021-02-21 08:32:52,427 DEBUG /openCache(), new cache size 101813
2021-02-21 08:32:52,427 DEBUG doPostInitialUpdate
2021-02-21 08:32:52,427 DEBUG quirks: running focalPostInitialUpdate
2021-02-21 08:32:52,427 DEBUG running Quirks.focalPostInitialUpdate
2021-02-21 08:32:54,881 DEBUG MetaPkgs: ubuntu-mate-core ubuntu-mate-desktop
2021-02-21 08:32:57,852 DEBUG Foreign:
2021-02-21 08:32:57,852 DEBUG Obsolete: code golang-1.15-go golang-1.15-src google-chrome-stable grive linux-hwe-5.4-headers-5.4.0-56 skypeforlinux teams
2021-02-21 08:32:57,853 DEBUG updateSourcesList()
2021-02-21 08:32:57,868 DEBUG rewriteSourcesList() with mirror_check
2021-02-21 08:32:57,868 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2021-02-21 08:32:57,868 DEBUG Checking pkg: ubuntu-minimal
2021-02-21 08:32:57,871 DEBUG Checking pkg: ubuntu-standard
2021-02-21 08:32:57,873 DEBUG examining: 'deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted'
2021-02-21 08:32:57,873 DEBUG verifySourcesListEntry: deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
2021-02-21 08:32:57,873 DEBUG url_downloadable: http://fr.archive.ubuntu.com/ubuntu//dists/focal/Release
2021-02-21 08:32:57,873 DEBUG s='http' n='fr.archive.ubuntu.com' p='/ubuntu//dists/focal/Release' q='' f=''
2021-02-21 08:32:57,975 DEBUG entry 'deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted' updated to new dist
2021-02-21 08:32:57,975 DEBUG examining: 'deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted'
2021-02-21 08:32:57,975 DEBUG entry 'deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted' updated to new dist
2021-02-21 08:32:57,975 DEBUG examining: 'deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe'
2021-02-21 08:32:57,976 DEBUG entry 'deb http://fr.archive.ubuntu.com/ubuntu/ focal universe' updated to new dist
2021-02-21 08:32:57,976 DEBUG examining: 'deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe'
2021-02-21 08:32:57,976 DEBUG entry 'deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe' updated to new dist
2021-02-21 08:32:57,976 DEBUG examining: 'deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse'
2021-02-21 08:32:57,976 DEBUG entry 'deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse' updated to new dist
2021-02-21 08:32:57,976 DEBUG examining: 'deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse'
2021-02-21 08:32:57,977 DEBUG entry 'deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse' updated to new dist
2021-02-21 08:32:57,977 DEBUG examining: 'deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse'
2021-02-21 08:32:57,977 DEBUG entry 'deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse' updated to new dist
2021-02-21 08:32:57,977 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu bionic-security main restricted'
2021-02-21 08:32:57,977 DEBUG verifySourcesListEntry: deb http://security.ubuntu.com/ubuntu focal main restricted
2021-02-21 08:32:57,977 DEBUG url_downloadable: http://security.ubuntu.com/ubuntu/dists/focal/Release
2021-02-21 08:32:57,978 DEBUG s='http' n='security.ubuntu.com' p='/ubuntu/dists/focal/Release' q='' f=''
2021-02-21 08:32:58,337 DEBUG entry 'deb http://security.ubuntu.com/ubuntu focal-security main restricted' updated to new dist
2021-02-21 08:32:58,337 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu bionic-security universe'
2021-02-21 08:32:58,337 DEBUG entry 'deb http://security.ubuntu.com/ubuntu focal-security universe' updated to new dist
2021-02-21 08:32:58,337 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu bionic-security multiverse'
2021-02-21 08:32:58,337 DEBUG entry 'deb http://security.ubuntu.com/ubuntu focal-security multiverse' updated to new dist
2021-02-21 08:32:58,345 DEBUG running doUpdate() (showErrors=True)
2021-02-21 08:33:09,219 DEBUG openCache()
2021-02-21 08:33:10,111 DEBUG Comparing 5.4.0-64 with
2021-02-21 08:33:10,111 DEBUG Comparing 5.4.0-65 with 5.4.0-64
2021-02-21 08:33:10,331 DEBUG /openCache(), new cache size 67751
2021-02-21 08:33:10,332 DEBUG need_server_mode(): run in 'desktop' mode, (because of pkg 'ubuntu-mate-core')
2021-02-21 08:33:10,333 DEBUG quirks: running PreDistUpgradeCache
2021-02-21 08:33:10,333 DEBUG running Quirks.PreDistUpgradeCache
2021-02-21 08:33:10,333 INFO checking for python-dbg
2021-02-21 08:33:10,333 INFO installing python2-dbg because python-dbg was installed
2021-02-21 08:33:10,333 DEBUG Installing 'python2-dbg' (python-dbg was installed on the system)
2021-02-21 08:33:15,693 ERROR Dist-upgrade failed: 'E:Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».'
2021-02-21 08:33:15,695 DEBUG abort called
2021-02-21 08:33:15,697 DEBUG openCache()
2021-02-21 08:33:19,377 DEBUG Comparing 5.4.0-64 with
2021-02-21 08:33:19,377 DEBUG Comparing 5.4.0-65 with 5.4.0-64
2021-02-21 08:33:19,745 DEBUG /openCache(), new cache size 101813
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1887544
Title:
upgrade from 18.04 to 20.04 fails to calculate if python-dbg is
installed
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in ubuntu-release-upgrader source package in Focal:
Fix Released
Status in ubuntu-release-upgrader source package in Groovy:
Fix Released
Bug description:
Impact
------
Users with the package python-dbg installed on their system are unable to upgrade from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS as the upgrade path is not calculable. Additionally, other python packages from Ubuntu 18.04 will be left installed or removed when they should not be.
Test Case
---------
[python-dbg]
1) On an Ubuntu 18.04 LTS system install python-qt4-dbg (or some set of packages which depend on it)
2) Run do-release-upgrade
3) Observe a message regarding a failure to calculate the upgrade
With the dist-upgrader from -proposed there will be no such failure to
calculate the upgrade.
[python-doc]
1) On an Ubuntu 18.04 LTS system install python-doc
2) Run do-release-upgrade
3) Say Y to removing obsolete packages
4) Observe that python-doc is still installed on the system
With the version of the dist-upgrader from -proposed python-doc will
not be installed after the upgrade and python2-doc will be.
[python-dev]
1) On an Ubuntu 18.04 LTS system install python-dev
2) Run do-release-upgrade
3) Say Y to removing obsolete packages
4) Observe that python-dev is still installed on the system
With the version of the dist-ugprader from -proposed python-dev will
not be installed after the upgrade and python2-dev will be installed.
Additionally, python-dev-is-python2 will be installed.
Regression Potential
--------------------
The logic of the "_install_python_is_python2" quirk is essentially the same but the set of replacements is being expanded so we should ensure that this does not cause any additional package removals which may are unwanted.
Original Description
--------------------
the problem is during issue this command from terminal to start upgrade
process from 18.04 to 20.04
$cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
$ uname -mrs
Linux 5.3.0-62-generic x86_64
Using this command
sudo do-release-upgrade -d
this is the output
[sudo] password for amr:
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1,554 B]
Get:2 Upgrade tool [1,342 kB]
Fetched 1,343 kB in 6s (211 kB/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
extracting 'focal.tar.gz'
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://archive.ubuntu.com/ubuntu bionic InRelease
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [783 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [506 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [679 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [625 kB]
Fetched 2,845 kB in 6s (15.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Checking for installed snaps
Calculating snap size requirements
Updating repository information
Hit http://archive.ubuntu.com/ubuntu focal InRelease
Hit http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit http://archive.ubuntu.com/ubuntu focal-security InRelease
Fetched 0 B in 6s (0 B/s)
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
Could not calculate the upgrade
An unresolvable problem occurred while calculating the upgrade.
This was caused by:
* Upgrading to a pre-release version of Ubuntu
This is most likely a transient problem,
please try again later.
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
ProblemType: BugDistroRelease: Ubuntu 18.04
Package: ubuntu-release-upgrader-core 1:18.04.37
ProcVersionSignature: Ubuntu 5.3.0-62.56~18.04.1-generic 5.3.18
Uname: Linux 5.3.0-62-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.15
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 14 17:08:10 2020
InstallationDate: Installed on 2020-02-27 (137 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
PackageArchitecture: allSourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to bionic on 2020-07-14 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1887544/+subscriptions
More information about the foundations-bugs
mailing list