[Bug 2038949] Re: do-release-upgrade makes incorrect changes to sources.list, causing crash

Gavin John 2038949 at bugs.launchpad.net
Tue Oct 10 16:28:39 UTC 2023


Some logs that might be useful:

```
gavin at 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 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
2023-10-10 16:20:29,097 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu kinetic main restricted'
2023-10-10 16:20:29,097 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu lunar main restricted' updated to new dist
2023-10-10 16:20:29,097 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,097 DEBUG verifySourcesListEntry: deb-src http://c..archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,097 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,097 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,097 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,097 DEBUG verifySourcesListEntry: deb-src http://archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,097 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,097 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,112 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,113 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu kinetic main restricted'
2023-10-10 16:20:29,113 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu lunar main restricted' updated to new dist
2023-10-10 16:20:29,113 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,113 DEBUG verifySourcesListEntry: deb http://c..archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,113 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,113 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,113 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,114 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,114 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,114 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,128 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,129 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu kinetic-updates main restricted'
2023-10-10 16:20:29,129 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu lunar-updates main restricted' updated to new dist
2023-10-10 16:20:29,129 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,129 DEBUG verifySourcesListEntry: deb-src http://c..archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,129 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,129 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,129 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,129 DEBUG verifySourcesListEntry: deb-src http://archive.ubuntu.com/ubuntu lunar main restricted
2023-10-10 16:20:29,130 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,130 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,149 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,150 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu kinetic-updates main restricted'
2023-10-10 16:20:29,150 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu lunar-updates main restricted' updated to new dist
2023-10-10 16:20:29,150 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,150 DEBUG verifySourcesListEntry: deb http://c..archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,150 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,150 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,151 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,151 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,151 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,151 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,168 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,168 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu kinetic universe'
2023-10-10 16:20:29,168 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu lunar universe' updated to new dist
2023-10-10 16:20:29,168 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,168 DEBUG verifySourcesListEntry: deb-src http://c..archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,168 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,168 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,169 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,169 DEBUG verifySourcesListEntry: deb-src http://archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,169 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,169 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,185 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,186 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu kinetic universe'
2023-10-10 16:20:29,186 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu lunar universe' updated to new dist
2023-10-10 16:20:29,186 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,186 DEBUG verifySourcesListEntry: deb http://c..archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,186 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,186 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,186 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,186 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,187 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,187 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,202 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,202 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu kinetic-updates universe'
2023-10-10 16:20:29,202 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu lunar-updates universe' updated to new dist
2023-10-10 16:20:29,202 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,203 DEBUG verifySourcesListEntry: deb-src http://c..archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,203 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,203 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,203 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,203 DEBUG verifySourcesListEntry: deb-src http://archive.ubuntu.com/ubuntu lunar universe
2023-10-10 16:20:29,203 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,203 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,220 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,220 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu kinetic-updates universe'
2023-10-10 16:20:29,220 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu lunar-updates universe' updated to new dist
2023-10-10 16:20:29,220 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,220 DEBUG verifySourcesListEntry: deb http://c..archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,220 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,220 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,221 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,221 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,221 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,221 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,239 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,239 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu kinetic multiverse'
2023-10-10 16:20:29,239 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu lunar multiverse' updated to new dist
2023-10-10 16:20:29,239 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,239 DEBUG verifySourcesListEntry: deb-src http://c..archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,239 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,239 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,240 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,240 DEBUG verifySourcesListEntry: deb-src http://archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,240 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,240 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,257 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,257 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu kinetic multiverse'
2023-10-10 16:20:29,257 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu lunar multiverse' updated to new dist
2023-10-10 16:20:29,257 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,257 DEBUG verifySourcesListEntry: deb http://c..archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,257 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,257 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,257 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,258 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,258 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,258 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,273 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,273 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu kinetic-updates multiverse'
2023-10-10 16:20:29,273 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu lunar-updates multiverse' updated to new dist
2023-10-10 16:20:29,273 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,273 DEBUG verifySourcesListEntry: deb-src http://c..archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,274 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,274 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,274 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,274 DEBUG verifySourcesListEntry: deb-src http://archive.ubuntu.com/ubuntu lunar multiverse
2023-10-10 16:20:29,274 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,274 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,288 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,289 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu kinetic-updates multiverse'
2023-10-10 16:20:29,289 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu lunar-updates multiverse' updated to new dist
2023-10-10 16:20:29,289 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,289 DEBUG verifySourcesListEntry: deb http://c..archive.ubuntu.com/ubuntu lunar main restricted universe multiverse
2023-10-10 16:20:29,289 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,289 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,289 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,289 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu lunar main restricted universe multiverse
2023-10-10 16:20:29,289 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,289 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,303 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,303 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse'
2023-10-10 16:20:29,303 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu lunar-backports main restricted universe multiverse' updated to new dist
2023-10-10 16:20:29,304 DEBUG upgrade from old-releases.ubuntu.com detected
2023-10-10 16:20:29,304 DEBUG verifySourcesListEntry: deb-src http://c..archive.ubuntu.com/ubuntu lunar main restricted universe multiverse
2023-10-10 16:20:29,304 DEBUG url_downloadable: http://c..archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,304 DEBUG s='http' n='c..archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,304 DEBUG error from httplib: 'encoding with 'idna' codec failed (UnicodeError: label empty or too long)'
2023-10-10 16:20:29,304 DEBUG verifySourcesListEntry: deb-src http://archive.ubuntu.com/ubuntu lunar main restricted universe multiverse
2023-10-10 16:20:29,304 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/lunar/Release
2023-10-10 16:20:29,304 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/lunar/Release' q='' f=''
2023-10-10 16:20:29,318 INFO transition from old-release.u.c to http://archive.ubuntu.com/ubuntu
2023-10-10 16:20:29,319 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse'
2023-10-10 16:20:29,319 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu lunar-backports main restricted universe multiverse' updated to new dist
2023-10-10 16:20:29,413 DEBUG running doUpdate() (showErrors=True)
2023-10-10 16:20:37,208 DEBUG openCache()
2023-10-10 16:20:38,219 DEBUG Comparing 5.19.0-45 with 
2023-10-10 16:20:38,219 DEBUG Comparing 5.19.0-46 with 5.19.0-45
2023-10-10 16:20:38,350 DEBUG /openCache(), new cache size 72923
2023-10-10 16:20:38,351 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2023-10-10 16:20:38,353 DEBUG quirks: running PreDistUpgradeCache
2023-10-10 16:20:38,353 DEBUG running Quirks.PreDistUpgradeCache
2023-10-10 16:20:39,333 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
2023-10-10 16:20:39,346 DEBUG abort called
2023-10-10 16:20:39,350 DEBUG openCache()
2023-10-10 16:20:41,838 DEBUG Comparing 5.19.0-45 with 
2023-10-10 16:20:41,838 DEBUG Comparing 5.19.0-46 with 5.19.0-45
2023-10-10 16:20:41,980 DEBUG /openCache(), new cache size 68460
```

Excerpt from do-release-upgrade

```
Building dependency tree... Done 
Reading state information... Done

Checking for installed snaps

Calculating snap size requirements

Updating repository information
Hit http://archive.ubuntu.com/ubuntu lunar InRelease                                                                          
Hit http://archive.ubuntu.com/ubuntu lunar-updates InRelease                                                                  
Hit http://archive.ubuntu.com/ubuntu lunar-backports InRelease                                                                
Hit https://repos.insights.digitalocean.com/apt/do-agent main InRelease                                                       
Hit https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease                                                   
Hit https://packages.cisofy.com/community/lynis/deb stable InRelease                                                          
Hit https://apt.syncthing.net syncthing InRelease                                                                             
Fetched 0 B in 0s (0 B/s)                                                                                                     

Checking package manager
Reading package lists... Done    
Building dependency tree... Done 
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 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... Done 
Reading state information... Done
```

-- 
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/2038949

Title:
  do-release-upgrade makes incorrect changes to sources.list, causing
  crash

Status in ubuntu-release-upgrader package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2038949/+subscriptions




More information about the foundations-bugs mailing list