Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem installing nginx on ubuntu 20.04 AWS EC2 node

I try to install nginx on an Ubuntu 20.04 AWS EC2 server by doing:

sudo apt update
sudo apt upgrade
sudo apt install nginx

However the last command fails:

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.

Any ideas on how to resolve this? Thanks in advance

like image 641
timboektoe Avatar asked Dec 30 '22 17:12

timboektoe


1 Answers

Try the following:

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
like image 131
Asri Badlah Avatar answered Jan 09 '23 01:01

Asri Badlah