Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo apt autoremove runs forever #303

Open
markuman opened this issue Sep 4, 2023 · 0 comments
Open

sudo apt autoremove runs forever #303

markuman opened this issue Sep 4, 2023 · 0 comments

Comments

@markuman
Copy link

markuman commented Sep 4, 2023

After upgrading to sudo 1.9.14p3 from 1.9.9 on Ubuntu 22.04, sudo apt autoremove runs forever.

~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

keyboard interactivity is not possible anymore.
when

~$ sudo cat /etc/sudoers.d/00-log-subcmds
Defaults log_subcmds

is configured.
When the config file is removed, sudo apt autoremove works as expected

~$ sudo mv /etc/sudoers.d/00-log-subcmds .
~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
~$ 

this is the last log line when Defaults log_subcmds is set and sudo apt autoremove hangs

Sep  4 19:26:49 somehost sudo:   someuser : TTY=pts/1 ; PWD=/home/someuser ; USER=root ; COMMAND=/snap/snapd/current/usr/bin/snap advise-snap --from-apt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant