Hacker News new | ask | show | jobs
by Smrchy 4787 days ago
The official nginx ubuntu package has already been updated to 1.4.1
2 comments

Why is the server package so behind?

I am on Ubuntu 12.04.2 LTS, I had use "add-apt-repository ppa:nginx/development" to get nginx/1.3.12, how do I get in to the latest release?

Wiki says:

Stable release 1.4.0 / 24 April 2013

Preview release 1.3.16 / 16 April 2013

How do I get into the latest stable bandwagon?

Use their official repository[1] for the latest stable releases

    deb http://nginx.org/packages/ubuntu/ precise nginx
    deb-src http://nginx.org/packages/ubuntu/ precise nginx
Those are updated very quickly. I haven't timed it but I'm yet to see an advisory before an update is available.

[1] http://wiki.nginx.org/Install#Official_Debian.2FUbuntu_packa...

Just for reference for others who might be interested:

I had to install this public key from ubuntu server:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62

Had to remove nginx-full and nginx-common.

Then install nginx: apt-get install nginx

Even though I told the installer to keep the default config (which it did) but over-written /etc/nginx/conf.d/default.conf The only change I had to make was port number, since I am using varnish changed my port to 8080 for nginx. Restarted nginx.

  nginx version: nginx/1.4.1
Thanks for the help!
Another note: Packages provided by Ubuntu use /etc/nginx/sites-available/ and /etc/nginx/sites-available/ for storing site configs but the package directly from Nginx stores configs in /etc/nginx/conf.d/.
Thanks for pointing this out. I spent a little while trying to figure out why my configuration wasn't being recognized.
I had the same trouble, pretty seamless upgrade otherwise.
Still no raring package.

It seems I'm stuck with 1.2.6 for the time being.

Not sure what the schedule looks like in general, but last night I waited ~10 minutes after the advisory watching the packages show up one by one. Still faster than any other source, of course.
I just build from source. Here's a sane guide from linode: http://library.linode.com/web-servers/nginx/installation/ubu...
BTW compiling a custom nginx take all of 1 minute, it's a very very fast build, not like apache or php.

I just wish it had a make test

Will the Ubuntu 12.04 LTS package get the security upgrade soon or do we need to add the nginx repo?
The problem affects nginx 1.3.9 - 1.4.0.

Ubuntu 12.04.02 LTS uses Version: 1.1.19-1.