The following packages have unmet dependencies: nginx : Depends: libssl1.0.0 (>= 1.0.2~beta3)

C++
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
Source

Also in C++: