Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use the newest version of nginx, so I wanted to add the nginx/stable ppa

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update

However, the upgrade command says that there are no upgrades available and nginx is still the old version. Did I do something wrong?

I use Ubuntu server 10.04 Lucid

add-apt-repository output:

$ sudo apt-add-repository ppa:nginx/stable
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C
gpg: requesting key C300EE8C from hkp server keyserver.ubuntu.com
gpg: key C300EE8C: "Launchpad Stable" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

apt-cache policy ouput:

$ sudo apt-cache policy nginx
nginx:
  Installed: 0.7.65-1ubuntu2
  Candidate: 0.7.65-1ubuntu2
  Version table:
 *** 0.7.65-1ubuntu2 0
        500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status
share|improve this question
    
can you please add the output from the add-apt-repository command ? Also after running apt-get update can you please run sudo apt-cache policy nginx and post the result ? –  koushik Sep 23 '10 at 8:16
    
I think this is a problem with the ppa. For example the file Packages in the ppa.launchpad.net/nginx/stable/ubuntu/dists/lucid/main/… is empty. Same also for other architectures (as seen in ppa.launchpad.net/nginx/stable/ubuntu/dists/lucid/Release) –  koushik Sep 23 '10 at 8:58
    
Are you facing the problem with any other ppa ? –  koushik Sep 23 '10 at 8:59

3 Answers 3

up vote 3 down vote accepted

The packages in the ppa:nginx/stable appear to have been updated on September 29/30 2010.

Currently, version 0.8.52-0ppa1 is available for both lucid and maverick. As can be seen from the Build Status column here. Both of these packages have successfully built.

The reported issue with the Packages file is also no longer valid. If you run sudo apt-get update and then attempt to either upgrade or install the nginx package (with ppa:nginx/stable added by add-apt-repository), you should end up with version 0.8.52-0ppa1.

As was mentioned earlier, the issue was with the PPA, not add-apt-repository. This can be confirmed by verifying that the /etc/apt/sources.list.d/nginx-stable-lucid.list file exists.

share|improve this answer

The problem is with the nginx/stable ppa.

The ppa status page indicates it failed to build. That could explain why the ppa is not having binary packages, and therefore apt-get can't find suitable versions to install.

You could ask the ppa maintainers about the build failure.

share|improve this answer

Yup... I made a mistake. I broke it once more recently. It's fixed now and as far as I can tell there's only one issue during upgrades between specific versions in a narrow window. I'm looking into how to properly resolve this but I'm not perfectly sure how yet. Either way, it affects a very low number of people (my guess about 20ish).

It should be all nice and good for a long time now. Thanks for bearing with us through a huge number of changes. :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.