Search code examples
nginxubuntu-18.04repo

Is the Nginx repo the same as the Ubuntu 18.04 repo?


I have installed Nginx using the following repo:

deb http://nginx.org/packages/mainline/ubuntu bionic nginx

I now need to install Phusion Passenger which is telling me that unless I have installed from the official Ubuntu repo I will need to recompile the Passenger module etc.

I have tried to find where IF ANY is the Ubuntu 'official' repo for Nginx, and not succeeded.

How can I find the 'official' Ubuntu 18.04 Nginx repo?


Solution

  • The bionic repo should be

    deb http://archive.ubuntu.com/ubuntu bionic
    

    After which you should put your categories (like main multiverse..)

    Web url here: http://archive.ubuntu.com/ubuntu/dists/bionic/

    You probably want nginx-full from universe

    https://packages.ubuntu.com/bionic/nginx-full

    deb http://archive.ubuntu.com/ubuntu bionic main universe
    deb-src http://archive.ubuntu.com/ubuntu bionic main universe
    

    This random forum post from ubuntuforums has a good post on what the full contents of your sources.lst should be and a sources generator: https://ubuntuforums.org/showthread.php?t=2398031#post13789955