Software & Updates simply does not start, Update Manager crashes when I try to check out the checkbox of an update.

Bug #2055007 reported by Zalán Hári
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Pro primo: Software & Updates cannot start, when I click to the button, it does not show anything. When I try to launch it from the terminal with software-properties-gtk, I get a beautiful error message:
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 163, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir,
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.backup_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 437, in backup_sourceslist
    source_bkp = SourceEntry(line=source.line,file=source.file)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 509, in __init__
    raise ValueError("Classic SourceEntry cannot be written to .sources file")
ValueError: Classic SourceEntry cannot be written to .sources file

I can program in Python at a medium level, but it is too much for me. Application version: 0.99.42

Pro secundo: Software Updater crashes without any error message, when I empty the checkbox of an arbitrary package. Application version: 1:24.04.4

Excluded that and a few such errors, congratulations for Noble Numbat, it is really nice!

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: update-manager 1:24.04.4
ProcVersionSignature: Ubuntu 6.6.0-14.14-generic 6.6.3
Uname: Linux 6.6.0-14-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon Feb 26 07:46:09 2024
GsettingsChanges:
 b'com.ubuntu.update-manager' b'first-run' b'false'
 b'com.ubuntu.update-manager' b'launch-count' b'74'
 b'com.ubuntu.update-manager' b'launch-time' b'int64 1708923558'
 b'com.ubuntu.update-manager' b'show-details' b'true'
 b'com.ubuntu.update-manager' b'window-width' b'645'
InstallationDate: Installed on 2023-07-05 (236 days ago)
InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: update-manager
UpgradeStatus: Upgraded to noble on 2024-02-24 (2 days ago)
modified.conffile..etc.init.d.apport: [modified]
mtime.conffile..etc.init.d.apport: 2024-02-22T15:20:00

Revision history for this message
Zalán Hári (zalanhari) wrote :
Revision history for this message
Zalán Hári (zalanhari) wrote :

I was able to fix the first-mentioned problem by changing /usr/lib/python3/dist-packages/aptsources/sourceslist.py (I attached the fixed version as a patch to this message). It disabled .sources extension to the handled files, causing that problem.

Revision history for this message
Zalán Hári (zalanhari) wrote :

The second problem has been solved: now, Update Manager is working perfectly.

Changed in update-manager (Ubuntu):
status: New → Fix Released
Revision history for this message
Zalán Hári (zalanhari) wrote :

So it can be closed.

Zalán Hári (zalanhari)
Changed in update-manager (Ubuntu):
status: Fix Released → New
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.