failed do-release-upgrade from 23.10

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

Bug Description

got error

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-gmlcx6x0/DistUpgrade/DistUpgradeViewText.py", line 138, in _handleException
    apport_crash(type, value, tb)
  File "/tmp/ubuntu-release-upgrader-gmlcx6x0/DistUpgrade/DistUpgradeApport.py", line 57, in apport_crash
    apport_excepthook(type, value, tb)
TypeError: apport_excepthook() missing 1 required positional argument: 'exc_tb'

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-gmlcx6x0/noble", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/tmp/ubuntu-release-upgrader-gmlcx6x0/DistUpgrade/DistUpgradeMain.py", line 241, in main
    if app.run():
       ^^^^^^^^^
  File "/tmp/ubuntu-release-upgrader-gmlcx6x0/DistUpgrade/DistUpgradeController.py", line 2601, in run
    return self.fullUpgrade()
           ^^^^^^^^^^^^^^^^^^
  File "/tmp/ubuntu-release-upgrader-gmlcx6x0/DistUpgrade/DistUpgradeController.py", line 2390, in fullUpgrade
    if not self.askLivepatch():
           ^^^^^^^^^^^^^^^^^^^
  File "/tmp/ubuntu-release-upgrader-gmlcx6x0/DistUpgrade/DistUpgradeController.py", line 1679, in askLivepatch
    di = distro_info.UbuntuDistroInfo()
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/distro_info.py", line 346, in __init__
    super().__init__("Ubuntu")
  File "/usr/lib/python3/dist-packages/distro_info.py", line 112, in __init__
    row["version"],
    ~~~^^^^^^^^^^^
KeyError: 'version'
=== Command detached from window (Mon May 6 22:28:08 2024) ===
=== Command terminated with exit status 1 (Mon May 6 22:28:18 2024) ===

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: ubuntu-release-upgrader-core 1:23.10.14
ProcVersionSignature: Ubuntu 6.5.0-1015.18-raspi 6.5.13
Uname: Linux 6.5.0-1015-raspi aarch64
ApportVersion: 2.27.0-0ubuntu5
Architecture: arm64
CasperMD5CheckResult: unknown
CrashDB: ubuntu
CrashReports:
 600:118:124:37:2024-05-05 22:22:58.300751713 +0300:2024-05-05 22:22:58.300751713 +0300:/var/crash/_usr_bin_gnome-shell.115.uploaded
 600:0:0:219822:2024-05-06 06:30:15.593077800 +0300:2024-05-06 06:30:16.113071128 +0300:/var/crash/linux-raspi-headers-6.5.0-1011.0.crash
 640:115:124:19147620:2024-05-05 22:22:45.244810500 +0300:2024-05-05 22:22:56.608759326 +0300:/var/crash/_usr_bin_gnome-shell.115.crash
 644:115:124:0:2024-05-05 22:22:45.248810482 +0300:2024-05-05 22:22:45.248810482 +0300:/var/crash/_usr_bin_gnome-shell.115.upload
Date: Mon May 6 22:33:41 2024
ImageMediaBuild: 20210421
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to mantic on 2024-05-06 (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.
VarLogDistupgradeAptlog: Log time: 2024-05-06 22:28:07.951176
VarLogDistupgradeLspcitxt:
 00:00.0 PCI bridge [0604]: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge [14e4:2711] (rev 10)
 01:00.0 USB controller [0c03]: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller [1106:3483] (rev 01)

Revision history for this message
Pavel-II (dzy4) wrote :
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Can you share the contents of your sources.list file? Also, what version of distro-info-data do you have installed (apt policy distro-info-data)? The error message suggests to me that that /usr/share/distro-info/ubuntu.csv is messed up some how.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Incomplete
Revision history for this message
Pavel-II (dzy4) wrote (last edit ):

Why report maked via ubuntu-bug update-manager-core can be Incomplete?

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

$ apt policy distro-info-data
distro-info-data:
  Installed: 0.58ubuntu0.3
  Candidate: 0.58ubuntu0.3
  Version table:
 *** 0.58ubuntu0.3 500
        500 http://ports.ubuntu.com/ubuntu-ports mantic-updates/main arm64 Packages
        500 http://ports.ubuntu.com/ubuntu-ports mantic-security/main arm64 Packages
        100 /var/lib/dpkg/status
     0.58 500
        500 http://ports.ubuntu.com/ubuntu-ports mantic/main arm64 Packages

$ ls -la /usr/share/distro-info/ubuntu.csv
-rw-r--r-- 2 root root 1248 Apr 9 18:31 /usr/share/distro-info/ubuntu.csv

ubuntu.csv has strange content, namely:
_eject_module()
{
 local cur prev OPTS
 COMPREPLY=()
 cur="${COMP_WORDS[COMP_CWORD]}"
 prev="${COMP_WORDS[COMP_CWORD-1]}"
 case $prev in
  '-a'|'--auto'|'-i'|'--manualeject')
   COMPREPLY=( $(compgen -W "off on" -- $cur) )
   return 0
   ;;
  '-c'|'--changerslot')
   # FIXME: there must be way to determine slots
   COMPREPLY=( $(compgen -W "slot" -- $cur) )
   return 0
   ;;
  '-x'|'--cdspeed')
   COMPREPLY=( $(compgen -W "$(eject --listspeed 2>/dev/null)" -- $cur) )
   return 0
   ;;
  '-h'|'--help'|'-V'|'--version')
   return 0
   ;;
 esac
 case $cur in
  -*)
   OPTS="--auto
    --changerslot
    --default
    --floppy
    --force
    --manualeject
    --no-unmount
    --no-partitions-unmount
    --noop
    --proc
    --tape
    --cdrom
    --scsi
    --trayclose
    --traytoggle
    --verbose
    --cdspeed
    --listspeed
    --help
    --version"
   COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
   return 0
   ;;
 esac
 local DEVS
 DEVS="$(for I in /sys/class/block/*/removable; do
  if [ $(cat $I) -ne 0 ]; then
   OLD_IFS=$IFS
   IFS='/';
   ARR=($I)
   echo "/dev/${ARR[4]}"
   IFS=$OLD_IFS
  fi
 done)"
 compopt -o bashdefault -o default
 COMPREPLY=( $(compgen -W "$DEVS" $cur) )
 return 0
}
complete -F _eject_module eject

Pavel-II (dzy4)
Changed in ubuntu-release-upgrader (Ubuntu):
status: Incomplete → New
Revision history for this message
Pavel-II (dzy4) wrote :

I replaced the contents of the file /usr/share/distro-info/ubuntu.csv with:

version,codename,series,created,release,eol,eol-server,eol-esm
4.10,Warty Warthog,warty,2004-03-05,2004-10-20,2006-04-30
5.04,Hoary Hedgehog,hoary,2004-10-20,2005-04-08,2006-10-31
...
24.04 LTS,Noble Numbat,noble,2023-10-12,2024-04-25,2029-05-31,2029-05-31,2034-04-25
24.10,Oracular Oriole,oracular,2024-04-25,2024-10-10,2025-07-10

from another installation
and re run do-release-upgrade -d

The update process has started successfully.
I don’t understand what could have changed the file /usr/share/distro-info/ubuntu.csv

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.