The repository '...' does not have a Release file.

January 17, 2018 8.9k views
Linux Basics Ubuntu 16.04

When I try to install the IOTA full node with this tutorial[http://iri-playbook.readthedocs.io/en/master/getting-started-quickly.html#getting-started-quickly]

I get this error:
Welcome to IOTA FullNode Installer!
This script is going to install IOTA full node.
Do you wish to proceed? [y/N] y
Updating system packages...
E: The repository 'http://security.debian.org xenial/updates Release' does not have a Release file.
E: The repository 'http://mirrors.digitalocean.com/debian xenial Release' does not have a Release file.
E: The repository 'http://mirrors.digitalocean.com/debian xenial-updates Release' does not have a Release file.
E: The repository 'http://mirrors.digitalocean.com/debian xenial-backports Release' does not have a Release file.

when I am running the
bash <(curl -s https://raw.githubusercontent.com/nuriel77/iri-playbook/master/fullnode_install.sh)

command

1 Answer

It looks like your apt repositories are configured incorrectly. They are pointing to the Debian repositories but are also configured for the xenial distribution which is Ubuntu 16.04 so not Debian at all. This configuration is located in the file /etc/apt/source.list.

If your droplet is running Ubuntu, replace all instances of debian with ubuntu, and http://security.debian.org xenial/updates with http://mirrors.digitalocean.com/ubuntu xenial-security. Run apt-get update to refresh the cache after making any changes to the repository list.

  • how to replace it?

    • You can either open the file in a text editor and replace them manually, or use sed to automate the process. The syntax is s/search/replace/.

      sudo sed -i .bak -e "s/debian/ubuntu/" -e "s/http:\/\/security.debian.org xenial\/updates/http:\/\/mirrors.digitalocean.com\/ubuntu xenial-security/" /etc/apt/source.list
      

      I haven't tried that command myself but it should work. Either way, it creates a copy of the file with the extension ".bak" so you can go in and review the changes and undo them if you need to.

Have another answer? Share your knowledge.