Upgrade to Ubuntu 15.04 from Ubuntu 14.04 LTS in 5 steps

Upgrade to Ubuntu 15.04 from Ubuntu 14.04 LTS in 5 steps

Ubuntu 15.04 final release is just 3 days away and now it’s time for upgrades. This release, although not very exciting on the UI front, is shaping up quite well with some pretty under the hood improvements, plus the much needed upgrade to Gnome 3.14 (not the latest gnome version though!). I’ve been running this release since the first beta and have had no issues at all. The release seems to be rock solid with minimal disruptions graphically.
Now, upgrading from point release is very easy. However, if you are skipping one release and upgrading from Ubuntu 14.04 LTS, it may not be very straight forward if you go the traditional way.
But, a simple 5 step command line approach can help you overcome that problem. Below are the steps to upgrade from Ubuntu 14.04 (Trusty Tahr) to Ubuntu 15.04(Vivid Vervet).
Disclaimer: Please follow the instructions at your own risk. I assume you have some knowledge of Linux and can troubleshoot. I am not responsible if your laptop/desktop goes up in flames!
Important
  • Please remember to back up all your documents and all other data that you consider important.
  • Please uninstall all proprietary graphics card drivers from AMD, Nvidia or any other graphics card vendors

 

Steps
sudo sed -i 's/trusty/vivid/g' /etc/apt/sources.list
Disable third party ppas (optional, see note)
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install --reinstall ubuntu-desktop
sudo update-grub
sudo update-initramfs -u
Note: If you have third party ppas installed, you need to disable them. To do that run the following commands before you run the update command
cd /etc/apt/sources.list.d
sudo rename 's/(.*)/$1.bak/' *
sudo find . -type f -name "*" -print | xargs sed -i 's/trusty/vivid/g'
Once all have been completed, reboot the system to login to the new Ubuntu 15.04 release. Check your release information using the following command:
cat /etc/lsb-release 
 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.04
DISTRIB_CODENAME=vivid
DISTRIB_DESCRIPTION="Ubuntu 15.04"
If you want to enable the 3rd party ppas, just remove the .bak extension. To do that
cd /etc/apt/sources.list.d
find . -type f -name "*.bak"  -exec rename 's/.bak//' {} ;
 

Sayantan Das

Sayantan is a DevOps Consultant by the day and works mainly with Ansible and Linux . He is a AWS - SA and RedHat Certified Engineer . He loves to tinker with Linux systems .

Leave a Reply

tuxtrixmod
Close Menu
%d bloggers like this: