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

Purge GNOME desktop environment w/ remove_cups_packages #3

Closed
derogab opened this issue Sep 29, 2024 · 2 comments
Closed

Purge GNOME desktop environment w/ remove_cups_packages #3

derogab opened this issue Sep 29, 2024 · 2 comments

Comments

@derogab
Copy link
Contributor

derogab commented Sep 29, 2024

The remove_cups_packages function causes a complete purge of GNOME desktop environment in Debian 12.7.

The problem seems to be caused by these lines:

cups_packages=$(dpkg -l | grep 'cups' | awk '{print $2}')
if [ -n "$cups_packages" ]; then
  package_count=$(echo "$cups_packages" | wc -l)
  apt-get purge -y $cups_packages >/dev/null 2>&1
fi

The removal of packages cups-pk-helper and libcups2 causes the complete removal of desktop environment.

@Turtlecute33
Copy link
Owner

I should have fixed the issue, now the script removes all the cups related packages but cups-pk-helper and libcups2 are whitelisted. Can you kindly test it? i don't have a working ubuntu machine with GNOME installed

@derogab
Copy link
Contributor Author

derogab commented Sep 29, 2024

Just executed the script again and I still have my GNOME. It seems that the workaround works well :)

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

2 participants