How to upgrade Ubuntu 12.04 LTS to Ubuntu 14.04 LTS

August 7, 2014 7.7k views

Hi there. I've been trying to upgrade Ubuntu 12.04 LTS to Ubuntu 14.04 LTS by typing sudo do-release-upgrade on terminal but I end up with "command not found" being outputted.

I'm afraid I'll have to create a new droplet with Ubuntu 14.04 LTS installed and then set up all my server stuff again such as LEMP Install, Nginx configuration etc.

Is there another way to officially upgrade to Ubuntu 14.04 LTS while keeping the same custom set up Digitalocean sets for its "1 click image install"?

I'd really appreciate any help regarding this issue.

Thanks in advance.

1 comment
3 Answers

sudo apt-get install update-manager-core

Now if you could help me with my issue with going from 12.10 to 14.04 LTS. I made a huge mistake and installed 12.10 and now have no upgrade path.

  • Humm...I think I've made the same thing, maybe that is the cause for no upgrade available.

    I decided to create a new droplet (LEMP install on UBUNTU 14.04 LTS) and start from the beginning, however, I've kept the droplet with Ubuntu 12.10 active in case I find any issues when restoring the database and website backup to the new droplet...

    I wish you success on your attempts!

The link below helped me

The essence of it is that the software sources file must be updated with workable URLs then you can update to 13.04. Then run the process again to reach 13.10. Running a update process a third time will get to the latest LTS. Your milage may vary. These steps worked for me.

  1. Update sources
    sudo sed -i -e 's/|' /etc/apt/sources.list

  2. Install the update manager
    sudo apt-get install update-manager-core

  3. Do these next four steps in a loop until you reach the Ubuntu LTS version you want
    sudo apt-get update && sudo apt-get upgrade
    sudo reboot
    sudo do-release-upgrade
    sudo reboot

  4. Remember to set the kernel version in the Digital Ocean console. You can view the kernels installed on your box in /lib/modules
    ls /lib/modules

****it maybe my laptop has problem because i cannot install wine on it

ubuntu software center
This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.**

Have another answer? Share your knowledge.