Op 30 jul 2025 om 19:30 heeft José Esteban <[email protected]> het volgende geschreven: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:
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-
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
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 !!!
I'I've written to sudo package maintainer, but he suggests me to
report that here and so I do.
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 ?
Is it realistic to hope you to remember such many little things like this each time you setup some system ?
How many headless systems usually work
without sudo ?
I'm worked a whole life making software and I've always acted to ease my users' life... but may be just me.
El 30/7/25 a las 19:36, William Edwards escribi�:
The general solution to this iscarefully
1. express your dependencies
2. use dangerous commands
I am surprised that a package maintainer has told you to report anything
to debian-user. Are you sure about that?
If you need sudo, why not just apt-mark manual it?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:
William David Edwards
Op 30 jul 2025 om 19:30 heeft José Esteban <[email protected]> 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-
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
Is it realistic to hope you to remember such many little things like this each time you setup some system ? How many headless systems usually work without sudo ?
I'm worked a whole life making software and I've always acted to ease my users' life... but may be just me.
Thanks for the response; I'll try to remember to apt-mark sudo as manual installed next time.
Is it realistic to hope you to remember such many little things like this each time you setup some system ? How many headless systems usually work without sudo ?
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.
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.
Is it realistic to hope you to remember such many little things like this each time you setup some system ?
How many headless systems usually work without sudo ?
I'm worked a whole life making software and I've always acted to ease my users' life... but may be just me.
Thanks for the response; I'll try to remember to apt-mark sudo as manual installed next time.
Removing sudo (1.9.13p3-1+deb12u1) ...
You have asked that the sudo package be removed,
but no root password has been set.
Without sudo, you may not be able to gain administrative privileges.
Thinking of scenarios how `sudo` could end up marked as automatically-installed...
It would be helpful if autoremove SORTED the list of packages to be
removed so that other, important packages, wouldn't be hidden among
all the python3-whatever packages.
If you look at <https://lists.debian.org/debian-user/2025/07/msg00798.html> more closely, you'll see that they are not sorted alphabetically.
Lee (HE12025-07-30):
It would be helpful if autoremove SORTED the list of packages to be
removed so that other, important packages, wouldn't be hidden among
all the python3-whatever packages.
Oh, yes, excellent idea, let it use an unpredictable order rather than
that boring alphabetical order.
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.
There are many other tools that allow you to run things as root under
certain conditions (doas, pkexec, runc, ssh, etc.). There is no way
sudo's prerm script can check all possible ways (which would also
include being able to "understand" all possible configurations of each tool!).
(please don't CC me when replying to the list)
On Wed, 2025-07-30 at 19:55 +0100, Darac Marjal wrote:
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.
There are many other tools that allow you to run things as root under
certain conditions (doas, pkexec, runc, ssh, etc.). There is no way
sudo's prerm script can check all possible ways (which would also
include being able to "understand" all possible configurations of each tool!).
On Thu 31 Jul 2025 at 19:07:30 (+0000), Andy Smith wrote:
On Thu, Jul 31, 2025 at 08:01:56PM +0200, Jan Claeys wrote:
We have learned in this thread that sudo does already have a check in its prerm that prevents its removal if the system has a root account with no password or if root is a locked account.
Do other flavours of linux and unix do this? I view this sort of
protection in the same way as, for example, making "rm -i" the default behaviour of rm. It leads people to assume there's always a safety net
when their actions are reckless.
On Thu 31 Jul 2025 at 19:07:30 (+0000), Andy Smith wrote:
We have learned in this thread that sudo does already have a check in its
prerm that prevents its removal if the system has a root account with no
password or if root is a locked account.
It seems reasonable to argue that if sudo is already installed then the user >> might use it and erring on the side of caution by assuming that there
may not be another way to obtain root privileges is appropriate. Yes
that will occasionally be unnecessary if the user intends to switch to a
sudo alternative. The removal can be forced in that case.
Do other flavours of linux and unix do this? I view this sort of
protection in the same way as, for example, making "rm -i" the default behaviour of rm. It leads people to assume there's always a safety net
when their actions are reckless.
Debian should embed an AI in apt to detect when users are about to make
a mistake and prevent them from doing it.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 28:30:31 |
| Calls: | 12,107 |
| Calls today: | 7 |
| Files: | 15,006 |
| Messages: | 6,518,231 |