#1094205 synaptic: Settings|Repository menu fails with python error

Package:
synaptic
Source:
synaptic
Description:
Graphical package manager
Submitter:
Steve M. Robbins
Date:
2025-01-26 02:51:02 UTC
Severity:
normal
#1094205#5
Date:
2025-01-25 23:24:38 UTC
From:
To:
Selecting menu item Settings|Repository fails, and produces the following
message on the console.  My system (running unstable) no longer has the fil
e/usr/bin/apt-key.  Is there a missing dependency?


(synaptic:31292): IBUS-WARNING **: 17:20:29.338: The owner of
/home/steve/.config/ibus/bus is not root!

(synaptic:31292): IBUS-WARNING **: 17:20:29.369: Unable to connect to ibus:
Unexpected lack of content trying to read a line

(software-properties-gtk:31556): IBUS-WARNING **: 17:20:40.214: The owner of
/home/steve/.config/ibus/bus is not root!
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 243, in
__init__
    self.show_keys()
    ~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-
packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1078, in
show_keys
    for key in self.apt_key.list():
               ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/softwareproperties/AptAuth.py", line 59,
in list
    process = subprocess.run(cmd, stdout=PIPE, stderr=PIPE, text=True)
  File "/usr/lib/python3.13/subprocess.py", line 554, in run
    with Popen(*popenargs, **kwargs) as process:
         ~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 1036, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 1851, in _execute_child
    self._posix_spawn(args, executable, env, restore_signals, close_fds,
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      p2cread, p2cwrite,
                      ^^^^^^^^^^^^^^^^^^
                      c2pread, c2pwrite,
                      ^^^^^^^^^^^^^^^^^^
                      errread, errwrite)
                      ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 1795, in _posix_spawn
    self.pid = os.posix_spawn(executable, args, env, **kwargs)
               ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/apt-key'

#1094205#10
Date:
2025-01-26 00:18:34 UTC
From:
To:
I have discovered the proximal cause is bug 1092693 in software-properties-
gtk.  I don't know whether it makes more sense to fix that or change synaptic
to use some other mechanism.  Thus, I leave this bug open for your
consideration.