[Bug 2129806] [NEW] microk8s join fail on Ubuntu 25.10 because sudo-rs ignores -E

Christian Lampel 2129806 at bugs.launchpad.net
Sat Oct 25 13:27:13 UTC 2025


Public bug reported:

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.

** Affects: rust-sudo-rs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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:
  New

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