By eduardocl
I have an error updating ubuntu which shows me the following
Ign:1 http://mirrors.digitalocean.com/debian bionic InRelease
Ign:2 http://mirrors.digitalocean.com/debian bionic-updates InRelease
Ign:3 http://mirrors.digitalocean.com/debian bionic-backports InRelease
Err:4 http://mirrors.digitalocean.com/debian bionic Release
404 Not Found [IP: 2604:a880:0:1::4 80]
Err:5 http://mirrors.digitalocean.com/debian bionic-updates Release
404 Not Found [IP: 2604:a880:0:1::4 80]
Err:6 http://mirrors.digitalocean.com/debian bionic-backports Release
404 Not Found [IP: 2604:a880:0:1::4 80]
Ign:7 http://security.debian.org bionic/updates InRelease
Err:8 http://security.debian.org bionic/updates Release
404 Not Found [IP: 2a04:4e42:1d::204 80]
Reading package lists... Done
E: The repository 'http://mirrors.digitalocean.com/debian bionic Release' does not have 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/debian bionic-updates Release' does not have 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/debian bionic-backports Release' does not have 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.debian.org bionic/updates Release' does not have 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.
code
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hey friend,
Somehow your apt configuration has replaced Ubuntu with Debian. Try this:
First back up your sources.list file:
cp /etc/apt/sources.list /etc/apt/sources.list.bak
Then let’s change Debian to Ubuntu:
sed -i 's/debian/ubuntu/g' /etc/apt/sources.list
Then let’s get rid of that last one:
sed -i 's/http:\/\/security.debian.org/#http:\/\/security.debian.org/g' /etc/apt/sources.list
And finally let’s run the update:
apt-get update
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.