cli: Cannot install on non-LTS ubuntu

When attempting to install Github Cli on Ubuntu 20.04 via the apt route, the install fails due to the lack of a release file.

Steps to reproduce

Follow linux ubuntu install directions.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository -u https://cli.github.com/packages
sudo apt install gh

Expected result

Github CLI is installed

actual result

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository -u https://cli.github.com/packages
sudo apt install gh
Executing: /tmp/apt-key-gpghome.3Je5k6oMbI/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
gpg: key C99B11DEB97541F0: "Nate Smith <vilmibm@github.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
Ign:1 https://cli.github.com/packages eoan InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu eoan InRelease                                                                                                   
Hit:3 https://storage.googleapis.com/bazel-apt stable InRelease                                                                                            
Hit:4 https://packages.grafana.com/oss/deb stable InRelease                                                                                                
Err:5 https://cli.github.com/packages eoan Release                                                                                                  
  404  Not Found [IP: 185.199.111.153 443]
Hit:6 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease                                                              
Hit:7 http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu eoan InRelease                                                   
Hit:8 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease                                                          
Hit:9 http://security.ubuntu.com/ubuntu eoan-security InRelease                                       
Hit:10 https://packages.riot.im/debian default InRelease
Reading package lists... Done
E: The repository 'https://cli.github.com/packages eoan 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.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gh


About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 27 (6 by maintainers)

Most upvoted comments

I just pushed packages for eoan, cosmic, disco, groovy.

@cforce : I could fix it by changing jammy to stable in my repo-file in /etc/apt/sources.list.d:

#deb https://cli.github.com/packages jammy main
deb https://cli.github.com/packages stable main