How to remove Pantheon DE from Ubuntu 16.04?
You used dist-upgrade
to install Elementary DE. By doing so, you installed PPA provided versions of packages over standard Ubuntu versions. For example, if Ubuntu provides a nautilus
package, and those PPAs provide another nautilus
package with higher version, you installed that one.
That's why only removing extra elementary packages such as elementary-desktop
, elementary-icon-themes
is not sufficient. You have to remove those patched packages too!
So, to completely remove elementary effect, you must go back to Ubuntu versions of packages. To do so, you need ppa-purge
. Because only (as a tool to do these things) ppa-purge
downgrade packages from PPA versions to Ubuntu versions.
Use these (Change the list according to your usage of PPAs)
sudo ppa-purge ppa:elementary-os/daily
sudo ppa-purge ppa:elementary-os/os-patches
sudo ppa-purge ppa:elementary-os/testing
sudo ppa-purge ppa:mpstark/elementary-tweaks-daily
sudo ppa-purge ppa:elementary-os/stable
To completely get rid of elementary things.
If you don't have ppa-purge
already installed, install using
sudo apt-get install ppa-purge
Note 1: If you already removed those PPA repository either using sudo apt-add-repository -r
or manually editing files, re-add them. Because ppa-purge
needs those package list to do the downgrading. After re-adding them, use
sudo apt-get update
command to refresh package index.
Note 2: If you are having an error from ppa-purge
saying it can't find aptitude
use
sudo apt-get install aptitude
to install it.
Note 3: If ppa-purge
fails for some PPAs not being available, remove those PPA entries manually. ppa-purge
won't work if every repository doesn't work.
Note 4: If some of PPAs are disabled now (after installing package from them), you have little luck downgrading them automatically. You can identify them and manually downgrade them using synaptic or aptitude. But it's a tedious job.
Note 5: If you still see Elementary session listed on Lightdm, remove pantheon-session
package manually.
Notes 6: Remove every extra packages you can identify installed from those PPAs but not available in Ubuntu repositories.
Related videos on Youtube
afagarap
A Master of Science in Computer Science student at De La Salle University - Manila. His research interests are the Foundations of Machine Learning and Deep Learning, Game Theory in Machine Learning, Interpretability for Machine Learning, and Numerical Analysis. He was a recipient of the Intel Excellence in Computer Science award, and was a part of the Philippine Team to the Intel International Science and Engineering Fair (Intel ISEF) 2013 in Phoenix, Arizona, USA. In July 2018, he was chosen as one of the 24 participants out of 562 applicants worldwide for the Google TensorFlow Deep Learning Camp 2018 in Jeju Island, South Korea.
Updated on September 18, 2022Comments
-
afagarap over 1 year
Can anyone help me remove
elementary-desktop
? I installed it in my Ubuntu 16.04 LTS x64 system. I already did the "solution" from this question:
How to completely remove Elementary-Desktop from Ubuntu 14.04
and alsosudo apt-get purge elementary-desktop elementary-icon-theme elementary-theme elementary-default-settings
still no luck. I also did
sudo apt-get autoclean elementary-desktop
still didn't do the job. It's still in my system, "elementary OS Desktop" is written in my bar, plus it could still be selected during login.
Btw, I just followed the installation here: How do you install Pantheon on Ubuntu 16.04?
-
afagarap over 7 yearsI already tried using
synaptic
, still no luck.
-
-
afagarap over 7 yearsI already removed those PPAs, can I re-add them? So that I could
ppa-purge
them? -
Anwar over 7 yearsYes. if you didn't use
ppa-purge
to remove those ppas, re-add them -
afagarap over 7 yearsAfter re-adding them, do I still need to do
sudo apt-get dist-upgrade
? -
Anwar over 7 yearsNo. You should only use
sudo apt-get update
-
afagarap over 7 yearsOkay, got it. I'm doing it right now.
-
afagarap over 7 yearsI got this output:
darth@darth-Inspiron7559:~$ sudo ppa-purge ppa:elementary-os/daily Updating packages lists W: The repository 'http://ppa.launchpad.net/mpstark/elementary-tweaks-daily/ubuntu xenial Release' does not have a Release file. E: Failed to fetch http://ppa.launchpad.net/mpstark/elementary-tweaks-daily/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. Warning: apt-get update failed for some reason
All through out the end -
Anwar over 7 yearsOK. some ppas seem to be removed or not available now. I don't know if you used those. anyway, continue using ppa-purge
-
afagarap over 7 yearsYou mean, I'll re-run the ppa-purge commands?
-
Anwar over 7 yearsYes. since some are missing PPAs. remove those ppa entry manually editing the file or removing them and do
ppa-purge
on rest of the repositories -
afagarap over 7 yearsI had this error:
/usr/sbin/ppa-purge: line 191: aptitude: command not found
-
afagarap over 7 yearsI did all the ppa-purge, repeatedly actually. Still, no luck.
-
Anwar over 7 yearsI don't know how many PPAs actually exists after infecting your machine. If those PPAs aren't exists anymore, you have no luck other than manually identifying every package not from Ubuntu repo, downgrading
-
afagarap over 7 yearsOkay, good news. I successfully removed the elementary-desktop. However, there are two remnants of it: (1) it is still visible as an option in my lightdm, (2) I can't use the shortcut key for my terminal which is
Ctrl+Alt+T
-
Anwar over 7 yearsTo remove the lightdm entry look for packages named
elementary-session
or such. remove. And you can re-assign shortcut for terminal -
afagarap over 7 yearsI searched for
elementary-session
viasynaptic
, it didn't find it. As for the shortcut, I have it configured to be called viaCtrl+Alt+T
. The thing is, when I'm pressing that shortcut, the terminal is not being called. -
afagarap over 7 yearsI've deleted the pantheon session, I've read this Q&A: askubuntu.com/questions/81161/…
-
afagarap over 7 yearsAs for the shortcut, I made a custom shortcut instead of the shortcut being in the Launcher shortcuts. Thanks very much for the help! :)
-
afagarap over 7 yearsBtw, the ppa-purge was failing at first because of the
ppa:mpstark/elementary-tweaks-daily
. I removed it usingsynaptic
and tried ppa-purge once again (without the mpstark/elementary-tweaks-daily). It got the job done. Thanks again. :)