On 30/07/2025 18:36, William Edwards wrote:
If you need sudo, why not just apt-mark manual it?
Does anyone know if the installer does this if the administrator doesn't set a root password?
There's an argument that sudo should refuse to uninstall itself (e.g. in a prerm script) if the root user doesn't have a password at all. That would be a neat trick.
William David EdwardsOp 30 jul 2025 om 19:30 heeft José Esteban <chafar@chafar.net> het volgende geschreven: I'I've written to sudo package maintainer, but he suggests me to report that here and so I do. This is in my /var/log/apt/history.log: Start-Date: 2025-07-30 08:29:54 Commandline: apt-get purge cloud-guest-utils Requested-By: chafar (1000) Purge: cloud-guest-utils:amd64 (0.33-1) End-Date: 2025-07-30 08:29:54 Start-Date: 2025-07-30 08:30:13 Commandline: apt-get purge cloud-init Requested-By: chafar (1000) Purge: cloud-init:amd64 (22.4.2-1+deb12u2) End-Date: 2025-07-30 08:30:14 Start-Date: 2025-07-30 08:30:22 Commandline: apt-get autoremove Requested-By: chafar (1000) Remove: python3-blinker:amd64 (1.5-1), python-babel-localedata:amd64 (2.10.3-1), python3-webcolors:amd64 (1.11.1-1), libxaw7:amd64 (2:1.0.14-1), python3-importlib-metadata:amd64 (4.12.0-1), libeatmydata1:amd64 (130-2+b1), python3-jsonpatch:amd64 (1.32-2), python3-more-itertools:amd64 (8.10.0-2), python3-attr:amd64 (22.2.0-1), gdisk:amd64 (1.0.9-2.1), python3-babel:amd64 (2.10.3-1), python3-jsonschema:amd64 (4.10.3-1), python3-oauthlib:amd64 (3.2.2-1), python3-json-pointer:amd64 (2.3-2), python3-jinja2:amd64 (3.1.2-1+deb12u2), python3-serial:amd64 (3.5-1.1), python3-netifaces:amd64 (0.11.0-2+b1), python3-uritemplate:amd64 (4.1.1-2), python3-markupsafe:amd64 (2.1.2-1+b1), python3-jwt:amd64 (2.6.0-1), eatmydata:amd64 (130-2), python3-yaml:amd64 (6.0-3+b2), sudo:amd64 (1.9.13p3-1+deb12u1), python3-rfc3987:amd64 (1.3.8-2), python3-pyrsistent:amd64 (0.18.1-1+b3), python3-zipp:amd64 (1.0.0-6) End-Date: 2025-07-30 08:30:24 ... sudo gets inadvertently removed within a lot of python3 packages !!! who remembers the root password ? Best regards -- José Esteban 034 - 607507781
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature