Public bug reported: Hi,
I have updated several machines from Lubuntu 20.04 to Lubuntu 22.04 with do-release-update -d On all but one machine this worked well, but one machine, that formerly worked without problems, now has no ssh-agent running after login, and the ~/.xsession-errors shows several xsession files to fail for the same reason: /etc/X11/Xsession.d/30x11-common_xresources: Zeile 16: has_option: Befehl nicht gefunden /etc/X11/Xsession.d/75dbus_dbus-launch: Zeile 9: has_option: Befehl nicht gefunden /etc/X11/Xsession.d/90x11-common_ssh-agent: Zeile 9: has_option: Befehl nicht gefunden (german for: has_option: command not found) Formerly mentioned in bug #1922414 (marked as solved) and its duplicate #1940779 , but it isn't solved. That's why there is no ssh-agent. I have done some debugging to find, why it works on all but one of my machines, and what's the reason. Reason: has_option is not a command, but a shell function defined in /etc/X11/Xsession On the good machines, the display manager is sddm, which seems to do the job well. The machine, that fails, is somewhat older and had formerly 18.04 running and been updated to 20.04 then. It runs the display manager lightdm. That's the problem: lightdm runs /usr/bin/lxqt-session and /usr/bin/lxqt-session directly opens and executes the scripts in /etc/X11/Xsession.d without running /etc/X11/Xsession. Therefore, the shell function has_option is never defined, but used in the scripts, which do fail then. Therefore, either lxqt-session needs to be made compatible with /etc/X11/Xsession, or the upgrade-procedure 20.04 to 22.04 must replace lightdm by sddm. ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: lightdm 1.30.0-0ubuntu5 ProcVersionSignature: Ubuntu 5.15.0-35.36-generic 5.15.35 Uname: Linux 5.15.0-35-generic x86_64 NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu82.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: LXQt Date: Sun Jun 5 14:48:42 2022 InstallationDate: Installed on 2018-04-28 (1498 days ago) InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) SourcePackage: lightdm UpgradeStatus: Upgraded to jammy on 2022-06-04 (0 days ago) ** Affects: lightdm (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug jammy -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/1977683 Title: Lubuntu error has_option: command not found / no ssh-agent after updating to 22.04 Status in lightdm package in Ubuntu: New Bug description: Hi, I have updated several machines from Lubuntu 20.04 to Lubuntu 22.04 with do-release-update -d On all but one machine this worked well, but one machine, that formerly worked without problems, now has no ssh-agent running after login, and the ~/.xsession-errors shows several xsession files to fail for the same reason: /etc/X11/Xsession.d/30x11-common_xresources: Zeile 16: has_option: Befehl nicht gefunden /etc/X11/Xsession.d/75dbus_dbus-launch: Zeile 9: has_option: Befehl nicht gefunden /etc/X11/Xsession.d/90x11-common_ssh-agent: Zeile 9: has_option: Befehl nicht gefunden (german for: has_option: command not found) Formerly mentioned in bug #1922414 (marked as solved) and its duplicate #1940779 , but it isn't solved. That's why there is no ssh-agent. I have done some debugging to find, why it works on all but one of my machines, and what's the reason. Reason: has_option is not a command, but a shell function defined in /etc/X11/Xsession On the good machines, the display manager is sddm, which seems to do the job well. The machine, that fails, is somewhat older and had formerly 18.04 running and been updated to 20.04 then. It runs the display manager lightdm. That's the problem: lightdm runs /usr/bin/lxqt-session and /usr/bin/lxqt-session directly opens and executes the scripts in /etc/X11/Xsession.d without running /etc/X11/Xsession. Therefore, the shell function has_option is never defined, but used in the scripts, which do fail then. Therefore, either lxqt-session needs to be made compatible with /etc/X11/Xsession, or the upgrade-procedure 20.04 to 22.04 must replace lightdm by sddm. ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: lightdm 1.30.0-0ubuntu5 ProcVersionSignature: Ubuntu 5.15.0-35.36-generic 5.15.35 Uname: Linux 5.15.0-35-generic x86_64 NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu82.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: LXQt Date: Sun Jun 5 14:48:42 2022 InstallationDate: Installed on 2018-04-28 (1498 days ago) InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) SourcePackage: lightdm UpgradeStatus: Upgraded to jammy on 2022-06-04 (0 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1977683/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp