Article 6CXD7 Installing old version of Nginx on Debian 11

Installing old version of Nginx on Debian 11

by
Bolshedvorskii
from LinuxQuestions.org on (#6CXD7)
While installing Nginx 1.4.6 manually using dpkg, I encountered the following problem.

During installation, nginx requires to satisfy its dependencies in the form of nginx-conf, nginx-full, nginx-extras and so on. But nevertheless, the first step is to install nginx-common.

After installing nginx-common and nginx-conf, I encountered a conflict between nginx-conf and the next package in the installation queue.

Let me show you what I mean.

root@test-udprf:/home/a.bolshedvorskii# dpkg -i nginx_1.4.6-1ubuntu3_all.deb
Selecting previously unselected package nginx.
(Reading database ... 37454 files and directories currently installed.)
Preparing to unpack nginx_1.4.6-1ubuntu3_all.deb ...
Unpacking nginx (1.4.6-1ubuntu3) ...
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-core (>= 1.4.6-1ubuntu3) | nginx-full (>= 1.4.6-1ubuntu3) | nginx-light (>= 1.4.6-1ubuntu3) | nginx-extras (>= 1.4.6-1ubuntu3) | nginx-naxsi (>= 1.4.6-1ubuntu3); however:
Package nginx-core is not installed.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
Package nginx-naxsi is not installed.
nginx depends on nginx-core (<< 1.4.6-1ubuntu3.1~) | nginx-full (<< 1.4.6-1ubuntu3.1~) | nginx-light (<< 1.4.6-1ubuntu3.1~) | nginx-extras (<< 1.4.6-1ubuntu3.1~) | nginx-naxsi (<< 1.4.6-1ubuntu3.1~); however:
Package nginx-core is not installed.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
Package nginx-naxsi is not installed.

dpkg: error processing package nginx (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx
root@test-udprf:/home/a.bolshedvorskii# dpkg -i nginx-core_1.4.6-1ubuntu3_amd64.deb
Selecting previously unselected package nginx-core.
(Reading database ... 37459 files and directories currently installed.)
Preparing to unpack nginx-core_1.4.6-1ubuntu3_amd64.deb ...
Unpacking nginx-core (1.4.6-1ubuntu3) ...
dpkg: dependency problems prevent configuration of nginx-core:
nginx-core depends on nginx-common (= 1.4.6-1ubuntu3); however:
Package nginx-common is not installed.

dpkg: error processing package nginx-core (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx-core
root@test-udprf:/home/a.bolshedvorskii# dpkg -i nginx-common_1.4.6-1ubuntu3_all.deb
Selecting previously unselected package nginx-common.
(Reading database ... 37465 files and directories currently installed.)
Preparing to unpack nginx-common_1.4.6-1ubuntu3_all.deb ...
Unpacking nginx-common (1.4.6-1ubuntu3) ...
Setting up nginx-common (1.4.6-1ubuntu3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service /lib/systemd/system/nginx.service.
insserv: warning: script 'cgroups' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cgroups'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `cgroups'
Processing triggers for man-db (2.9.4-2) ...
root@test-udprf:/home/a.bolshedvorskii# dpkg -i nginx-core_1.4.6-1ubuntu3_amd64.deb
(Reading database ... 37499 files and directories currently installed.)
Preparing to unpack nginx-core_1.4.6-1ubuntu3_amd64.deb ...
Unpacking nginx-core (1.4.6-1ubuntu3) over (1.4.6-1ubuntu3) ...
Setting up nginx-core (1.4.6-1ubuntu3) ...
root@test-udprf:/home/a.bolshedvorskii# dpkg -i nginx-full_1.4.6-1ubuntu3_amd64.deb
dpkg: regarding nginx-full_1.4.6-1ubuntu3_amd64.deb containing nginx-full:
nginx-full conflicts with nginx-core
nginx-core (version 1.4.6-1ubuntu3) is present and installed.

dpkg: error processing archive nginx-full_1.4.6-1ubuntu3_amd64.deb (--install):
conflicting packages - not installing nginx-full
Errors were encountered while processing:
nginx-full_1.4.6-1ubuntu3_amd64.deb
root@test-udprf:/home/a.bolshedvorskii# dpkg --configure nginx-core
dpkg: error processing package nginx-core (--configure):
package nginx-core is already installed and configured
Errors were encountered while processing:
nginx-core
root@test-udprf:/home/a.bolshedvorskii# dpkg -i nginx_1.4.6-1ubuntu3_all.deb
(Reading database ... 37499 files and directories currently installed.)
Preparing to unpack nginx_1.4.6-1ubuntu3_all.deb ...
Unpacking nginx (1.4.6-1ubuntu3) over (1.4.6-1ubuntu3) ...
Setting up nginx (1.4.6-1ubuntu3) ...

I also noticed that any package that I install after nginx-common starts to conflict. Although half of the dependencies are not satisfied, for some reason unknown to me, this does not prevent the nginx service from writing in the active status and even rendering the default site in the browser.
Any files from and dependes from old installation deleted via -purge.

What could be the reason for the sudden abandonment of nginx dependencies?
It somehow confuses me to use a web server when it uses less than half of the packages from the installation.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments