Upgrading server from Ubuntu 14.10 to 15.04?

Posted May 6, 2015 11.2k views
Linux BasicsUbuntuDigitalOcean


I am getting this notice when logging into my droplet:

New release ‘15.04’ available.
Run 'do-release-upgrade’ to upgrade to it.

However when I attempt “do-release-upgrade -d”, I get the warning “no valid mirror found” and do I want to update the sources.list file. Is this safe? or will updating the sources.list file effect the operation of my droplet in the future?

Any advice? Should I just avoid updating to the new release?

Thanks in advance,

1 comment
  • Hi Benjamin,
    I did tried to upgrade to 15.04 too but Digitalocean’s apt mirrors (i.e. doesn’t contain packages for Vivid 15.04 yet.
    If want to upgrade to this version, edit your sources.list and add the following and adapt to your country :
    deb vivid main restricted
    deb vivid-updates main restricted

    I’ve seen some posts on the forum saying there’s some bug when booting 15.04 kernel, but I haven’t tried it yet.

    Tell us your feedback,

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

I added the new repositories but do_release_upgrade still fails to find a new release.

root@Test-vivid-upgrade:~# do-release-upgrade -d
Checking for a new Ubuntu release
No new release found
root@Test-vivid-upgrade:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty
root@Test-vivid-upgrade:~# tail -2 /etc/apt/sources.list
deb vivid main restricted
deb vivid-updates main restricted

  • After adding the new repositories, you need to upgrade your system.

    You can do that by running sudo apt-get update && sudo apt-get dist-upgrade. I would recommend running in a screen session so that if for whatever reason the ssh connection gets interrupted, the upgrade would still continue to run.

    Install screen and run it:

    sudo apt-get install screen

    Run the upgrade command:

    sudo apt-get update && sudo apt-get dist-upgrade

    Once you make sure everything is going well, you can detach from the screen session and come back to it later. To do that, press Ctrl-A, then D. To reattach to the session, run screen -r.

    by Justin Ellingwood
    In this article, we will discuss how to install and use "screen", a tool that allows you to manage multiple shell sessions inside a single terminal. The screen program is very useful for multi-tasking in an ssh environment, due to its ability to resume terminal sessions and perform multiple-concurrent tasks.

I tried to upgrade using the steps suggested by the mod. My current installation is Ubuntu 14.x, and when I started the upgrade to 15.04, among the list of removed packages was mariadb and phpmyadmin. Is mariadb not packaged in 15.04? And if it is removed, won’t that screw up my databases?

For anyone coming to this these days, this won’t be possible without modifying your apt sources.list since 15.04 (as well as 15.10) is End of Life.

Follow these instructions: