Welcome! Log In Create A New Profile

Advanced

Stop apt-get from trying to downgrade nginx on Debian Wheezy

Posted by Harest 
Stop apt-get from trying to downgrade nginx on Debian Wheezy
February 21, 2016 09:38PM
Hi,

For some reasons, apt-get is trying to install an older version of the nginx version currently installed. I never had a case like this and i'd like to know how to not have this kind of case appearing.
I've the latest stable version for my system available afaik aka v1.8.1, and the packages apt-get wants to upgrade are nginx-common (1.2.1-2.2+wheezy4) and nginx-full (1.2.1-2.2+wheezy4_amd64). I think it's related to a recent update on security.debian.org depository : https://www.debian.org/security/2016/dsa-3473.

If needed, my sources.list is :

deb http://debian.mirrors.ovh.net/debian/ wheezy main
deb-src http://debian.mirrors.ovh.net/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx

#deb http://packages.dotdeb.org wheezy all
#deb-src http://packages.dotdeb.org wheezy all

deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all

Thanks in advance.



Edited 1 time(s). Last edit at 02/21/2016 09:39PM by Harest.
Re: Stop apt-get from trying to downgrade nginx on Debian Wheezy
February 24, 2016 09:31PM
I digged a little more about the issue just now, and i now know exactly what's wrong.
I've the package nginx v1.8.1-1~wheezy, but i also have installed nginx-common and nginx-full both v1.2.1-2.2+wheezy3.

Can i remove both of them safely (common / full), with the single package nginx installed being enough ?



Edited 3 time(s). Last edit at 02/24/2016 09:33PM by Harest.
Re: Stop apt-get from trying to downgrade nginx on Debian Wheezy
February 25, 2016 10:08AM
You should be able to do that, yes. The nginx repo installs what it needs on its own and I'd wager those packages aren't necessary.

See what happens when you run "apt-get remove nginx-common". Most likely only those two packages will be removed, leaving nginx-1.8.1 installed.

--
Jim Ohlstein
Re: Stop apt-get from trying to downgrade nginx on Debian Wheezy
February 25, 2016 07:29PM
Thanks for your answer. I just did that. Afterwards I did a configtest and it was all good, the reload failed but it was probably just that nginx was stopped while apt removed nginx-common and nginx-full. A restart and everything was back in order.



Edited 1 time(s). Last edit at 02/25/2016 07:29PM by Harest.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 301
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready