【问题标题】:Problem installing nginx on ubuntu 20.04 AWS EC2 node在 ubuntu 20.04 AWS EC2 节点上安装 nginx 时出现问题
【发布时间】:2021-04-07 18:27:14
【问题描述】:

我尝试通过以下方式在 Ubuntu 20.04 AWS EC2 服务器上安装 nginx:

sudo apt update
sudo apt upgrade
sudo apt install nginx

但是最后一个命令失败了:

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:
 nginx : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
E: Unable to correct problems, you have held broken packages.

关于如何解决这个问题的任何想法?提前致谢

【问题讨论】:

  • 能否提供 AMI id、AMI 名称和地区?我安装 nginx 没有错误。
  • ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20201026,欧洲西部(爱尔兰)

标签: amazon-web-services nginx amazon-ec2 ubuntu-20.04


【解决方案1】:

尝试以下方法:

echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | sudo tee -a /etc/apt/sources.list.d/bionic.list
sudo apt update
apt-cache policy libssl1.0-dev
sudo apt-get install libssl1.0-dev

【讨论】:

  • 是的!极好的!问题解决了。非常感谢!
猜你喜欢
  • 2020-08-31
  • 2021-01-03
  • 1970-01-01
  • 2021-02-09
  • 2022-07-12
  • 2020-08-08
  • 2021-02-24
  • 2021-08-06
  • 2014-04-17
相关资源
最近更新 更多