Debian
在 Debian Jessie 上從 backports 安裝 Certbot
在嘗試在 Debian Jessie 上安裝 Certbot 時,我需要根據certbot 安裝說明進行反向移植。它失敗了。然後我嘗試將反向引用添加到 Debian sources.list文件中。它也失敗了。那麼如何在 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:~#
要將 backports 添加到您的 sources.list 中,您必須編輯您的
/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"
deb http://ftp.debian.org/debian jessie-backports main
而不是
http://ftp.debian.org/debian/ **dists/jessie-backports/** jessie-backports main
下次使用複制+粘貼!