Roots Discourse

Ubuntu xenial Release' does not have a Release file

Have attempted to provision a couple of different servers on DO tonight and can’t seem to get past this error.

Preformatted text W: The repository 'http://mirrors.digitalocean.com/ubuntu xenial Release' does not have a Release file. W: The repository 'http://mirrors.digitalocean.com/ubuntu xenial-updates Release' does not have a Release file. W: The repository 'http://mirrors.digitalocean.com/ubuntu xenial-backports Release' does not have a Release file. E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial- backports/restricted/source/Sources 404 Not Found [IP: 103.253.144.50 80] E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial/main/source/Sources 404 Not Found [IP: 103.253.144.50 80] E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial- updates/main/source/Sources 404 Not Found [IP: 103.253.144.50 80] E: Some index files failed to download. They have been ignored, or old ones used instead. W: The repository 'http://mirrors.digitalocean.com/ubuntu xenial Release' does not have a Release file. W: The repository 'http://mirrors.digitalocean.com/ubuntu xenial-updates Release' does not have a Release file. W: The repository 'http://mirrors.digitalocean.com/ubuntu xenial-backports Release' does not have a Release file. E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial- backports/restricted/source/Sources 404 Not Found [IP: 103.253.144.50 80] E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial/main/source/Sources 404 Not Found [IP: 103.253.144.50 80] E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial- updates/main/source/Sources 404 Not Found [IP: 103.253.144.50 80] E: Some index files failed to download. They have been ignored, or old ones used instead.

failed: [****.com] (item=[u'python-software-properties', u'python-pycurl', u'build-essential', u'python-mysqldb', u'curl', u'git-core', u'dbus', u'libnss-myhostname']) => { "cmd": "apt-get update", "failed": true, "invocation": { "module_args": { "allow_unauthenticated": false, "autoremove": false, "cache_valid_time": 3600, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": [ "python-software-properties", "python-pycurl", "build-essential", "python-mysqldb", "curl", "git-core", "dbus", "libnss-myhostname" ], "only_upgrade": false, "package": [ "python-software-properties", "python-pycurl", "build-essential", "python-mysqldb", "curl", "git-core", "dbus", "libnss-myhostname" ], "purge": false, "state": "present", "update_cache": true, "upgrade": null }, "module_name": "apt" }, "item": [ "python-software-properties", "python-pycurl", "build-essential", "python-mysqldb", "curl", "git-core", "dbus", "libnss-myhostname" ], "rc": 100,

This got me one step closer - but now I am failing later in the provision.

sudo apt-get update
sudo apt-get upgrade
sudo apt-key update

I think I’m running into this error too on reprovisioning an existing server. I’m failing at
TASK [sshd : Ensure latest SSH server and client are installed] ****************

a few errors all along the lines of:

/openssh-client_7.2p2-4ubuntu2.2_amd64.deb  404  Not Found [IP:
103.253.144.50 80]```

```E: Unable to fetch some archives, maybe run apt-get update or try with --fix-
missing?```

```"Err:3 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 openssh-client amd64 1:7.2p2-4ubuntu2.2", "  404  Not Found [IP: 103.253.144.50 80]"]```

Had this error with DO all morning; it resolved itself around noon EST.

1 Like

I just had similar using latest Trellis (about two weeks old, anyway):

Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/main/libu/liburi-
perl/liburi-perl_1.76-2_all.deb  500  Internal Server Error [IP: 104.21.29.13
80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-
missing?

Logging into the server (as admin@ip-address) and running sudo apt-get update solved the problem. I guess there were some mirrors that weren’t yet available before running that command.

Got a similar error on php7.4-dev, but running the provisioning script a second time, it worked:

trellis provision --tags php staging.

Then I was able to run the entire provisioning successfully.