Comment 4 for bug 658960

Revision history for this message
A. Eibach (andi3) wrote :

>Use 'apt-get autoremove' to remove them.

>while it should give the warning as
>Use 'sudo apt-get autoremove' to remove them

It NOT that simple.
There should be made a case decision:

- Are we really sudo'ing?
- Are we working directly under root, i. e. the shell with the hash prompt?

In the latter case, a 'sudo' would be total nonsense.

In a nutshell, we have to check for internal user ID (zero, non-zero).