[Bug 2150073] Re: sudo‑rs causes apt-get (install or upgrade)to be stopped (T+) in a non‑interactive SSH session
Simon Johnsson
2150073 at bugs.launchpad.net
Fri Apr 24 07:48:54 UTC 2026
Thanks for the instructions! Do you have a link to the script itself? It
would be necessary to have a look at what commands are being run in
order to troubleshoot further.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-sudo-rs in Ubuntu.
https://bugs.launchpad.net/bugs/2150073
Title:
sudo‑rs causes apt-get (install or upgrade)to be stopped (T+) in a
non‑interactive SSH session
Status in rust-sudo-rs package in Ubuntu:
Incomplete
Bug description:
On Ubuntu 26.04 (where /usr/bin/sudo is implemented via sudo-rs), running apt-get upgrade or install under sudo from a non‑interactive SSH + Expect‑driven environment causes the apt-get process to enter a T+ (stopped) state due to do_signal_stop(), causing the installation to hang indefinitely.
This problem does not reproduce when replacing sudo-rs with classic sudo (sudo.ws) under identical conditions.
High level flow:
Host OS (launcher):
Ubuntu 22.04 LTS
Guest OS (QEMU VM):
Ubuntu 26.04 (daily / pre‑release)
user at localhost:~$ sudo --version
sudo-rs 0.2.13-0ubuntu1
sudo implementation:
- Failing: sudo-rs (default sudo in Ubuntu 26.04)
- Working: classic sudo (sudo.ws)
Invocation context:
SSH non‑interactive session
Command chain driven via shell script + Expect
No human‑attached TTY inside the guest
Guest OS debug information:
sudo ps -eo pid,ppid,stat,wchan:32,cmd | egrep 'apt|dpkg|ldconfig' | grep -v grep
8809 7947 T+ do_signal_stop apt-get upgrade -y
pstree -ap output:
├─sshd,3270
│ ├─sshd-session,3757
│ │ └─sshd-session,3793
│ │ └─bash,3799
│ │ ├─sudo,3960 ./installer.sh ASL default
│ │ │ └─sudo,3964 ./installer.sh ASL default
│ │ │ └─installer.sh,3966 /home/user/installer.sh ASL default
│ │ │ ├─installer.sh,7947 /home/user/installer.sh ASL default
│ │ │ │ └─apt-get,8809 upgrade -y
│ │ │ └─tee,7948 -a /home/user/cbkc_output.log
│ │ └─tee,3961 installer_logs.txt
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2150073/+subscriptions
More information about the foundations-bugs
mailing list