[Bug 2127766] Please test proposed package
Timo Aaltonen
2127766 at bugs.launchpad.net
Fri Dec 5 14:48:03 UTC 2025
Hello Charles, or anyone else affected,
Accepted snapd into jammy-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/snapd/2.73+ubuntu22.04
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
--
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/2127766
Title:
snap run --strace doesn't work with sudo-rs [sudo -E not supported]
Status in snapd:
Fix Committed
Status in rust-sudo-rs package in Ubuntu:
Won't Fix
Status in snapd package in Ubuntu:
New
Status in snapd source package in Jammy:
Fix Committed
Status in snapd source package in Noble:
Fix Committed
Status in snapd source package in Plucky:
Fix Committed
Status in snapd source package in Questing:
Fix Committed
Bug description:
[SRU] 2.73:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2132084
[ Impact ]
Only impacts Ubuntu 25.10+
With sudo-rs, -E` is ignored, which breaks snapd run --strace.
[ Test Plan ]
1. Reproduce with snapd snap < 2.73
- Ensure sudo-rs installed
- Run: snap run --strace <snap>.<app>
- Expect: warning: preserving the entire environment is not supported, `-E` is ignored
2. Prove fixed with snapd snap 2.73
- Ensure sudo-rs installed
- Run: snap run --strace <snap>.<app>
- Expect: No warning
---original---
sudo-rs became the default sudo in 25.10, which broke this snap run
--strace,
$ snap run --strace <snap>.<app>
warning: preserving the entire environment is not supported, `-E` is ignored
[sudo: authenticate] Password:
error: exit status 1
It does work if I switch back to GNU Coreutils' sudo. The reason being
many required environment variables are no longer passed through, and
the strace fails due to SNAP_INSTANCE_NAME not being set, before we
get to execve'ing the snap application itself.
I commented on this use case in the sudo-rs issue tracker:
https://github.com/trifectatechfoundation/sudo-rs/issues/1299
Maybe snapd needs to have a whitelist of environment variables?
To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/2127766/+subscriptions
More information about the foundations-bugs
mailing list