I just stumbled onto this in Ubuntu 22.04, where this bug still seems to
be present. The issue seems to be in the file
/usr/lib/systemd/user/gnome-keyring-ssh.service which wants to use
initctl which is an Upstart command and no longer exists on systemd
enabled systems. This is the content of the file:

[Unit]
Description=Start gnome-keyring as SSH agent
Before=graphical-session-pre.target ssh-agent.service
PartOf=graphical-session-pre.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -ec 'if [ -z "${SSH_AUTH_SOCK}" ] && \
    ! grep -s -q X-GNOME-Autostart-enabled=false 
~/.config/autostart/gnome-keyring-ssh.desktop 
/etc/xdg/autostart/gnome-keyring-ssh.desktop; then \
        eval $$(/usr/bin/gnome-keyring-daemon --start --components ssh); \
        dbus-update-activation-environment --verbose --systemd 
SSH_AUTH_SOCK=$$SSH_AUTH_SOCK SSH_AGENT_LAUNCHER=gnome-keyring; \
        initctl set-env --global SSH_AUTH_SOCK=$$SSH_AUTH_SOCK || true; \
    fi'
ExecStopPost=/bin/sh -ec 'if [ "${SSH_AGENT_LAUNCHER}" = gnome-keyring ]; then \
        dbus-update-activation-environment --systemd  SSH_AUTH_SOCK=; \
        initctl unset-env --global SSH_AUTH_SOCK || true; \
    fi'

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-keyring in Ubuntu.
https://bugs.launchpad.net/bugs/2002978

Title:
  sh[1111]: /bin/sh: 1: initctl: not found

Status in gnome-keyring package in Ubuntu:
  Fix Released

Bug description:
  Just an unexpected error logged, no further issues from this.

  /usr/lib/systemd/user/gnome-keyring-ssh.service from 
gnome-keyring=40.0-3ubuntu3 (22.04.1) calls initctl from a systemd user service.
  Looks like 42.1-1 sets SSH_AUTH_SOCK without such user unit, so the problem 
may be resolved in current versions (though not in LTS).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/2002978/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to