ubuntu 24.04 partial upgrade failes with python exception

Bug #2062435 reported by Grizzly(Francis Smit)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
Undecided
Nathan Teodosio
update-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

1) lsb_release -rd
No LSB modules are available.
Description: Ubuntu Noble Numbat (development branch)
Release: 24.04

2) apt-cache policy update-manager
update-manager:
  Installed: 1:24.04.6
  Candidate: 1:24.04.6
  Version table:
 *** 1:24.04.6 500
        500 http://au.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        500 http://au.archive.ubuntu.com/ubuntu noble/main i386 Packages
        100 /var/lib/dpkg/status

3) expected it to do a partial upgrade on clicking the "partial upgrade" button

4) crashes with the following messages

$ sudo update-manager

(update-manager:497814): dconf-WARNING **: 10:29:23.723: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(update-manager:497814): dconf-WARNING **: 10:29:23.723: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(update-manager:497814): libunity-CRITICAL **: 10:29:23.731: file unity-launcher.c: line 1638: unexpected error: Failed to execute child process “dbus-launch” (No such file or directory) (g-exec-error-quark, 8)

(update-manager:497814): libunity-CRITICAL **: 10:29:23.731: unity_launcher_entry_dbus_impl_construct: assertion 'conn != NULL' failed

(update-manager:497814): libunity-CRITICAL **: 10:29:23.735: unity-inspector.vala:96: Unable to connect to session bus: Failed to execute child process “dbus-launch” (No such file or directory)
warning: could not initiate dbus
/usr/lib/python3/dist-packages/uaclient/apt.py:288: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
  apt_pkg.init()
/usr/lib/python3/dist-packages/uaclient/apt.py:270: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
  apt_pkg.init_system()
ERROR:root:not handled exception:
Traceback (most recent call last):

  File "/usr/lib/ubuntu-release-upgrader/do-partial-upgrade", line 114, in <module>
    controller.doPartialUpgrade()

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 2609, in doPartialUpgrade
    self.prepare()

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 465, in prepare
    if not self._pythonSymlinkCheck():
           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 415, in _pythonSymlinkCheck
    config.readfp(f)
    ^^^^^^^^^^^^^

AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeViewGtk3.py", line 540, in _handleException
    apport_crash(type, value, tb)
  File "/usr/lib/python3/dist-packages/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 "/usr/lib/ubuntu-release-upgrader/do-partial-upgrade", line 114, in <module>
    controller.doPartialUpgrade()
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 2609, in doPartialUpgrade
    self.prepare()
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 465, in prepare
    if not self._pythonSymlinkCheck():
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py", line 415, in _pythonSymlinkCheck
    config.readfp(f)
    ^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?
[grizzlysmit:~] 34s 1 $ ubuntu-bug update-manager
REDACTED config part /etc/cloud/cloud.cfg.d/99-installer.cfg, insufficient permissions
REDACTED config part /etc/cloud/cloud.cfg.d/90-installer-network.cfg, insufficient permissions
Gdk-Message: 10:31:25.104: Unable to load col-resize from the cursor theme

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: update-manager 1:24.04.6
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 19 10:30:28 2024
InstallationDate: Installed on 2024-04-09 (10 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240408)
PackageArchitecture: all
SourcePackage: update-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :
Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

seams I grabbed an extra the ubuntu-bug call on the end

Changed in update-manager (Ubuntu):
status: New → Invalid
Changed in ubuntu-release-upgrader (Ubuntu):
status: New → In Progress
assignee: nobody → Nathan Teodosio (nteodosio)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:24.04.16

---------------
ubuntu-release-upgrader (1:24.04.16) noble; urgency=medium

  [ Nathan Pratta Teodosio ]
  * DistUpgrade: readfp was replaced by read_file in configparser.
    (LP: #2062435)

  [ Nick Rosbrook ]
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <email address hidden> Fri, 19 Apr 2024 15:44:24 -0400

Changed in ubuntu-release-upgrader (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

yep fix worked

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.