[noble] Version 2.7.5 causes software-properties to crash

Bug #2053165 reported by Francois Thirioux
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

Only since recent 2.7.5 update along with 0.99.42 for software-properties.
Crash on start-up.

$ software-properties-gtk
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

Francois Thirioux (fthx)
summary: - [noble] Version 2.7.5 causes software-propeties to crash
+ [noble] Version 2.7.5 causes software-properties to crash
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-apt (Ubuntu):
status: New → Confirmed
Revision history for this message
liufuling2402 (liufuling2402) wrote :

请问什么时候能修复,我也遇到了这个问题。

Revision history for this message
RedLeaves (redleaves95) wrote :

I deleted the files in the /etc/apt/sources.list.d and it worked normally.

Revision history for this message
santinos09 (santinos09) wrote :

Dear All, i got same problem with software-properties to crash , and i solved with RedLeaves solution:

I deleted the files in the /etc/apt/sources.list.d and it worked normally.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Please do not delete files, certainly not ubuntu.sources, or you will no longer get updates.

Revision history for this message
陈金平 (virtual163) wrote :

不知道新安装的系统有没有这个问题,我发现只要是从23.10升上来的,都有这个问题, 不知道什么时候可以修复

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.