do-release-upgrade fails because dependencies cannot be satisfied

Bug #2038949 reported by Gavin John
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
New
Undecided
Unassigned

Bug Description

It tries to change old-releases.ubuntu.com to c..archive.ubuntu.com, which doesn't work.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: ubuntu-release-upgrader-core 1:22.10.8
ProcVersionSignature: Ubuntu 5.19.0-46.47-generic 5.19.17
Uname: Linux 5.19.0-46-generic x86_64
ApportVersion: 2.23.1-0ubuntu3.2
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: configdrive
CloudName: configdrive
CloudPlatform: configdrive
CloudSubPlatform: config-disk (/dev/vdb)
CrashDB: ubuntu
Date: Tue Oct 10 16:20:48 2023
JournalErrors:
 Hint: You are currently not seeing messages from other users and the system.
       Users in groups 'adm', 'systemd-journal' can see all messages.
       Pass -q to turn off this notice.
 Oct 10 16:21:02 hostname pkexec[20008]: username: Error executing command as another user: Not authorized [USER=root] [TTY=/dev/pts/1] [CWD=/home/username] [COMMAND=/usr/bin/cat /var/log/dist-upgrade/apt-clone_system_state.tar.gz]
 Oct 10 16:21:02 hostname pkexec[20020]: username: Error executing command as another user: Not authorized [USER=root] [TTY=/dev/pts/1] [CWD=/home/username] [COMMAND=/usr/share/apport/root_info_wrapper /tmp/tmpkkuakb8b/:script:]
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to kinetic on 2023-10-10 (0 days ago)
VarLogDistupgradeAptclonesystemstate.tar.gz:
 Error: command ['pkexec', 'cat', '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'] failed with exit code 127: Error executing command as another user: Not authorized

 This incident has been reported.

Revision history for this message
Gavin John (gavinnjohn) wrote :
Revision history for this message
Gavin John (gavinnjohn) wrote :
Download full text (22.2 KiB)

Some logs that might be useful:

