Hi, I've compiled nginx from the apt-source on a ubuntu server. I've done this to be able to compile page_speed into the nginx server (Tutorial will be posted soon) I've gotten these files after the compilation: Code: nginx-1.4.6 nginx_1.4.6-1ubuntu3.1_all.deb nginx_1.4.6-1ubuntu3.1_amd64.changes nginx_1.4.6-1ubuntu3.1.debian.tar.gz nginx_1.4.6-1ubuntu3.1.dsc nginx_1.4.6.orig.tar.gz nginx-common_1.4.6-1ubuntu3.1_all.deb nginx-core_1.4.6-1ubuntu3.1_amd64.deb nginx-core-dbg_1.4.6-1ubuntu3.1_amd64.deb nginx-doc_1.4.6-1ubuntu3.1_all.deb nginx-extras_1.4.6-1ubuntu3.1_amd64.deb nginx-extras-dbg_1.4.6-1ubuntu3.1_amd64.deb nginx-full_1.4.6-1ubuntu3.1_amd64.deb nginx-full-dbg_1.4.6-1ubuntu3.1_amd64.deb nginx-light_1.4.6-1ubuntu3.1_amd64.deb nginx-light-dbg_1.4.6-1ubuntu3.1_amd64.deb nginx-naxsi_1.4.6-1ubuntu3.1_amd64.deb nginx-naxsi-dbg_1.4.6-1ubuntu3.1_amd64.deb nginx-naxsi-ui_1.4.6-1ubuntu3.1_all.deb Installed nginx-common_1.4.6-1ubuntu3.1_all.deb & nginx-full_1.4.6-1ubuntu3.1_amd64.deb But now when I try to apt-get upgrade -s I got: Code: apt-get upgrade -s Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: linux-generic linux-headers-generic linux-image-generic The following packages will be upgraded: nginx-full 1 to upgrade, 0 to newly install, 0 to remove and 3 not to upgrade. Inst nginx-full [1.4.6-1ubuntu3.1] (1.4.6-1ubuntu3.1 Ubuntu:14.04/trusty-updates [amd64]) Conf nginx-full (1.4.6-1ubuntu3.1 Ubuntu:14.04/trusty-updates [amd64] My nginx file in /etc/apt/preferences.d/nginx contains: Code: Package: nginx Pin: version 1.4.6-1ubuntu3.1 Pin-Priority: 1001 But still the pinning isn't working. What did I do wrong?
If I would be at your case then I will lock the NGINX in the apt-get as mentioned in this thread. Then it will not ask for any error regarding NGINX wile update/upgrade. Note: I personally don't prefer compilation of any any source code, if it is available in the apt-get command.