ubuntu repository error

How to fix “The Repository ‘http://apt.***.com/focal focal Release’ does not have a Release file.”

Table of Contents

Using PPA or incorporating third-party repositories is one of the many ways to instal apps in Ubuntu. A few magical lines give you fast access to apps or a newer version of the software that isn't installed by default in Ubuntu.

All appears to be fine until you get into the habit of installing additional third-party repositories, at which point you experience an error similar to this when upgrading Ubuntu:

E: The repository ‘http://apt.vestacp.com/focal focal 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.

This error is usually found if you are trying to update ubuntu from command line using this command:

sudo apt-get update

It's not a big issue unless some of the scripts depend on it to install themselves. It then becomes important to remove these errors.

How to fix it?

You're probably aware that each Ubuntu release is assigned a codename. Focal Fossa is the codename for Ubuntu 20.04. The term “focal” in the error message refers to Ubuntu 20.04's Focal Fossa.

Although you added a third-party repository to your system's sources list, this new repository is not available for your current Ubuntu edition, according to the error.

Why is this the case? Since you're possibly using a newer edition of Ubuntu, and the developer hasn't yet released updates for it.

To delete this unavailable directory, like in this case, the repository of Vesta Control Panel, open the command line and input these commands.

cd /etc/apt/sources.list.d
ls -alh

try to find the name of the culprit repository, in this case vesta.list

SCREENSHOTLICENSE6
How to fix "The Repository 'http://apt.***.com/focal focal Release' does not have a Release file." 2

The next command is to remove this file

sudo rm -rf vesta.list

Now update the ubuntu and you should see no error.

sudo apt-get update

You should be able to update now with no errors. If these kind of errors still persist, you can comment below and I can help you with similar commands.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

2 Responses

  1. Am getting this error

    N: Skipping acquire of configured file ‘nginx/binary-i386/Packages’ as repository ‘http://nginx.org/packages/mainline/ubuntu focal InRelease’ doesn’t support architecture ‘i386’

    1. This error means your sources list in Ubuntu is trying to acquire the wrong architecture file of Nginx. To fix this error, try to find the list by running this command.

      cd /etc/apt/sources.list.d
      grep nginx * | grep -v amd64

      Then edit that file by adding [arch=amd64] to the line having http://nginx.org/packages/mainline/ubuntu focal InRelease
      The final result should look something like this

      deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu focal InRelease

      Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: