AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1233793
Accepted
kram
kram
Asked: 2020-05-01 22:26:41 +0800 CST2020-05-01 22:26:41 +0800 CST 2020-05-01 22:26:41 +0800 CST

在 Amazon Ubuntu 18.04 中安装 Certbot 失败

  • 772

我有运行 Ubuntu 18.04 的 Amazon AWS,我需要安装 Lets encrypt,所以我尝试了以下命令,当我安装 python3-certbot-apache 时,它​​给出了未满足依赖项的错误。你能帮我么

我已经运行了以下命令:

  • sudo apt-get update sudo apt-get install software-properties-common
  • sudo add-apt-repository universe
  • sudo add-apt-repository ppa:certbot/certbot
  • sudo apt-get install python3-certbot-apache--该命令失败

我在这里给出了命令和输出

sudo apt-get update

Hit:1 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease

Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                        

Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease        

Reading package lists... Done

sudo apt-get install software-properties-common

Reading package lists... Done

Building dependency tree       

Reading state information... Done

software-properties-common is already the newest version (0.96.24.32.12).

0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
sudo add-apt-repository universe

'universe' 分发组件已为所有来源启用。

sudo add-apt-repository ppa:certbot/certbot


 This is the PPA for packages prepared by Debian Let's Encrypt Team and backported for Ubuntu.

Note: Packages are only provided for currently supported Ubuntu releases.

More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot

Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease

Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                        

Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease        

Reading package lists... Done

sudo apt-get install python3-certbot-apache

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

 python3-certbot-apache :

 - Depends: certbot (>= 0.26.0~) but it is not going to be installed
 - Depends: python3-acme (>= 0.25.0~) but it is not going to be installed
 - Depends: python3-augeas but it is not going to be installed
 - Depends: python3-certbot (>= 0.26.0~) but it is not going to be installed
 - Depends: python3-mock but it is not going to be installed

E: Unable to correct problems, you have held broken packages.
dependencies apache2 letsencrypt 18.04
  • 1 1 个回答
  • 993 Views

1 个回答

  • Voted
  1. Best Answer
    kram
    2020-05-02T22:31:58+08:002020-05-02T22:31:58+08:00

    根据给出的建议

    https://community.letsencrypt.org/t/installing-certbot-on-ubuntu-18-04-problems/68778/5
    

    我已将 /etc/apt/source.list 第一行更改如下:

    • 原文:deb http://archive.ubuntu.com/ubuntu仿生宇宙
    • 改行:deb archive.ubuntu.com/ubuntu 仿生主受限宇宙

    此更改后运行 apt-get update,然后能够安装包和 Certbot。

    • 0

相关问题

  • 访问启用的虚拟主机时出现 403 禁止错误

  • 如何设置一台机器来将我的网站托管到世界各地 - 使用我自己的网址?

  • 安装:webmin依赖问题排查

  • 如何将具有依赖项的包上传到我的 PPA?

  • 如何删除已卸载包的依赖项?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve