[Bug 2064955] Re: failed do-release-upgrade from 23.10

Pavel-II 2064955 at bugs.launchpad.net
Tue May 7 18:11:11 UTC 2024


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



** Attachment added: "sources.list"
   https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2064955/+attachment/5776014/+files/sources.list

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

Title:
  failed do-release-upgrade from 23.10

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

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)

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




More information about the foundations-bugs mailing list