[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
Thu Apr 23 12:56:22 UTC 2026
Hi there KJ LAU! Thanks for the bug report and for helping make Ubuntu
better.
I have tried reproducing your error, but am having trouble reaching the
same state. Would you mind sharing how you are invoking sudo and how you
are authenticating? Are there any modifications to /etc/sudoers in
place?
If you provide minimal reproducible steps that would be very helpful.
Cheers,
Simon
** Changed in: rust-sudo-rs (Ubuntu)
Status: New => Incomplete
** Changed in: rust-sudo-rs (Ubuntu)
Assignee: (unassigned) => Simon Johnsson (bamf0)
--
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