I had killed the authentication agent and forgot to bring it back, so my last comment conclusion is wrong.
The incorrect behavior does seem to be tied to deb822; for .source files the exception being suppressed is
--->
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1158, in on_remove_clicked
self.backend.RemoveSource(str(source_entry))
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
reply_message = self.send_message_with_reply_and_block( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
File "/lib/python3/dist-packages/dbus/service.py", line 712, in _message_cb
retval = candidate_method(self, *args, **keywords) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 285, in RemoveSource
self.remove_source(_to_unicode(source))
File "/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 779, in remove_source
self.remove_source(source, True)
File "/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 781, in remove_source
self.remove_source(source, False)
File "/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 802, in remove_source
self.sourceslist.list.append(SourceEntry("", file=source.file)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/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 had killed the authentication agent and forgot to bring it back, so my last comment conclusion is wrong.
The incorrect behavior does seem to be tied to deb822; for .source files the exception being suppressed is
---> python3/ dist-packages/ softwarepropert ies/gtk/ SoftwarePropert iesGtk. py", line 1158, in on_remove_clicked backend. RemoveSource( str(source_ entry)) python3/ dist-packages/ dbus/proxies. py", line 141, in __call__ n.call_ blocking( self._named_ service,
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ python3/ dist-packages/ dbus/connection .py", line 634, in call_blocking message_ with_reply_ and_block(
^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^ .DBusException: org.freedesktop .DBus.Python. ValueError: Traceback (most recent call last): dist-packages/ dbus/service. py", line 712, in _message_cb method( self, *args, **keywords)
^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^ dist-packages/ softwarepropert ies/dbus/ SoftwarePropert iesDBus. py", line 285, in RemoveSource remove_ source( _to_unicode( source) ) dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 779, in remove_source remove_ source( source, True) dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 781, in remove_source remove_ source( source, False) dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 802, in remove_source sourceslist. list.append( SourceEntry( "", file=source.file))
^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^ dist-packages/ aptsources/ sourceslist. py", line 509, in __init__
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return self._connectio
File "/usr/lib/
reply_message = self.send_
dbus.exceptions
File "/lib/python3/
retval = candidate_
File "/lib/python3/
self.
File "/lib/python3/
self.
File "/lib/python3/
self.
File "/lib/python3/
self.
File "/lib/python3/
raise ValueError("Classic SourceEntry cannot be written to .sources file")
ValueError: Classic SourceEntry cannot be written to .sources file
<---