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-desktopand 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 foundAfter 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.
102 Answers
Installation/APT Errors.
There are two ways to fix it.
First, force-overwrite the files:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/pop-gnome-initial-setup_3.36.1~1612193315~20.04~4367c76_amd64.debThen run:
sudo apt-get -f installAlternatively, you can remove the
.debfiles as you're gonna remove that package anyway:sudo rm -rf /var/cache/apt/archives/pop-gnome-initial-setup_3.36.1~1612193315~20.04~4367c76_amd64.debRun force install:
sudo apt -f install
Turning back to the default desktop environment.
Follow these steps to remove all components of Pop!_OS:
Add the repository again because we're gonna
purgeit:sudo add-apt-repository system76/popPurge the repository:
sudo apt install ppa-purge sudo ppa-purge system76/popThis will remove all conflicts/depends/packages/changes done by the PPA.
Remove the list files for the repository:
sudo rm -r /etc/apt/sources.list.d/system76*Update:
sudo apt update && sudo apr upgradeReboot to confirm the changes.
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 stringpop, 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*
The above will completely remove all components of Pop!_OS.
Restore Ubuntu
Now, let's restore Ubuntu and it's components.
Restore the default Ubuntu packages:
sudo apt install ubuntu-desktop^The above command is massive and will install every package which comes by default with Ubuntu. Don't worry, it won't reinstall any package, it will just install missing packages.
Fix any issues with package manager and clear cache:
sudo apt clean sudo apt autoclean sudo apt autoremove sudo apt update sudo apt upgrade
Restore the default repositories.
This step is not at all necessary but is highly recommended.
First, confirm if the above steps were successful.
lsb_release -aIf it shows Ubuntu, then you can proceed. If not, then try rebooting.
Run this one-line copy-paste friendly command:
sudo mkdir ~/answer && cd ~/answer/ && sudo wget && sudo sed -i "s/focal/$(lsb_release -c -s)/" ~/answer/sources.list && sudo mv ~/answer/sources.list /etc/apt/ && sudo rm -rf ~/answer && sudo rm -rf /etc/apt/sources.list.d && sudo mkdir /etc/apt/sources.list.d && sudo apt updateRun a full upgrade:
sudo apt full-upgrade
You're welcome :)
If you've any questions/problems you can post a new comment/ping me in chat or Ask a new question.
Good luck :)
4The answer is here: dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Of course you’ll have to change the path to the path in your error output. In this case: /var/cache/apt/archives/pop-gnome-initial-setup_3.36.1~1612193315~20.04~4367c76_amd64.deb
3