Re: New Ubuntu versions install sudo-rs and fail the sudo version check
"Pierre Labastie" ([email protected] via alfs-discuss Mailing List) <[email protected]> Mon, 18 May 2026 09:35:25 +0200
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1779089736-1253-30256 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2026-05-15 at 11:46 +0000, md wrote: > Hi, >=20 > New Ubuntu versions (for example 26.04) install sudo-rs > (https://launchpad.net/ubuntu/+source/rust-sudo-rs) by default and > fail the > check >=20 > Checking tools required for jhalfs > SUDO=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <> > SUDO is missing or version --><-- is too old. > =C2=A0=C2=A0=C2=A0 This script requires 1.7.0 or greater > If you are sure that you have installed a proper version of SUDO > but jhalfs has failed to detect it, press 'c' and 'ENTER' keys to > continue, > otherwise press 'ENTER' key to stop jhalfs. > Please, install a proper SUDO version. > <jhalfs> exit > Error: Process completed with exit code 1. >=20 > A workaround is to use "apt-get --no-install-recommends" option to > keep the > old sudo instead of sudo-rs, but maybe the jhalfs check could be > adjusted to > support both? >=20 > Here is how to check the sudo version on Ubuntu. >=20 > docker run --rm -it --name ubuntu ubuntu:latest bash -c 'apt-get > update && > DEBIAN_FRONTEND=3Dnoninteractive apt-get install -y sudo && grep PRETTY > /etc/ > *release && sudo --version' >=20 > Output: > ... > /etc/os-release:PRETTY_NAME=3D"Ubuntu 26.04 LTS" > sudo-rs 0.2.13-0ubuntu1 >=20 > docker run --rm -it --name ubuntu ubuntu:latest bash -c 'apt-get > update && > DEBIAN_FRONTEND=3Dnoninteractive apt-get install -y --no-install- > recommends sudo > && grep PRETTY /etc/*release && sudo --version' >=20 > Output: > /etc/os-release:PRETTY_NAME=3D"Ubuntu 26.04 LTS" > Sudo version 1.9.17p2 Sorry, I see this message only today. I suppose the real command is "sudo-rs", and "sudo" is an alias/symlink/whatever. For now, I think jhalfs will keep requiring the original sudo. That's just the same as requiring docbook-4.5 or bash and not dash, etc. Maybe a little restrictive, but nothing that cannot be easily solved. Of course some tricks have to be known for specific distros (like the "dpkg-reconfigure bash" that allows sh to be a symlink to bash instead of dash on debian and ubuntu...). And blfs installs original sudo anyway. The commands you propose seem a little complicated. A normal installation of ubuntu is not in a container. The normal command for using original sudo is: update-alternatives --set sudo /usr/bin/sudo.ws (not sure why there is this ".ws" extension) Pierre ------------=_1779089736-1253-30256 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page ------------=_1779089736-1253-30256--