cli / cli

GitHub’s official command line tool
https://cli.github.com
MIT License
36.62k stars 5.59k forks source link

apt fails to check gh cli repo #9280

Open splaisan opened 2 months ago

splaisan commented 2 months ago

(ubuntu 22 using apt - system up-to-date)

similar to previous (solved) issue but the fix proposed there does not fix here nor does the instructions found on https://github.com/cli/cli#installation as seen below deinstalling then reinstalling also does not fix thanks for your help

$ (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
Hit:2 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease                                                                                                                   
Ign:3 https://cli.github.com/packages jammy InRelease                                                                                                                                        
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                                               
Hit:5 https://packages.wazuh.com/4.x/apt stable InRelease                                                                                                                                    
Hit:6 https://cli.github.com/packages stable InRelease                                                                                                                                       
Err:7 https://cli.github.com/packages jammy Release                                                                                                                                          
  404  Not Found [IP: 185.199.111.153 443]
Hit:8 https://packages.cloud.google.com/apt cloud-sdk InRelease                                                                                                                              
Hit:1 https://packages.icinga.com/ubuntu icinga-focal InRelease                                                                                                                              
Hit:9 http://apt.puppetlabs.com stretch InRelease                                         
Hit:10 http://be.archive.ubuntu.com/ubuntu jammy InRelease          
Hit:11 http://be.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:13 http://be.archive.ubuntu.com/ubuntu jammy-backports InRelease     
Hit:14 http://be.archive.ubuntu.com/ubuntu jammy-security InRelease      
Hit:12 https://linux.dell.com/repo/community/openmanage/950/focal focal InRelease
Reading package lists... Done
E: The repository 'https://cli.github.com/packages jammy 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.
edelmoral commented 1 day ago

I am in Venezuela and https://cli.github.com isn't accesible from here. My issue was solved by using a VPN.