apt-get update

Hit:1 https://repos.sonar.digitalocean.com/apt main InRelease
Ign:2 http://mirrors.digitalocean.com/ubuntu cosmic InRelease                                                                          
Ign:3 http://mirrors.digitalocean.com/ubuntu cosmic-updates InRelease                                                                  
Ign:4 http://mirrors.digitalocean.com/ubuntu cosmic-backports InRelease                                                                
Err:5 http://mirrors.digitalocean.com/ubuntu cosmic Release                                                  
  404  Not Found [IP: 104.24.116.209 80]
Err:6 http://mirrors.digitalocean.com/ubuntu cosmic-updates Release                                          
  404  Not Found [IP: 104.24.116.209 80]
Err:7 http://mirrors.digitalocean.com/ubuntu cosmic-backports Release           
  404  Not Found [IP: 104.24.116.209 80]
Ign:8 http://security.ubuntu.com/ubuntu cosmic-security InRelease               
Err:9 http://security.ubuntu.com/ubuntu cosmic-security Release          
  404  Not Found [IP: 91.189.91.39 80]
Hit:10 http://ppa.launchpad.net/certbot/certbot/ubuntu cosmic InRelease
Reading package lists... Done 
E: The repository 'http://mirrors.digitalocean.com/ubuntu cosmic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.digitalocean.com/ubuntu cosmic-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.digitalocean.com/ubuntu cosmic-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://security.ubuntu.com/ubuntu cosmic-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I know Ubuntu 18.10 is no more supported, but how can I update my source and get 19.04 installed

edited by MattIPv4

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.

×
1 answer

Hello, @bhkdev121

Ubuntu 18.10 (aka cosmic) reached end of life on July 18, 2019.

After a release has been EOL for some time, Ubuntu moves the repositories to denote that they are no longer supported. We just sync their archive changes in our mirrors. So when they disappear there, they disappear in ours as well.

Recommended fix:
Upgrade to Ubuntu 18.04

Alternate fix:

If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com and security.ubuntu.com to old-releases.ubuntu.com.

then update with:

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

Warning: As with almost any upgrade between major releases of an operating system, this process carries an inherent risk of failure, data loss, or broken software configuration. Comprehensive backups and extensive testing are strongly advised.

To avoid these problems, we recommend migrating to a fresh Ubuntu 20.04 server rather than upgrading in-place. You may still need to review differences in software configuration when upgrading, but the core system will likely have greater stability. You can follow our series on how to migrate to a new Linux server to learn how to migrate between servers.

Hope that helps!

Regards,
Alex

by Brian Boucheron
<$>[warning] Warning: As with almost any upgrade between major releases of an operating system, this process carries an inherent risk of failure, data loss, or broken software configuration. Comprehensive backups and extensive testing are strongly advised. To avoid...
  • This is not a suitable answer for multiple reasons.

    1. You cannot upgrade from 18.10 to 18.04. Apt-Get is broken entirely for any and all upgrades/downgrades installs etc.
    2. sudo apt-get update does not work at all when the DO mirrors do not work for the current version of my server (18.10).
    3. Changing sources.list does not work. This may be an issue on my end, as I don’t know if I need to restart my server before it works. That should be added to the instructions if that’s the answer.
    4. The link to upgrade from 18.04 would be awesome…but there is nothing I can do when apt-get does not work at all for anything.

    It is strange that I can upgrade from 18.04 easily to 20.04…but 18.10 is not supported at DO. Then when a customer asks specifically about it upgrading from 18.10, we are given a link to upgrade from 18.04. This is an infinite loop of stupidity.

    At this point, my only solution is to create a new droplet and move everything over to the new server. D-U-M-B.

Submit an Answer