You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
404 error on Apt repository when following Debian installation instructions #1685
On Debian buster, sudo apt-add-repository -u https://cli.github.com/packages sets the repository distro to the release name (buster), which does not seem to exist.
Attempting to update the Apt cache fails with a 404 error.
Steps to fix the error
Edit /etc/apt/sources.list and rename the distro name to stable (from buster).
It seems like specifying the complete repository string as a parameter to apt-add-repository would do the trick, at least for Debian users:
changed the title [-]Incorrect distro repository following Debian installation instructions[/-][+]404 error on Apt repository when following Debian installation instructions[/+]on Sep 11, 2020
add-apt-repository has the unwanted habit of rewriting all files in /etc/apt/sources.list.d/ unconditionally and the containing package is not installed by default on debian, so the equivalent command `echo "deb https://cli.github.com/packages stable main | sudo tee /etc/apt/sources.list.d/github.list" would be a nice addition to the install section..
Activity
[-]Incorrect distro repository following Debian installation instructions[/-][+]404 error on Apt repository when following Debian installation instructions[/+]mislav commentedon Sep 14, 2020
@cunha Thank you for reporting!
@vilmibm Would adding support for Debian buster be as straightforward as explicitly listing Ubuntu versions as supported? Ref. #1615 #1637
vilmibm commentedon Sep 14, 2020
yup, can do
mgabeler-lee-6rs commentedon Sep 15, 2020
Debian bullseye has the same issue too
vilmibm commentedon Sep 16, 2020
Just manually added packages for: oldstable, testing, unstable, stretch, buster, jessie, bullseye
eMPee584 commentedon Oct 9, 2020
add-apt-repositoryhas the unwanted habit of rewriting all files in/etc/apt/sources.list.d/unconditionally and the containing package is not installed by default on debian, so the equivalent command `echo "deb https://cli.github.com/packages stable main | sudo tee /etc/apt/sources.list.d/github.list" would be a nice addition to the install section..