Debian JessieのバックポートからCertbotをインストールする

Debian JessieのバックポートからCertbotをインストールする

Debian JessieにCertbotをインストールしようとするときは、次の手順に従う必要があります。certbotのインストール手順。失敗しました。それから私は努力しますDebian にバックボートを追加ソース、リスト文書。また失敗しました。それでは、JessieにCertbotをインストールする方法は?バックポートを追加する方法も知りたいです。

私の試みは次のとおりです。

root@deployer:~# apt-get install certbot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package certbot
root@deployer:~# apt-get install certbot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package certbot
root@deployer:~# 
root@deployer:~# cat /etc/*-release|grep VER
VERSION_ID="8"
VERSION="8 (jessie)"
root@deployer:~# echo deb http://ftp.debian.org/debian/dists/jessie-backports/ jessie-backports main > /etc/apt/sources.list
root@deployer:~# cat /etc/apt/sources.list
deb http://ftp.debian.org/debian/dists/jessie-backports/ jessie-backports main
root@deployer:~# apt-get update
Ign http://ftp.debian.org jessie-backports InRelease
Ign http://ftp.debian.org jessie-backports Release.gpg
Ign http://ftp.debian.org jessie-backports Release
Err http://ftp.debian.org jessie-backports/main amd64 Packages
  404  Not Found [IP: 130.89.148.12 80]
Ign http://ftp.debian.org jessie-backports/main Translation-en_US
Ign http://ftp.debian.org jessie-backports/main Translation-en
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found [IP: 130.89.148.12 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@deployer:~# apt-get install certbot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package certbot
root@deployer:~# 

ベストアンサー1

ソースリストにバックポートを追加するには、ファイルを編集して/etc/apt/sources.list次の行を追加する必要があります。

deb http://ftp.debian.org/debian jessie-backports main

source.listファイルを編集した後、パッケージをインストールする前にapt-get updateを実行する必要があります。したがって、以下を実行してください。

apt-get update

これでパッケージをインストールできます。

apt-get -t jessie-backports install "package"

おすすめ記事