```
gavin@vps:~$ cat /var/log/dist-upgrade/main.log
2023-10-10 16:20:12,031 INFO Using config files '['./DistUpgrade.cfg', '/etc/update-manager/release-upgrades.d/ubuntu-advantage-upgrades.cfg']'
2023-10-10 16:20:12,032 INFO uname information: 'Linux vps.pandapip1.com 5.19.0-46-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 16 13:30:11 UTC 2023 x86_64'
2023-10-10 16:20:12,542 INFO apt version: '2.5.3'
2023-10-10 16:20:12,542 INFO python version: '3.10.7 (main, May 29 2023, 13:51:48) [GCC 12.2.0]'
2023-10-10 16:20:12,547 INFO release-upgrader version '23.04.6' started
2023-10-10 16:20:12,555 INFO locale: 'en_US' 'UTF-8'
2023-10-10 16:20:12,683 DEBUG Using 'DistUpgradeViewText' view
2023-10-10 16:20:12,751 DEBUG enable dpkg --force-overwrite
2023-10-10 16:20:12,802 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2023-10-10 16:20:14,648 DEBUG lsb-release: 'kinetic'
2023-10-10 16:20:14,648 DEBUG _pythonSymlinkCheck run
2023-10-10 16:20:14,649 DEBUG openCache()
2023-10-10 16:20:14,649 DEBUG quirks: running PreCacheOpen
2023-10-10 16:20:14,649 DEBUG running Quirks.PreCacheOpen
2023-10-10 16:20:15,614 DEBUG Comparing 5.19.0-45 with
2023-10-10 16:20:15,620 DEBUG Comparing 5.19.0-46 with 5.19.0-45
2023-10-10 16:20:15,728 DEBUG /openCache(), new cache size 68460
2023-10-10 16:20:15,729 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2023-10-10 16:20:15,729 DEBUG checkViewDepends()
2023-10-10 16:20:15,731 DEBUG running doUpdate() (showErrors=False)
2023-10-10 16:20:20,250 DEBUG openCache()
2023-10-10 16:20:21,346 DEBUG Comparing 5.19.0-45 with
2023-10-10 16:20:21,346 DEBUG Comparing 5.19.0-46 with 5.19.0-45
2023-10-10 16:20:21,493 DEBUG /openCache(), new cache size 68460
2023-10-10 16:20:21,493 DEBUG doPostInitialUpdate
2023-10-10 16:20:21,493 DEBUG quirks: running lunarPostInitialUpdate
2023-10-10 16:20:21,493 DEBUG running Quirks.lunarPostInitialUpdate
2023-10-10 16:20:24,261 DEBUG Snap core20 is installed
2023-10-10 16:20:24,262 DEBUG Snap core20 is not tracking the release channel
2023-10-10 16:20:24,799 DEBUG Snap core22 is installed
2023-10-10 16:20:24,799 DEBUG Snap core22 is not tracking the release channel
2023-10-10 16:20:25,700 DEBUG Snap lxd is installed
2023-10-10 16:20:26,674 DEBUG Snap snapd is installed
2023-10-10 16:20:26,675 DEBUG Snap snapd is not tracking the release channel
2023-10-10 16:20:27,853 DEBUG MetaPkgs:
2023-10-10 16:20:29,033 DEBUG Foreign: do-agent droplet-agent droplet-agent-keyring lynis syncthing
2023-10-10 16:20:29,033 DEBUG Obsolete: google-drive-ocamlfuse linux-headers-5.19.0-45 linux-headers-5.19.0-45-generic linux-image-5.19.0-45-generic linux-modules-5.19.0-45-generic sdfs
2023-10-10 16:20:29,034 DEBUG updateSourcesList()
2023-10-10 16:20:29,070 DEBUG rewriteSourcesList() with mirror_check
2023-10-10 16:20:29,070 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2023-10-10 16:20:29,070 DEBUG Checking pkg: ubuntu-minimal
2023-10-10 16:20:29,073 DEBUG Checking pkg: ubuntu-standard
2023-10-10 16:20:29,075 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,075 DEBUG verifySourcesListEn...

Revision history for this message
Nick Rosbrook (enr0n) wrote :

That's actually not what's causing the upgrade to fail. While there is something wrong with "c..archive.ubuntu.com", the upgrader will just just "arhive.ubuntu.com instead. E.g., from VarLogDistupgradeMainlog.txt:

2023-10-10 16:20:29,075 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,075 DEBUG verifySourcesListEntry: deb http://c..archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,075 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,075 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,080 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,080 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,080 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,080 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,096 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu

The real error, seen in VarLogDistupgradeAptlog.txt, is this:

  MarkInstall python3.10-venv:amd64 < 3.10.7-1ubuntu0.4 @ii mK Ib > FU=0
    python3.10-venv:amd64 Depends on python3.10-distutils:amd64 < none @un mH > can't be satisfied! (dep)
  MarkInstall xfsprogs:amd64 < 5.16.0-1ubuntu1 -> 6.1.0-1ubuntu1 @ii umU Ib > FU=0
  Installing libicu72:amd64 as Depends of xfsprogs:amd64
    MarkInstall libicu72:amd64 < none -> 72.1-3ubuntu2 @un uN > FU=0
   Upgrading: libgs9:amd64 < 9.56.1~dfsg1-0ubuntu3.2 @ii mK Ib > due to libgs9:amd64 Depends on libgs9-common:amd64 < 9.56.1~dfsg1-0ubuntu3.2 -> 10.0.0~dfsg1-0ubuntu1.3 @ii umU Ib > (= 9.56.1~dfsg1-0ubuntu3.2)
  MarkInstall libgs9-common:amd64 < 9.56.1~dfsg1-0ubuntu3.2 -> 10.0.0~dfsg1-0ubuntu1.3 @ii umU Ib > FU=0
    MarkInstall libgs9:amd64 < 9.56.1~dfsg1-0ubuntu3.2 @ii mK Ib > FU=0
      libgs9:amd64 Depends on libgs9-common:amd64 < 9.56.1~dfsg1-0ubuntu3.2 -> 10.0.0~dfsg1-0ubuntu1.3 @ii pumU Ib > (= 9.56.1~dfsg1-0ubuntu3.2) can't be satisfied! (dep)

Normally these sort of things with python are caused by using the python deadsnakes PPA. I am not sure about the other package at the moment, though.

summary: - do-release-upgrade makes incorrect changes to sources.list, causing
- crash
+ do-release-upgrade fails because dependencies cannot be satisfied
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.