
数週間前にUbuntuコンピュータからシェルを介してGitHub CLIをインストールしようとしましたが、今すぐ更新しようとするたびに次のエラーが発生します.
E: The repository 'https://cli.github.com/packages kinetic 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.
私はこのコンピュータをシェルでのみ使用しているので、どのGUIも開くことができません。現在Ubuntu 22.10を使用している人はいますか?
答え1
APTソースが正しくありません。stable
代わりに含める必要がありますkinetic
。
で問題のあるソースを削除する/etc/apt/sources.list
か、独自のファイルで定義されている場合は/etc/apt/sources.list.d/
削除してください。
それを見つけるには、以下を使用してくださいgrep
。
grep -r kinetic /etc/apt/sources.list*
それはすべてです。
それでもGitHub CLIを(再)インストールするには:Debian、Ubuntu Linux、Raspberry Pi OS(apt)のインストール手順:
type -p curl >/dev/null || sudo apt install curl -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/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
あまりにも多く入力しましたか?私はステップを追加しましたペーストビンコードを簡単にダウンロードして実行できます。実行前に必ず内容をご確認ください!
curl -s https://pastebin.com/raw/ejJNbaE8 | tr -d '\r' | sh