- Upgrade installed packages:
sudo apt update && sudo apt upgrade
- Remove all packages installed with checkinstall
- You can search with Synaptic using 'checkinstall' query
- Remove all ppa repositories (see "How to remove PPAs " below)
- Run Update Manager and upgrade distribution:
sudo update-manager -d
- After upgrade, use
lsb_release -a
to see Ubuntu version
Install ppa-purge: `sudo apt install ppa-purge
Then run the following script to autodetect PPAs and format ppa-purge commands:
#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name \*.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
echo sudo ppa-purge ppa:$USER/$PPA
done
done
You can copy-paste the script above using nano editor:
nano listppa.sh
. Then usechmod +x listppa.sh
to make script file executable, and run./listppa.sh
(without root privilegies)
Script will output PPA list with removal commands, e.g.:
sudo ppa-purge ppa:ubuntu-desktop/ubuntu-make
sudo ppa-purge ppa:ubuntu-sdk-team/ppa
sudo ppa-purge ppa:webupd8team/atom
sudo ppa-purge ppa:thomas-schiex/blender
sudo ppa-purge ppa:lyzardking/ubuntu-make
sudo ppa-purge ppa:zeal-developers/ppa
sudo ppa-purge ppa:ubuntu-toolchain-r/test
sudo ppa-purge ppa:cginternals/ppa
sudo ppa-purge ppa:ubuntu-desktop/ppa
sudo ppa-purge ppa:adrozdoff/cmake
sudo ppa-purge ppa:jonathonf/rustlang
Then copy-paste commands and run them in terminal (either one by one or all together).