Question

I can't apt update github repo doesn't have a "Release file"

I was trying to update with apt-get update and I got this result:

E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu 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.
E: The repository 'https://github.com/myacount/myrepo.git 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.

How can I update my existing release? Thank you!


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @AlenosEMPEROR,

I’m starting this in a new answer thread for better visibility

If the GitHub repo has seen new commits pushed to it, while you were working locally, I would advise using:

git pull --rebase
git push

The full syntax is:

git pull --rebase origin main
git push origin main

With Git 2.6+ (Sept. 2015), after having done (once)

git config --global pull.rebase true
git config --global rebase.autoStash true

A simple git pull would be enough.

(Note: with Git 2.27 Q2 2020, a merge.autostash is also available for your regular pull, without rebase)

That way, you would replay (the --rebase part) your local commits on top of the newly updated origin/main (or origin/yourBranch: git pull origin yourBranch).

I would recommend a:

# add and commit first
git push -u origin main

That would establish a tracking relationship between your local main branch and its upstream branch. After that, any future push for that branch can be done with a simple:

git push

Another solution would be to try and use a branch and then merge it from the git ui.

Thank you for your quick answer @KFSys , I am pretty new to digital ocean and ubnutu, so I watched a tutorial on deploying my web app (https://www.youtube.com/watch?v=oykl1Ih9pMg&t=522s).

Regarding the source files, I added them via the command line. git clone myrepourl

Again, thank you for your submission. Regards, AlenosEMPEROR

Hi @AlenosEMPEROR,

The important part of this error message is “focal release”.

You probably already know that each Ubuntu release has a codename. For Ubuntu 20.04, the codename is Focal Fossa. The “focal” in the error message indicates Focal Fossa which is Ubuntu 20.04.

The error is basically telling you that though you have added a third-party repository to your system’s sources list, this new repository is not available for your current Ubuntu version.

This most probably means you are using a new version of Ubuntu and the developer has not made the software available for this new version.

I take it, you’ve added the repository manually in your sources file, is that correct? If so, how exactly did you add it there, what Line did you add?

Regards, KFSys