Debian 10 ではサードパーティのリポジトリを使用できません。

Debian 10 ではサードパーティのリポジトリを使用できません。

サードパーティのリポジトリを使用している Debian 10 に問題があります。 DockerとZeroTier Oneをインストールしたいのですが、両方のリポジトリを使用しようとしたときに同様の問題が発生しました。

ZeroTierの場合、そのWebサイトにこのコマンドを使用するように指示しましたcurl -s https://install.zerotier.com | sudo bash。これを実行して実行しようとした後、apt-update次の問題が発生しました。

Err:4 http://download.zerotier.com/debian/buster buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1657198823E52A61
Reading package lists... Done
W: GPG error: http://download.zerotier.com/debian/buster buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1657198823E52A61
E: The repository 'http://download.zerotier.com/debian/buster buster InRelease' is not signed.
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.

Dockerの場合、そのウェブサイトの指示に直接従いました。ここ。を実行しようとすると、apt-get update次のエラーが発生します。

E: The repository 'https://download.docker.com/linux/debian \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.

apt-secureマニュアルページを読んで、オンラインで見つけることができるほとんどすべてのソリューションを試しましたが、何も役に立ちませんでした。誰か私を助けてください!

ベストアンサー1

Debian の GPG(GPG)インストールしたら、ZeroTier Oneをインストールするためのより安全なオプションを使用できます。

curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \
if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi

スクリプトを実行したら、aptを使用してZerotier-1の将来の更新を管理します。


/etc/apt/sources.listあなたが言ったその行はhttps://download.docker.com/linux/debian \Release正しくありません。

  • /etc/apt/sources.list編集用に開くsudo nano /etc/apt/sources.list

  • source.listの無効な行の前に文字を追加してコメントします#

  • 変更をsource.listに保存し、ソフトウェアソースアップデートを使用してくださいsudo apt update

Nanoテキストエディタキーボードショートカット
キーボードの組み合わせCtrl+を使用しOてキーを押してEnterファイルを現在の場所に保存します。 nanoを終了するには、
キーボードの組み合わせCtrl+を使用してくださいX

新しいホストに初めてDockerエンジンをインストールする前に、Dockerリポジトリを設定する必要があります。その後、リポジトリからDockerをインストールして更新できます。

  1. HTTPSを介してリポジトリを使用できるaptようにパッケージインデックスを更新し、パッケージをインストールします。apt

    sudo apt update
    sudo apt install \
        apt-transport-https \
        ca-certificates \
        curl \
        gnupg-agent \
        software-properties-common
    
  2. Dockerの公式GPGキーを追加します。

    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
    

    9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88さて、指紋の最後の8文字を検索して、指紋を含むキーがあることを確認してください。

    sudo apt-key fingerprint 0EBFCD88
    
    pub   4096R/0EBFCD88 2017-02-22
          Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
    uid                  Docker Release (CE deb) <[email protected]>
    sub   4096R/F273FCD8 2017-02-22
    
  3. 次のコマンドで設定します。安定リポジトリ。

    sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/debian \
       $(lsb_release -cs) \
       stable"
    sudo apt update
    

源泉:DebianドキュメントにDockerエンジンをインストールする

おすすめ記事