[Bug 2129806] Re: microk8s join fail on Ubuntu 25.10 because sudo-rs ignores -E
Julian Andres Klode
2129806 at bugs.launchpad.net
Tue Oct 28 08:19:26 UTC 2025
Setting this to Won't Fix per my comment on GitHub. Please let's move
forward and not backward just because it's slightly inconvenient.
** Changed in: rust-sudo-rs (Ubuntu)
Status: New => Won't Fix
--
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/2129806
Title:
microk8s join fail on Ubuntu 25.10 because sudo-rs ignores -E
Status in rust-sudo-rs package in Ubuntu:
Won't Fix
Bug description:
On Ubuntu 25.10 (“Questing Quokka”), the new Rust-based sudo-rs package does not support the -E (--preserve-env) option.
This causes regressions in several classic snaps that rely on environment preservation — for example:
```
$ microk8s join <IP>:25000/<token>/<secret> --worker
warning: preserving the entire environment is not supported, -E is ignored
FileNotFoundError: [Errno 2] No such file or directory: 'None/var/lock/join-in-progress'
```
**Workaround:**
Select the legacy C implementation of sudo (`sudo.ws`) via
`sudo update-alternatives --config sudo`.
**Upstream discussion:**
https://github.com/trifectatechfoundation/sudo-rs/issues/1299
https://github.com/canonical/microk8s/issues/5266
https://bugs.launchpad.net/snapd/+bug/2127952
**Notes:**
Although sudo-rs is functioning as designed, many existing Ubuntu packages and classic snaps depend on the legacy -E behavior.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2129806/+subscriptions
More information about the foundations-bugs
mailing list