首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从Debian Jessie的backports安装Certbot

从Debian Jessie的backports安装Certbot
EN

Unix & Linux用户
提问于 2018-09-11 13:24:17
回答 1查看 1.8K关注 0票数 -1

在Debian上安装Certbot时,根据certbot安装指令的说法,我需要支持端口。失败了。然后我试着做向Debian添加backbortssources.list文件。它也失败了。那么如何在Jessie身上安装Certbot呢?我还想知道如何添加backports。

这是我的尝试:

代码语言:javascript
复制
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:~# 
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2018-09-11 13:36:43

要向sources.list添加后端,必须编辑/etc/apt/sources.list文件,添加以下行:

代码语言:javascript
复制
deb http://ftp.debian.org/debian jessie-backports main

编辑source.list文件后,必须在安装package.So之前运行apt-get更新:

代码语言:javascript
复制
apt-get update

现在,您可以安装您的软件包:

代码语言:javascript
复制
apt-get -t jessie-backports install "package"
票数 3
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/468277

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档