I have tried to install Pop-Desktop on Ubuntu, but now I want to turn back to default DE

I'm on Ubuntu 20.04 LTS.

I've tried to download pop-desktop on Ubuntu with:

sudo add-apt-repository ppa:system76/pop

sudo apt update

sudo apt install pop-desktop

and I've got the error:

 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
 Errors were encountered while processing:
 /var/cache/apt/archives/pop-gnome-initial-setup_3.36.1~1612193315~20.04~4367c76_amd64.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)

While I was checking on the web, I've learned that this can be because of conflicting packages. Now I want to ask how to undo what I just did.

sudo apt remove pop-desktop didn't work and it returned with something like

 package pop-desktop not found

After all, a few things are changed in Ubuntu. E.g. Colour of the login screen is grey, the highlighting colour is light blue, and for the "Upgrade OS" settings it says "Pop!_OS version 20.10 is available".

I would like to know if doing sudo apt install ubuntu-desktop helps to fix it? By the way, I've already done sudo add-apt-repository -r ppa:system76/pop

I'm new here. Sorry if the formatting is weird.


Solution 1:

Dpkg error

You need to force overwriting of the files causing the errors:

sudo dpkg -i --force-overwrite <filename>

In your case it's going to be:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/pop-gnome-initial-setup_3.36.1~1612193315~20.04~4367c76_amd64.deb

Then run:

sudo apt-get -f install

Removing Pop os!

Remove all components of pop which are left .

sudo add-apt-repository ppa:system76/pop

You need to purge the repository instead of removing it.

sudo apt install ppa-purge
sudo ppa-purge system76/pop 

This will downgrade all the packages which pop os changed, (If system 76 repository is not found try pressing tab after writing system)

Then remove the repository by

sudo rm -r /etc/apt/sources.list.d/system76*

Then run sudo apt update and sudo apt upgrade.

Reboot your computer, then fire off the following commands -

sudo update-grub
sudo apt install purge

(You can skip the following step (purging pop and system76) if you don't want to get rid of pop os apps)
Next, remove all packages whose name starts with pop. Since this can be destructive if you have any packages not related to Pop! but whose name begins with the string pop, first run this to just print what packages will be removed:

sudo apt --dry-run purge pop=-* system76*

Look over the list of packages to be purged carefully and make sure they are all related to Pop!. Once you are confident that they are, go ahead and run the command:

sudo apt purge pop-* system76*

This will remove all components of pop completely.


Install Ubuntu packages again (this is optional but don't take a risk)

sudo apt install ubuntu-desktop^

if you want a light install then you can also run sudo apt install ubuntu-desktop


, In the end, run this -

sudo apt clean 
sudo apt autoclean 
sudo apt autoremove 
sudo apt update 
sudo apt upgrade 

Ok now Let us Verify

So that you can understand better I have made steps so that you can skip extra work (before doing anything make sure to update your system by sudo apt update && sudo apt upgrade)

Let's check if everything has changed back to Ubuntu or is still Pop os! (If it is still Pop os then don't worry, I have a solution for that too !)

Step 1: You can check it by running

cat /etc/apt/sources.list | grep system76

If this returned anything then move to step 3, if not then move to move to step 2

Step 2: Verify another thing

cat /etc/apt/sources.list | grep Pop Os!

If this returned anything move to Step3*, else move to step 4

Step 3: making system ubuntu again

Run the following command (after that follow hashtags "#")

sudo gedit /etc/apt/sources.list
# Opens the repository list 

### Change the content of the file  to 

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner

#### Now upgrade
sudo apt upgrade

If you are on some other Ubuntu release (other than 20.04), then you need to change the code name (or you could browse the internet and look if someone has uploaded the sources.list file for your release already !), so that wherever you have "focal", you need to change it to your release code name like "hirsute" (if you want to know your codename then you can run cat /etc/os-release )

Almost in every ubuntu release changing the codename in sources.list works but maybe in certain future/past releases this may not work, so you can search on google if someone has uploaded or else ask from a friend, this answer may help you too!

Step 4: Upgrade your system

sudo apt update && sudo apt upgrade && sudo apt clean && sudo apt dist-upgrade && sudo apt full-upgrade

If you are new it not so expert with Linux and is not sure if everything has gone fine or not you could always contact me in comments or AUGR (Ask ubuntu general room (ping me)


You're Welcome!