I'm trying to upgrade nginx from 1.14 to 1.18. Currently we use the passenger 6.0.5 with nginx 1.14.
What I'm doing is starting new Ubuntu 18.04 instances. For some reason, the lastest nginx version is 1.14, so I added a updated source list and installed nginx 1.18:
# added deb http://nginx.org/packages/ubuntu bionic nginx $ sudo apt update $ sudo apt install nginx $ ngnix -v nginx version: nginx/1.18.0
After that I followed the passenger docs: https://www.phusionpassenger.com/library/install/nginx/install/oss/bionic/
sudo apt-get install -y dirmngr gnupg sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7 sudo apt-get install -y apt-transport-https ca-certificates sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main > /etc/apt/sources.list.d/passenger.list' sudo apt-get update sudo apt install libnginx-mod-http-passenger
And got the message:
The following packages will be REMOVED: nginx The following NEW packages will be installed: libnginx-mod-http-passenger nginx-common
i.e., it removed the nginx. I believe that it happens because the libnginx-mod-http-passenger depends on nginx-common 1.14.
Any idea on how to solve this?