I was running Ubuntu server and wanted to use a DE, but now I can't uninstall it. There are some problems with sleep settings, where the server will go to sleep because of some packages installed by KDE Plasma. When I try to remove it I get "not installed so not removed"
Here is exactly what I do.
sudo apt purge plasma-desktop
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'plasma-desktop' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
But then I run sudo apt list plasma
:
Listing... Done
plasma-applet-redshift-control/focal 1.0.18+phabricator~2019080100-1 all
plasma-browser-integration/focal-updates,now 5.18.5-0ubuntu0.1 amd64 [residual-config]
plasma-calendar-addons/focal-updates 4:5.18.7-0ubuntu0.1 amd64
plasma-dataengines-addons/focal-updates 4:5.18.7-0ubuntu0.1 amd64
plasma-desktop-data/focal-updates 4:5.18.8-0ubuntu0.1 all
... And even more packages.
Clearly SOMETHING is still installed. How can I get rid of it?
purge
though even that won't likely fix all. Did yousudo apt autoremove
– guiverc Feb 19 '22 at 00:13If I run apt list | grep plasma-desktop the result will be show that it is still installed.
– Sid Feb 19 '22 at 00:45plasma-desktop
is not in that list.plasma-desktop-data
is a different package. In any case, you may have learned the hard way why adding a DE just to try it is a bad idea. In the future you can use a live session so it won't affect your installed system. DE meta packages pull in dozens, sometimes 100+ dependencies. It's really messy to remove or change a DE, that's why Ubuntu comes in so many official flavours – Nmath Feb 19 '22 at 00:51[installed]
. You are showing a single package (plasma-browser-integration) that is marked[residual-config]
use apt's 'purge' command to get rid of residual configs. – user535733 Feb 19 '22 at 01:32apt
logs are a huge clue (var/log/apt/history.log
) where it's apt/dpkg commands that made changes, otherwise it'll be elsewhere. If you manually installed https://packages.ubuntu.com/focal/plasma-applet-redshift-control https://packages.ubuntu.com/focal/plasma-desktop-data & the other packages in your list; you can remove them - but I'm betting unless you specifically manually installed them; you're just going after easy fruit and not the real problem (and the more changes made the more non-standard you're making your system.. – guiverc Feb 19 '22 at 04:39