Indeed, it is difficult to remove all packages of an additional installed desktop if you do not have a list of all desktop packages that were installed.
When installing an entire desktop, e.g. with the command sudo apt install kubuntu-desktop
, all dependent packages are automatically installed if they are not yet installed on the system. The command shows all these packages, then asks you for confirmation to proceed. I usually copy that entire list of packages to a text file, so I could use the list to remove them all again if I wished to remove the desktop.
Removing KDE packages
If you did not do that, then it becomes more difficult. sudo apt autoremove
will remove all packages that were marked as "automatically installed" as a dependency of some package. However, when you install the kubuntu-desktop
metapackage, most main applications will be marked as manually installed, so removing it and issuing an autoremove
will remove little.
The best you can do is to use a graphical package manager such as Synaptic package manager to inspect all your installed packages, and gradually remove packages. Note carefully what other packages would be removed before proceeding: if you attempt to remove a package and you see that also ubuntu-desktop
would be removed, then you know you should keep away.
Use the Ubuntu default login manager GDM
To revert to the default login manager, issue the command sudo dpkg-reconfigure gdm3
. A dialog appears, in which you should select gdm3
.
Restore the default Ubuntu boot screen
Your Ubuntu splash screen will be restored with the command sudo apt purge plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text
.
Alternative approach: reinstall the system
A more intrusive approach to clean up would be to reinstall. In your case, a reinstall may solve the "slow performance" you experience.
It is possible to reinstall and leave your user configuration and user data in place. To achieve that, you need to select "Something else" in the installer, and then indicate the partitions yourself. Then, you can uncheck "format". In that scenario, the installer will reinstall the system on the same partition without erasing it first. The end result is that your data, user configuration and additionally installed applications, etc. will be preserved. All system configuration, however, will be freshly rewritten.
- Do that only with an installation USB or DVD of the same Ubuntu version.
- This is a "less clean" approach: there will be less chance that that may resolve your performance issue.
Remove error message at startup
The "system error" at start up may be minor if otherwise the system is working well. The dialog is provided by the Apport service. You can disable Apport (and ignore such error messages) according to this post.