The error message you got says that it's impossible to install passenger
because it depends on nginx-common < 1.14.1
.
To fix this, the first thing you have to do is check if your system still knows the previous version of Nginx:
apt show nginx -a | egrep "^(Package|Version|APT-Sources|$)"
The output will be something similar to this:
Package: nginx
Version: 1.14.0-0ubuntu1.9
APT-Sources: http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
Package: nginx
Version: 1.14.0-0ubuntu1
APT-Sources: http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
And you will probably have version 1.18-<somethin>
. To avoid version 1.18
to be installed, you have two options:
Remove the repository you've added to be able to update nginx
. Either using sudo apt-add-repository --remove <repository>
or going through sources at /etc/apt/sources.list
and /etc/apt/sources.list.d
and commenting out or removing the said repository.
Blocking nginx
to upgrade to versions different from 1.14
:
sudo apt-get install nginx=1.14.0-0ubuntu1 nginx-common=1.14.0-0ubuntu1
sudo apt-mark hold nginx nginx-common
After that, you shall be able to reinstall libnginx-mod-http-passenger
.