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
Same for me on Ubuntu 24.04
File "/usr/lib/ python3/ dist-packages/ softwarepropert ies/gtk/ SoftwarePropert iesGtk. py", line 163, in __init__ perties. __init_ _(self, options=options, datadir=datadir, python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 109, in __init__ backup_ sourceslist( ) python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 437, in backup_sourceslist line=source. line,file= source. file)
^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ python3/ dist-packages/ aptsources/ sourceslist. py", line 509, in __init__
SoftwarePro
File "/usr/lib/
self.
File "/usr/lib/
source_bkp = SourceEntry(
File "/usr/lib/
raise ValueError("Classic SourceEntry cannot be written to .sources file")
ValueError: Classic SourceEntry cannot be written to .sources file