oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
830 stars 26 forks source link

nginx package is a mess and breaks on upgrade #2099

Closed fa1rid closed 7 months ago

fa1rid commented 8 months ago

Upgrading nginx since the time repo was updated with a new key breaks nginx.

Let's see what is the current installation:

root@debian ~ # apt list --installed nginx*
Listing... Done
nginx-common/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc all [installed,automatic]
nginx-core/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
nginx/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc all [installed]

root@debian ~ # apt-cache policy nginx nginx-common nginx-core
nginx:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Version table:
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
nginx-common:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Version table:
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
nginx-core:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Version table:
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages

root@debian ~ # apt list --installed libnginx*
Listing... Done
libnginx-mod-brotli/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
libnginx-mod-http-geoip/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
libnginx-mod-http-image-filter/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
libnginx-mod-http-xslt-filter/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
libnginx-mod-mail/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
libnginx-mod-ssl-ct/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
libnginx-mod-stream-geoip/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]
libnginx-mod-stream/bookworm/snapshots/1686852027,now 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc amd64 [installed,automatic]

As we can see above, only "nginx" was installed, the rest were automatically installed

Let's update apt:

root@debian ~ # apt update
...
Get:4 https://packages.sury.org/nginx bookworm InRelease [7,458 B]
Get:5 https://packages.sury.org/php bookworm InRelease [7,542 B]
Err:4 https://packages.sury.org/nginx bookworm InRelease
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
Hit:7 http://deb.debian.org/debian bookworm InRelease
Err:5 https://packages.sury.org/php bookworm InRelease
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
...
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/nginx bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Failed to fetch https://packages.sury.org/nginx/dists/bookworm/InRelease  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.

Above we get error because repo key is invalid (changed/expired).

So let's update the repo key:

root@debian ~ # curl -sSL https://packages.sury.org/nginx/README.txt | bash -x
...
...
Fetched 260 kB in 2s (134 kB/s)
Reading package lists... Done
N: Repository 'https://packages.sury.org/nginx bookworm InRelease' changed its 'Suite' value from 'bookworm/snapshots/1686852027' to 'bookworm'

Now let's see the new candidates after updating the repo:

root@debian ~ # apt-cache policy nginx nginx-common nginx-core
nginx:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
nginx-common:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
nginx-core:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages

root@debian ~ # apt-cache policy libnginx-mod-brotli libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct libnginx-mod-stream-geoip libnginx-mod-stream
libnginx-mod-brotli:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1:1.0.0~rc+1.24.0-5+0~20240316.3+debian12~1.gbp822c08
  Version table:
     1:1.0.0~rc+1.24.0-5+0~20240316.3+debian12~1.gbp822c08 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
libnginx-mod-http-geoip:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
libnginx-mod-http-image-filter:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
libnginx-mod-http-xslt-filter:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
libnginx-mod-mail:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
libnginx-mod-ssl-ct:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1:1.3.2+1.24.0-2+0~20240316.2+debian12~1.gbpe4bbad
  Version table:
     1:1.3.2+1.24.0-2+0~20240316.2+debian12~1.gbpe4bbad 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
libnginx-mod-stream-geoip:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
libnginx-mod-stream:
  Installed: 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc
  Candidate: 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b
  Version table:
     1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1.24.0-1+0~20230615.28+debian12~1.gbpd7c5fc 100
        100 /var/lib/dpkg/status
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages

Let's run upgrade:

root@debian ~ # apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  geoip-database libgeoip1 libnginx-mod-brotli libnginx-mod-http-brotli-filter libnginx-mod-http-brotli-static
  libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct
  libnginx-mod-stream libnginx-mod-stream-geoip libpcre3 nginx-core
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  libnginx-mod-http-brotli-filter libnginx-mod-http-brotli-static
The following packages will be upgraded:
  debsuryorg-archive-keyring libbrotli1 libhashkit2 libnginx-mod-brotli
  libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct
  libnginx-mod-stream libnginx-mod-stream-geoip nginx nginx-common nginx-core
  Do you want to continue? [Y/n]
...
...
...
 Setting up nginx (1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b) ...
Upgrading binary: nginx failed!
invoke-rc.d: initscript nginx, action "upgrade" failed.
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
invoke-rc.d: initscript nginx, action "restart" failed.
× nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-03-18 15:01:43 +04; 9ms ago
   Duration: 25min 27.865s
       Docs: man:nginx(8)
    Process: 37612 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 4ms

Mar 18 15:01:43 debian systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Mar 18 15:01:43 debian nginx[37612]: 2024/03/18 15:01:43 [emerg] 37612#37612: open() "/etc/nginx/modules-enabled/50-mod-brotli.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:5
Mar 18 15:01:43 debian nginx[37612]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 18 15:01:43 debian systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Mar 18 15:01:43 debian systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 18 15:01:43 debian systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
dpkg: error processing package nginx (--configure):
 installed nginx package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libnginx-mod-http-image-filter:
 libnginx-mod-http-image-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-image-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-stream:
 libnginx-mod-stream depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-stream (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-ssl-ct:
 libnginx-mod-ssl-ct depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-ssl-ct (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx-common:
 nginx-common depends on nginx (>= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package nginx is not configured yet.
 nginx-common depends on nginx (<< 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b.1~); however:
  Package nginx is not configured yet.

dpkg: error processing package nginx-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-stream-geoip:
 libnginx-mod-stream-geoip depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.
 libnginx-mod-stream-geoip depends on libnginx-mod-stream (= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package libnginx-mod-stream is not configured yet.

dpkg: error processing package libnginx-mod-stream-geoip (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-xslt-filter:
 libnginx-mod-http-xslt-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-xslt-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-geoip:
 libnginx-mod-http-geoip depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-geoip (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-brotli-filter:
 libnginx-mod-http-brotli-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-brotli-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-brotli:
 libnginx-mod-brotli depends on libnginx-mod-http-brotli-filter; however:
  Package libnginx-mod-http-brotli-filter is not configured yet.

dpkg: error processing package libnginx-mod-brotli (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx-core:
 nginx-core depends on libnginx-mod-http-geoip (>= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package libnginx-mod-http-geoip is not configured yet.
 nginx-core depends on libnginx-mod-http-geoip (<< 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b.1~); however:
  Package libnginx-mod-http-geoip is not configured yet.
 nginx-core depends on libnginx-mod-http-image-filter (>= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package libnginx-mod-http-image-filter is not configured yet.
 nginx-core depends on libnginx-mod-http-image-filter (<< 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b.1~); however:
  Package libnginx-mod-http-image-filter is not configured yet.
 nginx-core depends on libnginx-mod-http-xslt-filter (>= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package libnginx-mod-http-xslt-filter is not configured yet.
 nginx-core depends on libnginx-mod-http-xslt-filter (<< 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b.1~); however:
  Package libnginx-mod-http-xslt-filter is not configured yet.
 nginx-core depends on libnginx-mod-stream (>= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package libnginx-mod-stream is not configured yet.
 nginx-core depends on libnginx-mod-stream (<< 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b.1~); however:
  Package libnginx-mod-stream is not configured yet.
 nginx-core depends on libnginx-mod-stream-geoip (>= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package libnginx-mod-stream-geoip is not configured yet.
 nginx-core depends on libnginx-mod-stream-geoip (<< 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b.1~); however:
  Package libnginx-mod-stream-geoip is not configured yet.
 nginx-core depends on nginx (>= 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b); however:
  Package nginx is not configured yet.
 nginx-core depends on nginx (<< 1.24.0-2+0~20240226.30+debian12~1.gbp2cd02b.1~); however:
  Package nginx is not configured yet.

dpkg: error processing package nginx-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-mail:
 libnginx-mod-mail depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-mail (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-brotli-static:
 libnginx-mod-http-brotli-static depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-brotli-static (--configure):
 dependency problems - leaving unconfigured

Errors were encountered while processing:
 nginx
 libnginx-mod-http-image-filter
 libnginx-mod-stream
 libnginx-mod-ssl-ct
 nginx-common
 libnginx-mod-stream-geoip
 libnginx-mod-http-xslt-filter
 libnginx-mod-http-geoip
 libnginx-mod-http-brotli-filter
 libnginx-mod-brotli
 nginx-core
 libnginx-mod-mail
 libnginx-mod-http-brotli-static
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@debian ~ # nginx -t
2024/03/18 15:09:49 [emerg] 37759#37759: open() "/etc/nginx/modules-enabled/50-mod-brotli.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed

To me it seems the issue is related to 50-mod-brotli.conf

Now purging everything and installing new "nginx" fixes the issue, but the additional modules are no longer installed.

Let me know what do you think.

pkramme commented 8 months ago

Affects me too, but on Ubuntu 20.04.

EDIT:

but the additional modules are no longer installed

This is a half sentence, but this is actually really important, because in config managed systems missing modules on installation also means that nginx doesn't start.

tvvpm commented 8 months ago

Related https://github.com/oerdnj/deb.sury.org/issues/2089

fa1rid commented 8 months ago

In order to fix the issue follow these steps:

This is for Debian, Ubuntu should be similar.

1- purge everything (backup your configs first):

apt purge nginx* libnginx*
rm -rf /etc/nginx

2- Disable Sury's repo

mv "/etc/apt/sources.list.d/nginx.list" "/etc/apt/sources.list.d/.nginx.list"

3- Install nginx from offical debian repo and remove it

apt update
apt install nginx
apt purge nginx* libnginx*

4- re-enable Sury's repo and install nginx

mv "/etc/apt/sources.list.d/.nginx.list" "/etc/apt/sources.list.d/nginx.list"
apt update

apt install nginx OR apt install nginx-full

5- install additional modules as needed

apt install libnginx-mod-brotli
KirbyDE commented 8 months ago

We are experiencing the same isssue (Package nginx-abi-1.24.0-1 is not installed) on Ubuntu 22.04 but my workaround to recover was a bit different.

fa1rid commented 8 months ago

I wanted to mention that: just removing nginx and re-installing it didn't solve the problem as @tvvpm mentioned here:

This appears to only impacts upgrading from previous installation to newest, rather than fresh installation.

In my case (debian 12.5) removing all NGINX packages and install them again does not work.

Originally posted by @tvvpm in https://github.com/oerdnj/deb.sury.org/issues/2089#issuecomment-1978570024

For me, after doing reboot, when installing nginx from sury's repo, the error changed from open() "/etc/nginx/modules-enabled/50-mod-brotli.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:5 to open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)

As mentioned earlier, the solution that worked for me was to disable the repo and install nginx from official Debian, remove it, and then reinstall from sury (which is strange to me and I don't understand why)

mikeparas commented 8 months ago

It was noted in this comment that you can disable whatever modules are affected, do the upgrade, then re-enable. Disabling involved unlinking inside modules-enabled and commenting out any affected statements in our config file. This worked, but it would be great if there was a more automated way to do this.

oerdnj commented 8 months ago

For people, that still have /etc/nginx/modules-enabled/50-mod-brotli.conf <- is this a symlink?

In theory, 1.0.0~rc+1.25.4-6 version of libnginx-mod-brotli should delete the old configuration, but I can't really test it locally as I don't have the old packages installed anywhere.

mikeparas commented 8 months ago

For people, that still have /etc/nginx/modules-enabled/50-mod-brotli.conf <- is this a symlink?

Yes, it was for me.

50-mod-brotli.conf -> /usr/share/nginx/modules-available/mod-brotli.conf

tvvpm commented 8 months ago

For me it was as well Purguing all nginx packages and install from scratch and the problem has been solved.

KirbyDE commented 8 months ago

For people, that still have /etc/nginx/modules-enabled/50-mod-brotli.conf <- is this a symlink?

Yes, it was as symlink to /usr/share/nginx/modules-available/mod-brotli.conf

Removing that symlink and related configuration (specifically brotli_static on; in a .conf file in /etc/nginx/conf.d) before the upgrade seems to avoid the issues.

phildawson-gravity commented 8 months ago

Just adding a me too. Posted on this ticket https://github.com/oerdnj/deb.sury.org/issues/2086#issuecomment-2003653320 too that removing the left over reference in modules-enabled and trying again did the trick.

Can also confirm it affected Focal Fossa as well as Jammy.

fa1rid commented 8 months ago

It's a symlink, however after removing and purging nginx the file is deleted, but the error about it still shows while re-installing nginx, even though the file in reality doesn't exist, which surprised me. I doubled checked that multiple times using VM snapshots. Any idea why?

phildawson-gravity commented 8 months ago

It's a symlink, however after removing and purging nginx the file is deleted, but the error about it still shows while re-installing nginx, even though the file in reality doesn't exist, which surprised me. I doubled checked that multiple times using VM snapshots. Any idea why?

Are you still getting the similar error like this, and the file "50-mod-brotli.conf" is def gone from the /etc/nginx/modules-enabled/ directory?

nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-03-18 11:13:43 UTC; 10ms ago
       Docs: man:nginx(8)
    Process: 730571 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Mar 18 11:13:43 curved-wave systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 18 11:13:43 curved-wave nginx[730571]: 2024/03/18 11:13:43 [emerg] 730571#730571: open() "/etc/nginx/modules-enabled/50-mod-brotli.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:4
Mar 18 11:13:43 curved-wave nginx[730571]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 18 11:13:43 curved-wave systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Mar 18 11:13:43 curved-wave systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 18 11:13:43 curved-wave systemd[1]: Failed to start A high performance web server and a reverse proxy server.
oerdnj commented 8 months ago

It's a symlink, however after removing and purging nginx the file is deleted, but the error about it still shows while re-installing nginx, even though the file in reality doesn't exist, which surprised me. I doubled checked that multiple times using VM snapshots. Any idea why?

What error exactly?

fmonts commented 8 months ago

It seems that doing rm /etc/nginx/modules-enabled/50-mod-brotli.conf before apt upgrade caused the update to complete without issues. I'll try again, I have ~20 more servers to upgrade

fmonts commented 8 months ago

... Not really "without issues" since all the requests started to return 404 😅 image

Why? because the update completely overridden without asking my /var/www folder with the default one: image

Luckily it was just a symlink to a directory in /mnt/...

aodtcr commented 8 months ago

Good to see this github issue already, indeed the upgrade is a mess. As said before, removing the symlink sudo rm /etc/nginx/modules-enabled/50-mod-brotli.conf allowed me to restart nginx and restore functionality.

mikeparas commented 8 months ago

We run a nightly upgrade, and now all of the nginx modules are gone.

lrwxrwxrwx 1 root root 62 Mar 18 05:31 50-mod-http-brotli-filter.conf.removed -> /usr/share/nginx/modules-available/mod-http-brotli-filter.conf
lrwxrwxrwx 1 root root 62 Mar 18 05:31 50-mod-http-brotli-static.conf.removed -> /usr/share/nginx/modules-available/mod-http-brotli-static.conf
lrwxrwxrwx 1 root root 54 Jan 29  2023 50-mod-http-geoip.conf.removed -> /usr/share/nginx/modules-available/mod-http-geoip.conf
lrwxrwxrwx 1 root root 61 Jan 29  2023 50-mod-http-image-filter.conf.removed -> /usr/share/nginx/modules-available/mod-http-image-filter.conf
lrwxrwxrwx 1 root root 60 Jan 29  2023 50-mod-http-xslt-filter.conf.removed -> /usr/share/nginx/modules-available/mod-http-xslt-filter.conf
lrwxrwxrwx 1 root root 48 Jan 29  2023 50-mod-mail.conf.removed -> /usr/share/nginx/modules-available/mod-mail.conf
lrwxrwxrwx 1 root root 50 Jan 29  2023 50-mod-ssl-ct.conf.removed -> /usr/share/nginx/modules-available/mod-ssl-ct.conf
lrwxrwxrwx 1 root root 50 Jan 29  2023 50-mod-stream.conf.removed -> /usr/share/nginx/modules-available/mod-stream.conf
lrwxrwxrwx 1 root root 56 Jan 29  2023 70-mod-stream-geoip.conf.removed -> /usr/share/nginx/modules-available/mod-stream-geoip.conf

Possibly autoremove removed them?


The following packages were automatically installed and are no longer required:
  geoip-database libgeoip1 libnginx-mod-brotli libnginx-mod-http-brotli-filter
  libnginx-mod-http-brotli-static libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-ssl-ct libnginx-mod-stream
  libnginx-mod-stream-geoip nginx-core
Use 'sudo apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  imagemagick libopenexr25 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
  imagemagick-6.q16 libmagickcore-6.q16-6 imagemagick-6-common
Learn more about Ubuntu Pro on AWS at https://ubuntu.com/aws/pro
The following NEW packages will be installed:
  linux-aws-6.5-headers-6.5.0-1015 linux-headers-6.5.0-1015-aws
  linux-image-6.5.0-1015-aws linux-modules-6.5.0-1015-aws
The following packages have been kept back:
  libnginx-mod-brotli libnginx-mod-http-geoip libnginx-mod-http-image-filter
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
  libnginx-mod-stream-geoip nginx nginx-common nginx-core
The following packages will be upgraded:
  bash libnginx-mod-http-brotli-filter libnginx-mod-http-brotli-static
  linux-aws linux-headers-aws linux-image-aws linux-libc-dev vim vim-common
  vim-runtime vim-tiny xxd```
phildawson-gravity commented 8 months ago

Possibly autoremove removed them?

Same happened to me, yep autoremove.

had to quickly get them back

apt-get install libnginx-mod-brotli libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct libnginx-mod-stream libnginx-mod-stream-geoip

The libnginx-mod-brotli then correctly added the new libnginx-mod-http-brotli-filter libnginx-mod-http-brotli-static modules

oerdnj commented 8 months ago

I just wish the new Debian nginx maintainer hadn't split the libnginx-mod-brotli into two packages: libnginx-mod-http-brotli-filter and libnginx-mod-http-brotli-static (or done it more carefully).

This created an absolute mess which is quite hard to get from as the dependencies are entangled and if you just remove the package and already have configured brotli, the installation will be broken until two two new packages will be installed.

But they can't be installed ... because the nginx upgrade will fail.

I've tried something in 1:1.0.0~rc+1.25.4-7, let's see if it works -> the libnginx-mod-brotli will first disable the old configuration, and then enable the configuration for the two modules from libnginx-mod-http-brotli-filter and libnginx-mod-http-brotli-static in the pre-inst script.

I don't have the old packages installed anywhere, so it is quite impossible for me to test this locally.

I'll try again, I have ~20 more servers to upgrade

@fmonts It would be useful to try the 1:1.0.0~rc+1.25.4-7 way on one of those servers and report back

fmonts commented 8 months ago

@fmonts It would be useful to try the 1:1.0.0~rc+1.25.4-7 way on one of those servers and report back

How to install it? I tried

root@wp:~# apt-get install nginx-full=1:1.0.0~rc+1.25.4-7
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1:1.0.0~rc+1.25.4-7' for 'nginx-full' was not found

This is what I have installed:

root@wp:~# apt list --installed | grep nginx
libnginx-mod-brotli/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1]
libnginx-mod-http-auth-pam/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:1.5.5+1.25.4-2+ubuntu20.04.1+deb.sury.org+4]
libnginx-mod-http-dav-ext/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:3.0.0+1.25.4-5+ubuntu20.04.1+deb.sury.org+4]
libnginx-mod-http-echo/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:0.63+1.25.4-6+ubuntu20.04.1+deb.sury.org+4]
libnginx-mod-http-geoip2/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:3.4+1.25.4-5+ubuntu20.04.1+deb.sury.org+4]
libnginx-mod-http-geoip/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
libnginx-mod-http-image-filter/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
libnginx-mod-http-subs-filter/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:0.6.4+1.25.4-6+ubuntu20.04.1+deb.sury.org+4]
libnginx-mod-http-upstream-fair/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:0.0~git20120408.a18b409+1.25.4-5+ubuntu20.04.1+deb.sury.org+4]
libnginx-mod-http-xslt-filter/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
libnginx-mod-mail/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
libnginx-mod-ssl-ct/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:1.3.2+1.25.4-2+ubuntu20.04.1+deb.sury.org+1]
libnginx-mod-stream-geoip2/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1:3.4+1.25.4-5+ubuntu20.04.1+deb.sury.org+4]
libnginx-mod-stream-geoip/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
libnginx-mod-stream/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
nginx-common/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 all [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
nginx-core/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
nginx-full/now 1.25.3-1+ubuntu20.04.1+deb.sury.org+2 all [installed,upgradable to: 1.25.4-3+ubuntu20.04.1+deb.sury.org+2]
fa1rid commented 8 months ago

It's a symlink, however after removing and purging nginx the file is deleted, but the error about it still shows while re-installing nginx, even though the file in reality doesn't exist, which surprised me. I doubled checked that multiple times using VM snapshots. Any idea why?

What error exactly?

This:

Mar 18 15:01:43 debian nginx[37612]: 2024/03/18 15:01:43 [emerg] 37612#37612: open() "/etc/nginx/modules-enabled/50-mod-brotli.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:5

fmonts commented 8 months ago

This is what I have installed:

I just noticed it was just libnginx-mod-brotli upgradable to: 1:1.0.0~rc+1.25.4-7

I'll run the upgrade. I have this warning but I proceed anyway:

W: Sources disagree on hashes for supposely identical version '2024.02.05+ubuntu20.04.1+deb.sury.org+1' of 'debsuryorg-archive-keyring:amd64'.

apt upgrade still didn't work, these are the last lines:

Unpacking nginx (1.25.4-3+ubuntu20.04.1+deb.sury.org+2) ...
Selecting previously unselected package libnginx-mod-http-brotli-filter.
Preparing to unpack .../29-libnginx-mod-http-brotli-filter_1%3a1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-brotli-filter (1:1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-NeSsgV/29-libnginx-mod-http-brotli-filter_1%3a1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/nginx/modules/ngx_http_brotli_filter_module.so', which is also in package libnginx-mod-brotli 1.25.3-1+ubuntu20.04.1+deb.sury.org+1
Selecting previously unselected package libnginx-mod-http-brotli-static.
Preparing to unpack .../30-libnginx-mod-http-brotli-static_1%3a1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-brotli-static (1:1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-NeSsgV/30-libnginx-mod-http-brotli-static_1%3a1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/nginx/modules/ngx_http_brotli_static_module.so', which is also in package libnginx-mod-brotli 1.25.3-1+ubuntu20.04.1+deb.sury.org+1
Preparing to unpack .../31-nginx-common_1.25.4-3+ubuntu20.04.1+deb.sury.org+2_all.deb ...
Unpacking nginx-common (1.25.4-3+ubuntu20.04.1+deb.sury.org+2) over (1.25.3-1+ubuntu20.04.1+deb.sury.org+1) ...
dpkg: warning: unable to delete old directory '/var/www/html': Directory not empty
dpkg: warning: unable to delete old directory '/var/www': Directory not empty
Errors were encountered while processing:
 /tmp/apt-dpkg-install-NeSsgV/29-libnginx-mod-http-brotli-filter_1%3a1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1_amd64.deb
 /tmp/apt-dpkg-install-NeSsgV/30-libnginx-mod-http-brotli-static_1%3a1.0.0~rc+1.25.4-7+ubuntu20.04.1+deb.sury.org+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

If I run again apt install, it says:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnginx-mod-brotli : Depends: nginx-common (= 1.25.3-1+ubuntu20.04.1+deb.sury.org+1) but 1.25.4-3+ubuntu20.04.1+deb.sury.org+2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

apt --fix-broken install doesn't work, same error as before with "trying to overwrite ... which is also in package ..."

But at least nginx is still up and running. 50-mod-brotly exists:

image

oerdnj commented 8 months ago

dpkg -i --force-overwrite /var/cache/apt/archives/libnginx….deb on those two broken packages should fix that.

At least we moved a bit forward - this part is easily solvable. I’ll prepare another update today. There are probably wrong versions of Break/Replaces or something like that.

Thank you for the feedback. This is helpful.

fmonts commented 8 months ago

today apt --fix-broken install worked, and it upgraded to libnginx-mod-brotli/focal 1:1.0.0~rc+1.25.4-8+ubuntu20.04.1+deb.sury.org+1

However, I tried a full update for another server, from nginx-core/now 1.25.3-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 1.25.4-4+ubuntu22.04.1+deb.sury.org+1]

and it didn't work, got:

Unpacking nginx (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up debsuryorg-archive-keyring (2024.02.05+ubuntu22.04.1+deb.sury.org+1) ...
Setting up nginx (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) ...
Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to                                                                        reload units.
Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to                                                                        reload units.
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
invoke-rc.d: initscript nginx, action "start" failed.
× nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2024-03-21 17:30:26 UTC; 7ms ago
       Docs: man:nginx(8)
    Process: 3228982 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 5ms

Mar 21 17:30:26 eu-sbg-03 systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 21 17:30:26 eu-sbg-03 nginx[3228982]: 2024/03/21 17:30:26 [emerg] 3228982#3228982: module "/usr/share/nginx/modules/ngx_http_                                                                       geoip_module.so" version 1025003 instead of 1025004 in /etc/nginx/modules-enabled/50-mod-http-geoip.conf:1
Mar 21 17:30:26 eu-sbg-03 nginx[3228982]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 21 17:30:26 eu-sbg-03 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Mar 21 17:30:26 eu-sbg-03 systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 21 17:30:26 eu-sbg-03 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to                                                                        reload units.
dpkg: error processing package nginx (--configure):
 installed nginx package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libnginx-mod-http-brotli-filter:
 libnginx-mod-http-brotli-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-brotli-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx-common:
 nginx-common depends on nginx (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1); however:
  Package nginx is not configured yet.
 nginx-common depends on nginx (<< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~); however:
  Package nginx is not configured yet.

dpkg: error processing package nginx-common (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx
 libnginx-mod-http-brotli-filter
 nginx-common
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report writte                                                                       n because the error message indicates its a followup error from a previous failure.
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

nginx -t says:

2024/03/21 17:30:58 [emerg] 3229187#3229187: module "/usr/share/nginx/modules/ngx_http_geoip_module.so" version 1025003 instead of 1025004 in /etc/nginx/modules-enabled/50-mod-http-geoip.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

I did an apt --fix-broken install just after that and it worked...

oerdnj commented 8 months ago

Can you paste the apt.log from the last apt fix broken install?

comanche commented 8 months ago

Here's my apt term.log:

Log started: 2024-03-25  15:00:01
(Reading database ... 105802 files and directories currently installed.)
Preparing to unpack .../motd-news-config_12ubuntu4.6_all.deb ...
Unpacking motd-news-config (12ubuntu4.6) over (12ubuntu4.4) ...
Preparing to unpack .../base-files_12ubuntu4.6_amd64.deb ...
Unpacking base-files (12ubuntu4.6) over (12ubuntu4.4) ...
Setting up base-files (12ubuntu4.6) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
Installing new version of config file /etc/update-motd.d/10-help-text ...
motd-news.service is a disabled or a static unit not running, not starting it.
(Reading database ... 105802 files and directories currently installed.)
Preparing to unpack .../coreutils_8.32-4.1ubuntu1.1_amd64.deb ...
Unpacking coreutils (8.32-4.1ubuntu1.1) over (8.32-4.1ubuntu1) ...
Setting up coreutils (8.32-4.1ubuntu1.1) ...
(Reading database ... 105802 files and directories currently installed.)
Preparing to unpack .../dpkg_1.21.1ubuntu2.3_amd64.deb ...
Unpacking dpkg (1.21.1ubuntu2.3) over (1.21.1ubuntu2.2) ...
Setting up dpkg (1.21.1ubuntu2.3) ...
dpkg-db-backup.service is a disabled or a static unit not running, not starting it.
(Reading database ... 105802 files and directories currently installed.)
Preparing to unpack .../libsystemd0_249.11-0ubuntu3.12_amd64.deb ...
Unpacking libsystemd0:amd64 (249.11-0ubuntu3.12) over (249.11-0ubuntu3.11) ...
Setting up libsystemd0:amd64 (249.11-0ubuntu3.12) ...
(Reading database ... 105802 files and directories currently installed.)
Preparing to unpack .../0-libnss-systemd_249.11-0ubuntu3.12_amd64.deb ...
Unpacking libnss-systemd:amd64 (249.11-0ubuntu3.12) over (249.11-0ubuntu3.11) ...
Preparing to unpack .../1-systemd-sysv_249.11-0ubuntu3.12_amd64.deb ...
Unpacking systemd-sysv (249.11-0ubuntu3.12) over (249.11-0ubuntu3.11) ...
Preparing to unpack .../2-libpam-systemd_249.11-0ubuntu3.12_amd64.deb ...
Unpacking libpam-systemd:amd64 (249.11-0ubuntu3.12) over (249.11-0ubuntu3.11) ...
Preparing to unpack .../3-systemd_249.11-0ubuntu3.12_amd64.deb ...
Unpacking systemd (249.11-0ubuntu3.12) over (249.11-0ubuntu3.11) ...
Preparing to unpack .../4-udev_249.11-0ubuntu3.12_amd64.deb ...
Unpacking udev (249.11-0ubuntu3.12) over (249.11-0ubuntu3.11) ...
Preparing to unpack .../5-libudev1_249.11-0ubuntu3.12_amd64.deb ...
Unpacking libudev1:amd64 (249.11-0ubuntu3.12) over (249.11-0ubuntu3.11) ...
Setting up libudev1:amd64 (249.11-0ubuntu3.12) ...
(Reading database ... 105802 files and directories currently installed.)
Preparing to unpack .../00-libxtables12_1.8.7-1ubuntu5.2_amd64.deb ...
Unpacking libxtables12:amd64 (1.8.7-1ubuntu5.2) over (1.8.7-1ubuntu5.1) ...
Preparing to unpack .../01-iptables_1.8.7-1ubuntu5.2_amd64.deb ...
Unpacking iptables (1.8.7-1ubuntu5.2) over (1.8.7-1ubuntu5.1) ...
Preparing to unpack .../02-libip6tc2_1.8.7-1ubuntu5.2_amd64.deb ...
Unpacking libip6tc2:amd64 (1.8.7-1ubuntu5.2) over (1.8.7-1ubuntu5.1) ...
Preparing to unpack .../03-libip4tc2_1.8.7-1ubuntu5.2_amd64.deb ...
Unpacking libip4tc2:amd64 (1.8.7-1ubuntu5.2) over (1.8.7-1ubuntu5.1) ...
Selecting previously unselected package debsuryorg-archive-keyring.
Preparing to unpack .../04-debsuryorg-archive-keyring_2024.02.05+ubuntu22.04.1+deb.sury.org+1_all.deb ...
Unpacking debsuryorg-archive-keyring (2024.02.05+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../05-nginx-extras_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking nginx-extras (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../06-nginx_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking nginx (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../07-libnginx-mod-http-geoip_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../08-libnginx-mod-http-image-filter_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../09-libnginx-mod-http-perl_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-perl (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../10-libnginx-mod-http-xslt-filter_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../11-libnginx-mod-mail_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-mail (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../12-libnginx-mod-stream-geoip_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-stream-geoip (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../13-libnginx-mod-stream-geoip2_1%3a3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-stream-geoip2 (1:3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../14-libnginx-mod-stream_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-stream (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../15-libnginx-mod-http-auth-pam_1%3a1.5.5+1.25.4-2+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-auth-pam (1:1.5.5+1.25.4-2+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../16-libnginx-mod-http-cache-purge_1%3a2.3+1.25.4-7+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-cache-purge (1:2.3+1.25.4-7+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../17-libnginx-mod-http-dav-ext_1%3a3.0.0+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-dav-ext (1:3.0.0+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../18-libnginx-mod-http-echo_1%3a0.63+1.25.4-6+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-echo (1:0.63+1.25.4-6+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../19-libnginx-mod-http-fancyindex_1%3a0.5.2+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-fancyindex (1:0.5.2+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../20-libnginx-mod-http-geoip2_1%3a3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-geoip2 (1:3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../21-libnginx-mod-http-headers-more-filter_1%3a0.37+1.25.4-2+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-headers-more-filter (1:0.37+1.25.4-2+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../22-libluajit-5.1-2_2.1.0+openresty20231117-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libluajit-5.1-2:amd64 (2.1.0+openresty20231117-1+ubuntu22.04.1+deb.sury.org+1) over (2.1.0~beta3+dfsg-6) ...
Preparing to unpack .../23-libluajit-5.1-common_2.1.0+openresty20231117-1+ubuntu22.04.1+deb.sury.org+1_all.deb ...
Unpacking libluajit-5.1-common (2.1.0+openresty20231117-1+ubuntu22.04.1+deb.sury.org+1) over (2.1.0~beta3+dfsg-6) ...
Selecting previously unselected package lua-resty-lrucache.
Preparing to unpack .../24-lua-resty-lrucache_0.13-10+ubuntu22.04.1+deb.sury.org+1_all.deb ...
Unpacking lua-resty-lrucache (0.13-10+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package lua-resty-core.
Preparing to unpack .../25-lua-resty-core_0.1.28-2+ubuntu22.04.1+deb.sury.org+2_all.deb ...
Unpacking lua-resty-core (0.1.28-2+ubuntu22.04.1+deb.sury.org+2) ...
Preparing to unpack .../26-libnginx-mod-http-lua_1%3a0.10.26+1.25.4-2+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-lua (1:0.10.26+1.25.4-2+ubuntu22.04.1+deb.sury.org+5) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../27-libnginx-mod-http-ndk_1%3a0.3.3+1.25.4-1+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-ndk (1:0.3.3+1.25.4-1+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../28-libnginx-mod-http-subs-filter_1%3a0.6.4+1.25.4-6+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-subs-filter (1:0.6.4+1.25.4-6+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../29-libnginx-mod-http-uploadprogress_1%3a0.9.2+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-uploadprogress (1:0.9.2+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../30-libnginx-mod-http-upstream-fair_1%3a0.0~git20120408.a18b409+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-upstream-fair (1:0.0~git20120408.a18b409+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../31-libnginx-mod-nchan_1%3a1.3.6+dfsg+1.25.4-4+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-nchan (1:1.3.6+dfsg+1.25.4-4+ubuntu22.04.1+deb.sury.org+4) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../32-libnginx-mod-ssl-ct_1%3a1.3.2+1.25.4-2+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-ssl-ct (1:1.3.2+1.25.4-2+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../33-nginx-common_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_all.deb ...
Unpacking nginx-common (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.3-1+ubuntu22.04.1+deb.sury.org+1) ...
dpkg: warning: unable to delete old directory '/var/www/html': Directory not empty
dpkg: warning: unable to delete old directory '/var/www': Directory not empty
Setting up debsuryorg-archive-keyring (2024.02.05+ubuntu22.04.1+deb.sury.org+1) ...
Setting up nginx (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) ...
Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units.
 * Upgrading binary nginx                                                [fail]
invoke-rc.d: initscript nginx, action "upgrade" failed.
Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
invoke-rc.d: initscript nginx, action "restart" failed.
× nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-03-25 15:00:17 CDT; 7ms ago
       Docs: man:nginx(8)
    Process: 15315 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 5ms
Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units.
dpkg: error processing package nginx (--configure):
 installed nginx package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx-common:
 nginx-common depends on nginx (<< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~); however:
  Package nginx is not configured yet.

dpkg: error processing package nginx-common (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx
 nginx-common
Log ended: 2024-03-25  15:00:17

Hope that helps.

SirajCse commented 8 months ago

Building complete list of packages .. Now updating libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2 nginx-common nginx-core nginx-full .. Installing package(s) with command apt-get -y install libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2 nginx-common nginx-core nginx-full .. Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: libnginx-mod-http-auth-pam : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-dav-ext : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-echo : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-geoip : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-geoip2 : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-image-filter : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-subs-filter : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-upstream-fair : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-http-xslt-filter : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-mail : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-ssl-ct : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-stream : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-stream-geoip : Depends: nginx-abi-1.24.0-1 Recommends: nginx libnginx-mod-stream-geoip2 : Depends: nginx-abi-1.24.0-1 Recommends: nginx nginx-common : Depends: nginx (>= 1.25.4-2+ubuntu22.04.1+deb.sury.org+1) Depends: nginx (< 1.25.4-2+ubuntu22.04.1+deb.sury.org+1.1~) nginx-core : Depends: nginx (>= 1.25.4-2+ubuntu22.04.1+deb.sury.org+1) Depends: nginx (< 1.25.4-2+ubuntu22.04.1+deb.sury.org+1.1~) nginx-full : Depends: nginx (>= 1.25.4-2+ubuntu22.04.1+deb.sury.org+1) Depends: nginx (< 1.25.4-2+ubuntu22.04.1+deb.sury.org+1.1~) E: Unable to correct problems, you have held broken packages. .. install failed! No packages were installed. Check the messages above for the cause of the error. last month this error when update what can I do ?

SirajCse commented 8 months ago

Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: nginx-common : Depends: nginx (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) Depends: nginx (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) nginx-core : Depends: libnginx-mod-http-geoip (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) but it is not going to be installed Depends: libnginx-mod-http-geoip (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) but it is not going to be installed Depends: libnginx-mod-http-image-filter (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) but it is not going to be installed Depends: libnginx-mod-http-image-filter (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) but it is not going to be installed Depends: libnginx-mod-http-xslt-filter (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) but it is not going to be installed Depends: libnginx-mod-http-xslt-filter (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) but it is not going to be installed Depends: libnginx-mod-mail (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) but it is not going to be installed Depends: libnginx-mod-mail (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) but it is not going to be installed Depends: libnginx-mod-stream (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) but it is not going to be installed Depends: libnginx-mod-stream (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) but it is not going to be installed Depends: libnginx-mod-stream-geoip (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) but it is not going to be installed Depends: libnginx-mod-stream-geoip (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) but it is not going to be installed Depends: nginx (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) Depends: nginx (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) nginx-full : Depends: libnginx-mod-http-auth-pam (>= 1:1.5.3-4~) but it is not going to be installed Depends: libnginx-mod-http-dav-ext (>= 1:3.0.0-4~) but it is not going to be installed Depends: libnginx-mod-http-echo (>= 1:0.63-5~) but it is not going to be installed Depends: libnginx-mod-http-geoip2 (>= 1:3.4-4~) but it is not going to be installed Depends: libnginx-mod-http-subs-filter (>= 1:0.6.4-5~) but it is not going to be installed Depends: libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409-4~) but it is not going to be installed Depends: libnginx-mod-stream-geoip2 (>= 1:3.4-4~) but it is not going to be installed Depends: nginx (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1) Depends: nginx (< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~) E: Unable to correct problems, you have held broken packages.

tonmoy-ajize commented 7 months ago

I can't even install NGINX, is there any solution ... this issue is going on for quite some time

apt install nginx-full
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nginx-full : Depends: libnginx-mod-http-auth-pam (>= 1:1.5.3-4~) but it is not going to be installed
              Depends: libnginx-mod-http-dav-ext (>= 1:3.0.0-4~) but it is not going to be installed
              Depends: libnginx-mod-http-echo (>= 1:0.63-5~) but it is not going to be installed
              Depends: libnginx-mod-http-geoip2 (>= 1:3.4-4~) but it is not going to be installed
              Depends: libnginx-mod-http-subs-filter (>= 1:0.6.4-5~) but it is not going to be installed
              Depends: libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409-4~) but it is not going to be installed
              Depends: libnginx-mod-stream-geoip2 (>= 1:3.4-4~) but it is not going to be installed
              Depends: nginx (>= 1.24.0-4+ubuntu22.04.1+deb.sury.org+1)
E: Unable to correct problems, you have held broken packages.
aaronbuckner commented 7 months ago

Yes, this is concerning to see these packages held back when updating any of my systems. Is there any ETA on a fix?

I would like to keep my systems up to date and being unable to install security updates is a big problem.

On Apr 4, 2024, at 04:29, Tonmoy Ajize @.***> wrote:

I can't even install NGINX, is there any solution ... this issue is going on for quite some time

apt install nginx-full Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: nginx-full : Depends: libnginx-mod-http-auth-pam (>= 1:1.5.3-4~) but it is not going to be installed Depends: libnginx-mod-http-dav-ext (>= 1:3.0.0-4~) but it is not going to be installed Depends: libnginx-mod-http-echo (>= 1:0.63-5~) but it is not going to be installed Depends: libnginx-mod-http-geoip2 (>= 1:3.4-4~) but it is not going to be installed Depends: libnginx-mod-http-subs-filter (>= 1:0.6.4-5~) but it is not going to be installed Depends: libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409-4~) but it is not going to be installed Depends: libnginx-mod-stream-geoip2 (>= 1:3.4-4~) but it is not going to be installed Depends: nginx (>= 1.24.0-4+ubuntu22.04.1+deb.sury.org+1) E: Unable to correct problems, you have held broken packages. — Reply to this email directly, view it on GitHub https://github.com/oerdnj/deb.sury.org/issues/2099#issuecomment-2035628692, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANINY5DAEAS4MJDRNUUAMWDY3RYE7AVCNFSM6AAAAABE3MWDWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZVGYZDQNRZGI. You are receiving this because you are subscribed to this thread.

oerdnj commented 7 months ago

You are mixing multiple issues into a single one.

apt install nginx-full works just fine on my Debian bookworm system. If you don't give enough details, it's not possible to know what exactly is broken...

$ sudo apt install nginx-full
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream-geoip nginx-core
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip2 libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-stream-geoip2
The following NEW packages will be installed:
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip2 libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-stream-geoip2
  nginx-full
0 upgraded, 8 newly installed, 0 to remove and 6 not upgraded.
Need to get 165 kB of archives.
After this operation, 414 kB of additional disk space will be used.
Do you want to continue? [Y/n] ^C
aaronbuckner commented 7 months ago

Thank you for writing back. I am definitely appreciative for the work you do.

My issue is on upgrade. I use a service called Spinup for some of my Wordpress installations and they use your repo. When I try to update the system I get:

The following packages have been kept back:

libnginx-mod-brotli libnginx-mod-http-geoip libnginx-mod-http-image-filter

libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct

libnginx-mod-stream libnginx-mod-stream-geoip nginx nginx-common nginx-core

0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

It's been this way for about a month now and that's why I'm concerned. It seems whatever was done with brotli (?) has caused my systems to freeze some important updates and I can't find a confident method to unstick them :)

On Tue, Apr 9, 2024 at 7:18 PM Ondřej Surý @.***> wrote:

You are mixing multiple issues into a single one.

apt install nginx-full works just fine on my Debian bookworm system. If you don't give enough details, it's not possible to know what exactly is broken...

$ sudo apt install nginx-full Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream-geoip nginx-core Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip2 libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-stream-geoip2 The following NEW packages will be installed: libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip2 libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-stream-geoip2 nginx-full 0 upgraded, 8 newly installed, 0 to remove and 6 not upgraded. Need to get 165 kB of archives. After this operation, 414 kB of additional disk space will be used. Do you want to continue? [Y/n] ^C

— Reply to this email directly, view it on GitHub https://github.com/oerdnj/deb.sury.org/issues/2099#issuecomment-2045031871, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANINY5G6NHB5DHFYYEWZPH3Y4PMBTAVCNFSM6AAAAABE3MWDWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGAZTCOBXGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

oerdnj commented 7 months ago

I have no idea what Spinup is, but I need more info why those packages are being held.

What happens if you do apt dist-upgrade and what happens when you do apt install nginx directly and what happens when you do apt install <allofthepackages>?

aaronbuckner commented 7 months ago

Lo and behold!

Both apt dist-upgrade and apt install nginx do essentially the same thing for me, both removing the old mod-brotli package and installing the proper packages.

The following packages were automatically installed and are no longer required:

geoip-database libgeoip1 libnginx-mod-http-geoip

libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter

libnginx-mod-mail libnginx-mod-ssl-ct libnginx-mod-stream

libnginx-mod-stream-geoip nginx-core

Use 'sudo apt autoremove' to remove them.

The following additional packages will be installed:

libnginx-mod-http-geoip libnginx-mod-http-image-filter

libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct

libnginx-mod-stream libnginx-mod-stream-geoip nginx-common nginx-core

Suggested packages:

fcgiwrap nginx-doc ssl-cert

The following packages will be REMOVED:

libnginx-mod-brotli

The following packages will be upgraded:

libnginx-mod-http-geoip libnginx-mod-http-image-filter

libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-ssl-ct

libnginx-mod-stream libnginx-mod-stream-geoip nginx nginx-common

nginx-core

Unfortunately, I don't have another dev system I can test the third command on, though based on my understanding now, if I try to install all of the packages which are held back, it would likely fail since mod-brotli is one of those packages.

Thank you so much!

On Tue, Apr 9, 2024 at 8:09 PM Ondřej Surý @.***> wrote:

I have no idea what Spinup is, but I need more info why those packages are being held.

What happens if you do apt dist-upgrade and what happens when you do apt install nginx directly and what happens when you do apt install

? — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
oerdnj commented 7 months ago

Ok, what does apt-cache policy libnginx-mod-brotli say?

aaronbuckner commented 7 months ago

On the updated system it shows:

libnginx-mod-brotli:

Installed: (none)

Candidate: 1:1.0.0~rc+1.24.0-8+ubuntu22.04.1+deb.sury.org+1

Version table:

 1:1.0.0~rc+1.24.0-8+ubuntu22.04.1+deb.sury.org+1 500

    500 http://ppa.launchpad.net/ondrej/nginx/ubuntu jammy/main arm64

Packages

 1.24.0-1+ubuntu22.04.1+deb.sury.org+1 -1

    100 /var/lib/dpkg/status

On a non-updated system it shows:

libnginx-mod-brotli:

Installed: 1.24.0-1+ubuntu22.04.1+deb.sury.org+2

Candidate: 1:1.0.0~rc+1.24.0-8+ubuntu22.04.1+deb.sury.org+1

Version table:

 1:1.0.0~rc+1.24.0-8+ubuntu22.04.1+deb.sury.org+1 500

    500 http://ppa.launchpad.net/ondrej/nginx/ubuntu jammy/main amd64

Packages

*** 1.24.0-1+ubuntu22.04.1+deb.sury.org+2 100

    100 /var/lib/dpkg/status

On Tue, Apr 9, 2024 at 10:00 PM Ondřej Surý @.***> wrote:

Ok, what does apt-cache policy libnginx-mod-brotli say?

— Reply to this email directly, view it on GitHub https://github.com/oerdnj/deb.sury.org/issues/2099#issuecomment-2045401043, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANINY5BKDTRTVQ24TDGNVGLY4P7B3AVCNFSM6AAAAABE3MWDWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGQYDCMBUGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

oerdnj commented 7 months ago

And if you do apt install libnginx-mod-brotli directly?

BTW it's a dummy package now and it's ok to remove it during the upgrade process, but it should pull the brotli-static and brotli-filter packages, so we just need to discover why it wants to remove the package.

aaronbuckner commented 7 months ago

On a non-updated system, it says:

The following packages have unmet dependencies:

libnginx-mod-http-brotli-filter : Breaks: libnginx-mod-brotli (< 1:1.0.0~rc+1.25.4-8~) but 1:1.0.0~rc+1.24.0-8+ubuntu22.04.1+deb.sury.org+1 is to be installed

E: Unable to correct problems, you have held broken packages.

Is that what you needed to see?

On Tue, Apr 9, 2024 at 10:31 PM Ondřej Surý @.***> wrote:

And if you do apt install libnginx-mod-brotli directly?

BTW it's a dummy package now and it's ok to remove it during the upgrade process, but it should pull the brotli-static and brotli-filter packages, so we just need to discover why it wants to remove the package.

— Reply to this email directly, view it on GitHub https://github.com/oerdnj/deb.sury.org/issues/2099#issuecomment-2045491302, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANINY5CG2UGGX7DSZVYEVNLY4QCW5AVCNFSM6AAAAABE3MWDWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGQ4TCMZQGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

oerdnj commented 7 months ago

Is that what you needed to see?

Oh yes, that's easy to fix. I'll do that later today.

Meanwhile you can just install the dependencies and remove the dummy package.

mbfdias commented 7 months ago

I tried to do an upgrade on a server ubuntu 22.04 today, and it broke nginx

Log started: 2024-04-13 11:30:32 (Reading database ... 107225 files and directories currently installed.) Preparing to unpack .../00-libnginx-mod-stream-geoip2_1%3a3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ... Unpacking libnginx-mod-stream-geoip2 (1:3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../01-libnginx-mod-stream_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... Unpacking libnginx-mod-stream (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../02-libnginx-mod-stream-geoip_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... Unpacking libnginx-mod-stream-geoip (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../03-libnginx-mod-ssl-ct_1%3a1.3.2+1.25.4-2+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... Unpacking libnginx-mod-ssl-ct (1:1.3.2+1.25.4-2+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../04-libnginx-mod-mail_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... Unpacking libnginx-mod-mail (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../05-libnginx-mod-http-xslt-filter_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... Unpacking libnginx-mod-http-xslt-filter (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../06-libnginx-mod-http-upstream-fair_1%3a0.0~git20120408.a18b409+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ... Unpacking libnginx-mod-http-upstream-fair (1:0.0~git20120408.a18b409+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../07-libnginx-mod-http-subs-filter_1%3a0.6.4+1.25.4-6+ubuntu22.04.1+deb.sury.org+4_amd64.deb ... Unpacking libnginx-mod-http-subs-filter (1:0.6.4+1.25.4-6+ubuntu22.04.1+deb.sury.org+4) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../08-libnginx-mod-http-image-filter_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... Unpacking libnginx-mod-http-image-filter (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../09-libnginx-mod-http-geoip2_1%3a3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ... Unpacking libnginx-mod-http-geoip2 (1:3.4+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../10-libnginx-mod-http-echo_1%3a0.63+1.25.4-6+ubuntu22.04.1+deb.sury.org+4_amd64.deb ... Unpacking libnginx-mod-http-echo (1:0.63+1.25.4-6+ubuntu22.04.1+deb.sury.org+4) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../11-libnginx-mod-http-dav-ext_1%3a3.0.0+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ... Unpacking libnginx-mod-http-dav-ext (1:3.0.0+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../12-libnginx-mod-http-auth-pam_1%3a1.5.5+1.25.4-2+ubuntu22.04.1+deb.sury.org+4_amd64.deb ... Unpacking libnginx-mod-http-auth-pam (1:1.5.5+1.25.4-2+ubuntu22.04.1+deb.sury.org+4) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../13-nginx-common_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_all.deb ... Unpacking nginx-common (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... dpkg: warning: unable to delete old directory '/var/www/html': Directory not empty dpkg: warning: unable to delete old directory '/var/www': Directory not empty Preparing to unpack .../14-nginx-full_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_all.deb ... Unpacking nginx-full (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Selecting previously unselected package libnginx-mod-http-brotli-filter. dpkg: considering deconfiguration of libnginx-mod-brotli, which would be broken by installation of libnginx-mod-http-brotli-filter ... dpkg: yes, will deconfigure libnginx-mod-brotli (broken by libnginx-mod-http-brotli-filter) Preparing to unpack .../15-libnginx-mod-http-brotli-filter_1%3a1.0.0~rc+1.25.4-8+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... De-configuring libnginx-mod-brotli (1.25.4-1+ubuntu22.04.1+deb.sury.org+1), to allow installation of libnginx-mod-http-brotli-filter (1:1.0.0~rc+1.25.4-8+ubuntu22.04.1+deb.sury.org+1) ... Unpacking libnginx-mod-http-brotli-filter (1:1.0.0~rc+1.25.4-8+ubuntu22.04.1+deb.sury.org+1) ... Replacing files in old package libnginx-mod-brotli (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Preparing to unpack .../16-nginx-core_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_all.deb ... Unpacking nginx-core (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) over (1.25.4-1+ubuntu22.04.1+deb.sury.org+1) ... Selecting previously unselected package nginx. Preparing to unpack .../17-nginx_1.25.4-4+ubuntu22.04.1+deb.sury.org+1_amd64.deb ... Unpacking nginx (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) ... Setting up nginx (1.25.4-4+ubuntu22.04.1+deb.sury.org+1) ... Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units.

Apr 13 11:30:43 host systemd[1]: Starting A high performance web server and a reverse proxy server... Apr 13 11:30:43 host nginx[4178042]: 2024/04/13 11:30:43 [emerg] 4178042#4178042: unknown directive "brotli" in /etc/nginx/nginx.conf:100 Apr 13 11:30:43 host nginx[4178042]: nginx: configuration file /etc/nginx/nginx.conf test failed Apr 13 11:30:43 host systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Apr 13 11:30:43 host systemd[1]: nginx.service: Failed with result 'exit-code'. Apr 13 11:30:43 host systemd[1]: Failed to start A high performance web server and a reverse proxy server. Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units. dpkg: error processing package nginx (--configure): installed nginx package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of libnginx-mod-http-brotli-filter: libnginx-mod-http-brotli-filter depends on nginx-abi-1.24.0-1; however: Package nginx-abi-1.24.0-1 is not installed. Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-brotli-filter (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of nginx-common: nginx-common depends on nginx (>= 1.25.4-4+ubuntu22.04.1+deb.sury.org+1); however: Package nginx is not configured yet. nginx-common depends on nginx (<< 1.25.4-4+ubuntu22.04.1+deb.sury.org+1.1~); however: Package nginx is not configured yet.

dpkg: error processing package nginx-common (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: nginx libnginx-mod-http-brotli-filter nginx-common Log ended: 2024-04-13 11:30:43

it went from bad to worse, so I ended up purging nginx and libnginx and installing nginx from scratch from ubuntu default packages to get nginx up and running.

Synchro commented 7 months ago

I just had this happen with 1.25.5 on Ubuntu 22.04 on ARM. I solved it by purging and reinstalling from nginx repos.

comanche commented 7 months ago

Yesterday morning, I performed the upgrade and it worked perfectly fine on 4 attempt of the same server image (Ubuntu 22.04.4 LTS). Today, I attempted the upgrade on the same server image and it failed. Purged Nginx and all related packages. Tried to install and it failed as well.

Ran sudo apt install nginx nginx-extras and got the following:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-geoip2 libnginx-mod-http-headers-more-filter
  libnginx-mod-http-image-filter libnginx-mod-http-lua libnginx-mod-http-ndk libnginx-mod-http-perl
  libnginx-mod-http-subs-filter libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip
  libnginx-mod-stream-geoip2 lua-resty-core lua-resty-lrucache nginx-common
Suggested packages:
  fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext libnginx-mod-http-echo
  libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-geoip2 libnginx-mod-http-headers-more-filter
  libnginx-mod-http-image-filter libnginx-mod-http-lua libnginx-mod-http-ndk libnginx-mod-http-perl
  libnginx-mod-http-subs-filter libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip
  libnginx-mod-stream-geoip2 lua-resty-core lua-resty-lrucache nginx nginx-common nginx-extras
0 upgraded, 26 newly installed, 0 to remove and 2 not upgraded.
Need to get 1757 kB of archives.
After this operation, 4860 kB of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 nginx-common all 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [63.9 kB]
Get:2 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 nginx amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [626 kB]
Get:3 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-auth-pam amd64 1:1.5.5+1.25.5-2+ubuntu22.04.1+deb.sury.org+5 [7648 B]
Get:4 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-cache-purge amd64 1:2.3+1.25.5-7+ubuntu22.04.1+deb.sury.org+5 [10.3 kB]
Get:5 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-dav-ext amd64 1:3.0.0+1.25.4-5+ubuntu22.04.1+deb.sury.org+4 [15.6 kB]
Get:6 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-echo amd64 1:0.63+1.25.4-6+ubuntu22.04.1+deb.sury.org+4 [20.4 kB]
Get:7 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-fancyindex amd64 1:0.5.2+1.25.5-5+ubuntu22.04.1+deb.sury.org+5 [14.4 kB]
Get:8 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-geoip amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [38.5 kB]
Get:9 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-stream amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [108 kB]
Get:10 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-geoip2 amd64 1:3.4+1.25.5-5+ubuntu22.04.1+deb.sury.org+5 [9638 B]
Get:11 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-headers-more-filter amd64 1:0.37+1.25.5-2+ubuntu22.04.1+deb.sury.org+5 [13.7 kB]
Get:12 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-image-filter amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [42.5 kB]
Get:13 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 lua-resty-lrucache all 0.13-10+ubuntu22.04.1+deb.sury.org+1 [11.0 kB]
Get:14 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 lua-resty-core all 0.1.28-2+ubuntu22.04.1+deb.sury.org+2 [33.7 kB]
Get:15 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-ndk amd64 1:0.3.3+1.25.5-1+ubuntu22.04.1+deb.sury.org+5 [10.3 kB]
Get:16 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-lua amd64 1:0.10.26+1.25.4-2+ubuntu22.04.1+deb.sury.org+5 [175 kB]
Get:17 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-perl amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [51.3 kB]
Get:18 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-subs-filter amd64 1:0.6.4+1.25.5-6+ubuntu22.04.1+deb.sury.org+5 [11.3 kB]
Get:19 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-uploadprogress amd64 1:0.9.2+1.25.5-5+ubuntu22.04.1+deb.sury.org+5 [17.1 kB]
Get:20 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-upstream-fair amd64 1:0.0~git20120408.a18b409+1.25.5-5+ubuntu22.04.1+deb.sury.org+5 [11.0 kB]
Get:21 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-http-xslt-filter amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [40.9 kB]
Get:22 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-mail amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [76.0 kB]
Get:23 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-nchan amd64 1:1.3.6+dfsg+1.25.5-4+ubuntu22.04.1+deb.sury.org+5 [268 kB]
Get:24 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-stream-geoip amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [37.6 kB]
Get:25 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 libnginx-mod-stream-geoip2 amd64 1:3.4+1.25.5-5+ubuntu22.04.1+deb.sury.org+5 [9114 B]
Get:26 https://ppa.launchpadcontent.net/ondrej/nginx-mainline/ubuntu jammy/main amd64 nginx-extras amd64 1.25.5-1+ubuntu22.04.1+deb.sury.org+1 [33.3 kB]
Fetched 1757 kB in 11s (167 kB/s)
Preconfiguring packages ...
Selecting previously unselected package nginx-common.
(Reading database ... 105817 files and directories currently installed.)
Preparing to unpack .../00-nginx-common_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_all.deb ...
Unpacking nginx-common (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package nginx.
Preparing to unpack .../01-nginx_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking nginx (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package libnginx-mod-http-auth-pam.
Preparing to unpack .../02-libnginx-mod-http-auth-pam_1%3a1.5.5+1.25.5-2+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-auth-pam (1:1.5.5+1.25.5-2+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-cache-purge.
Preparing to unpack .../03-libnginx-mod-http-cache-purge_1%3a2.3+1.25.5-7+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-cache-purge (1:2.3+1.25.5-7+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-dav-ext.
Preparing to unpack .../04-libnginx-mod-http-dav-ext_1%3a3.0.0+1.25.4-5+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-dav-ext (1:3.0.0+1.25.4-5+ubuntu22.04.1+deb.sury.org+4) ...
Selecting previously unselected package libnginx-mod-http-echo.
Preparing to unpack .../05-libnginx-mod-http-echo_1%3a0.63+1.25.4-6+ubuntu22.04.1+deb.sury.org+4_amd64.deb ...
Unpacking libnginx-mod-http-echo (1:0.63+1.25.4-6+ubuntu22.04.1+deb.sury.org+4) ...
Selecting previously unselected package libnginx-mod-http-fancyindex.
Preparing to unpack .../06-libnginx-mod-http-fancyindex_1%3a0.5.2+1.25.5-5+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-fancyindex (1:0.5.2+1.25.5-5+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-geoip.
Preparing to unpack .../07-libnginx-mod-http-geoip_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../08-libnginx-mod-stream_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-stream (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package libnginx-mod-http-geoip2.
Preparing to unpack .../09-libnginx-mod-http-geoip2_1%3a3.4+1.25.5-5+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-geoip2 (1:3.4+1.25.5-5+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-headers-more-filter.
Preparing to unpack .../10-libnginx-mod-http-headers-more-filter_1%3a0.37+1.25.5-2+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-headers-more-filter (1:0.37+1.25.5-2+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack .../11-libnginx-mod-http-image-filter_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package lua-resty-lrucache.
Preparing to unpack .../12-lua-resty-lrucache_0.13-10+ubuntu22.04.1+deb.sury.org+1_all.deb ...
Unpacking lua-resty-lrucache (0.13-10+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package lua-resty-core.
Preparing to unpack .../13-lua-resty-core_0.1.28-2+ubuntu22.04.1+deb.sury.org+2_all.deb ...
Unpacking lua-resty-core (0.1.28-2+ubuntu22.04.1+deb.sury.org+2) ...
Selecting previously unselected package libnginx-mod-http-ndk.
Preparing to unpack .../14-libnginx-mod-http-ndk_1%3a0.3.3+1.25.5-1+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-ndk (1:0.3.3+1.25.5-1+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-lua.
Preparing to unpack .../15-libnginx-mod-http-lua_1%3a0.10.26+1.25.4-2+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-lua (1:0.10.26+1.25.4-2+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-perl.
Preparing to unpack .../16-libnginx-mod-http-perl_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-perl (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package libnginx-mod-http-subs-filter.
Preparing to unpack .../17-libnginx-mod-http-subs-filter_1%3a0.6.4+1.25.5-6+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-subs-filter (1:0.6.4+1.25.5-6+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-uploadprogress.
Preparing to unpack .../18-libnginx-mod-http-uploadprogress_1%3a0.9.2+1.25.5-5+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-uploadprogress (1:0.9.2+1.25.5-5+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-upstream-fair.
Preparing to unpack .../19-libnginx-mod-http-upstream-fair_1%3a0.0~git20120408.a18b409+1.25.5-5+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-http-upstream-fair (1:0.0~git20120408.a18b409+1.25.5-5+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack .../20-libnginx-mod-http-xslt-filter_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../21-libnginx-mod-mail_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-mail (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package libnginx-mod-nchan.
Preparing to unpack .../22-libnginx-mod-nchan_1%3a1.3.6+dfsg+1.25.5-4+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-nchan (1:1.3.6+dfsg+1.25.5-4+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package libnginx-mod-stream-geoip.
Preparing to unpack .../23-libnginx-mod-stream-geoip_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnginx-mod-stream-geoip (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package libnginx-mod-stream-geoip2.
Preparing to unpack .../24-libnginx-mod-stream-geoip2_1%3a3.4+1.25.5-5+ubuntu22.04.1+deb.sury.org+5_amd64.deb ...
Unpacking libnginx-mod-stream-geoip2 (1:3.4+1.25.5-5+ubuntu22.04.1+deb.sury.org+5) ...
Selecting previously unselected package nginx-extras.
Preparing to unpack .../25-nginx-extras_1.25.5-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking nginx-extras (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Setting up lua-resty-lrucache (0.13-10+ubuntu22.04.1+deb.sury.org+1) ...
Setting up nginx (1.25.5-1+ubuntu22.04.1+deb.sury.org+1) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
invoke-rc.d: initscript nginx, action "start" failed.
× nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2024-04-18 01:53:50 CDT; 6ms ago
       Docs: man:nginx(8)
    Process: 10281 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 3ms

Apr 18 01:53:50 hfh20test systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 18 01:53:50 hfh20test nginx[10281]: 2024/04/18 01:53:50 [emerg] 10281#10281: open() "/etc/nginx/nginx.conf" failed (
2: No such file or directory)
Apr 18 01:53:50 hfh20test nginx[10281]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 18 01:53:50 hfh20test systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Apr 18 01:53:50 hfh20test systemd[1]: nginx.service: Failed with result 'exit-code'.
Apr 18 01:53:50 hfh20test systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx (--configure):
 installed nginx package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libnginx-mod-http-headers-more-filter:
 libnginx-mod-http-headers-more-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-headers-more-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-image-filter:
 libnginx-mod-http-image-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-image-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-stream:
 libnginx-mod-stream depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-No apport report written because the error message indicates its a followup error from a previous fa
ilure.
      No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                No appor
t report written because MaxReports is reached already
                                                      No apport report written because MaxReports is reached already
                                                                                                                    No a
pport report written because MaxReports is reached already
                                                          No apport report written because MaxReports is reached already
                                                                                                                       N
o apport report written because MaxReports is reached already
                                                             No apport report written because MaxReports is reached alre
ady
   1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-stream (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-upstream-fair:
 libnginx-mod-http-upstream-fair depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-upstream-fair (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx-common:
 nginx-common depends on nginx (>= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package nginx is not configured yet.
 nginx-common depends on nginx (<< 1.25.5-1+ubuntu22.04.1+deb.sury.org+1.1~); however:
  Package nginx is not configured yet.

dpkg: error processing package nginx-comNo apport report written because MaxReports is reached already
                                                                                                      No apport report w
ritten because MaxReports is reached already
                                            mon (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-stream-geoip:
 libnginx-mod-stream-geoip depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.
 libnginx-mod-stream-geoip depends on libnginx-mod-stream (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package libnginx-mod-stream is not configured yet.

dpkg: error processing package libnginx-mod-stream-geoip (--configure):
 dependency problems - leaving unconfigured
Setting up lua-resty-core (0.1.28-2+ubuntu22.04.1+deb.sury.org+2) ...
dpkg: dependency problems prevent configuration of libnginx-mod-http-uploadprogress:
 libnginx-mod-http-uploadprogress depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-uploadprogress (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-xslt-filter:
 libnginx-mod-http-xslt-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-xslt-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-auth-pam:
 libnginx-mod-http-auth-pam depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-auth-pam (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-geoip:
 libnginx-mod-http-geoip depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-geoip (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-nchan:
 libnginx-mod-nchan depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-nchan (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libnginx-mod-http-ndk:
 libnginx-mod-http-ndk depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-ndk (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-cache-purge:
 libnginx-mod-http-cache-purge depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-cache-purge (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-echo:
 libnginx-mod-http-echo depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-echo (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-subs-filter:
 libnginx-mod-http-subs-filter depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-subs-filter (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-perl:
 libnginx-mod-http-perl depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-perl (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-geoip2:
 libnginx-mod-http-geoip2 depends on libnginx-mod-stream (<< 1.25.5.1~); however:
  Package libnginx-mod-stream is not configured yet.
 libnginx-mod-http-geoip2 depends on libnginx-mod-stream (>= 1.25.5); however:
  Package libnginx-mod-stream is not configured yet.
 libnginx-mod-http-geoip2 depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-geoip2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-lua:
 libnginx-mod-http-lua depends on libnginx-mod-http-ndk; however:
  Package libnginx-mod-http-ndk is not configured yet.
 libnginx-mod-http-lua depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-lua (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of nginx-e
xtras:
 nginx-extras depends on nginx (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package nginx is not configured yet.
 nginx-extras depends on libnginx-mod-http-geoip (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package libnginx-mod-http-geoip is not configured yet.
 nginx-extras depends on libnginx-mod-http-image-filter (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package libnginx-mod-http-image-filter is not configured yet.
 nginx-extras depends on libnginx-mod-http-perl (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package libnginx-mod-http-perl is not configured yet.
 nginx-extras depends on libnginx-mod-http-xslt-filter (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package libnginx-mod-http-xslt-filter is not configured yet.
 nginx-extras depends on libnginx-mod-stream (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package libnginx-mod-stream is not configured yet.
 nginx-extras depends on libnginx-mod-stream-geoip (= 1.25.5-1+ubuntu22.04.1+deb.sury.org+1); however:
  Package libnginx-mod-stream-geoip is not configured yet.
 nginx-extras depends on libnginx-mod-http-auth-pam (>= 1:1.5.3-4~); however:
  Package libnginx-mod-http-auth-pam is not configured yet.
 nginx-extras depends on libnginx-mod-http-cache-purge (>= 1:2.3-5~); however:
  Package libnginx-mod-http-cache-purge is not configured yet.
 nginx-extras depends on libnginx-mod-http-echo (>= 1:0.63-5~); however:
  Package libnginx-mod-http-echo is not configured yet.
 nginx-extras depends on libnginx-mod-http-geoip2 (>= 1:3.4-4~); however:
  Package libnginx-mod-http-geoip2 is not configured yet.
 nginx-extras depends on libnginx-mod-http-headers-more-filter (>= 1:0.34-4~); however:
  Package libnginx-mod-http-headers-more-filter is not configured yet.
 nginx-extras depends on libnginx-mod-http-lua (>= 1:0.10.23-2~); however:
  Package libnginx-mod-http-lua is not configured yet.
 nginx-extras depends on libnginx-mod-http-subs-filter (>= 1:0.6.4-5~); however:
  Package libnginx-mod-http-subs-filter is not configured yet.
 nginx-extras depends on libnginx-mod-http-uploadprogress (>= 1:0.9.2-4~); however:
  Package libnginx-mod-http-uploadprogress is not configured yet.
 nginx-extras depends on libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409-4~); however:
  Package libnginx-mod-http-upstream-fair is not configured yet.
 nginx-extras depends on libnginx-mod-nchan (>= 1:1.3.6+dfsg-3~); however:
  Package libnginx-mod-nchan is not configured yet.

dpkg: error processing package nginx-extras (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-stream-geoip2:
 libnginx-mod-stream-geoip2 depends on libnginx-mod-stream (<< 1.25.5.1~); however:
  Package libnginx-mod-stream is not configured yet.
 libnginx-mod-stream-geoip2 depends on libnginx-mod-stream (>= 1.25.5); however:
  Package libnginx-mod-stream is not configured yet.
 libnginx-mod-stream-geoip2 depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-stream-geoip2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-dav-ext:
 libnginx-mod-http-dav-ext depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-dav-ext (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-mail:
 libnginx-mod-mail depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-mail (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of libngin
x-mod-http-fancyindex:
 libnginx-mod-http-fancyindex depends on nginx-abi-1.24.0-1; however:
  Package nginx-abi-1.24.0-1 is not installed.
  Package nginx which provides nginx-abi-1.24.0-1 is not configured yet.

dpkg: error processing package libnginx-mod-http-fancyindex (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Processing triggers for ufw (0.36.1-4ubuntu0.1) ...
Rules updated for profile 'OpenSSH'
Skipped reloading firewall
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
 nginx
 libnginx-mod-http-headers-more-filter
 libnginx-mod-http-image-filter
 libnginx-mod-stream
 libnginx-mod-http-upstream-fair
 nginx-common
 libnginx-mod-stream-geoip
 libnginx-mod-http-uploadprogress
 libnginx-mod-http-xslt-filter
 libnginx-mod-http-auth-pam
 libnginx-mod-http-geoip
 libnginx-mod-nchan
 libnginx-mod-http-ndk
 libnginx-mod-http-cache-purge
 libnginx-mod-http-echo
 libnginx-mod-http-subs-filter
 libnginx-mod-http-perl
 libnginx-mod-http-geoip2
 libnginx-mod-http-lua
 nginx-extras
 libnginx-mod-stream-geoip2
 libnginx-mod-http-dav-ext
 libnginx-mod-mail
 libnginx-mod-http-fancyindex
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
oerdnj commented 7 months ago

I've finally found the problem: https://github.com/oerdnj/deb.sury.org/issues/2118#issuecomment-2063660953

Closing the issue and tracking it there.

fmonts commented 7 months ago

The last update broke everything again :\

It was working fine, but after the update (1.25.5-2+ubuntu20.04.1+deb.sury.org+1) over (1.25.4-4+ubuntu20.04.1+deb.sury.org+1), nginx failed to start because of:

Apr 20 12:37:18 eu-sbg-02 nginx[836350]: 2024/04/20 12:37:18 [emerg] 836350#836350: module "/usr/share/nginx/modules/ngx_http_geoip_module.so" version 1025004 instead of 1025005 in /etc/nginx/modules-enabled/50-mod-http-geoip.conf:1

After removing that module from modules enabled, the other modules had the same issue.

Fixing it was quite challenging because apt refused to remove or purge nginx (telling me to run --fix broken first, but that was failing as well...). Luckily I managed to purge everything and reinstall nginx from the ubuntu repo...

Synchro commented 7 months ago

Tread carefully if you use purge, because it will delete everything in /etc/nginx and /var/log/nginx.

netninjasdev commented 4 months ago

try running apt --fix-broken install

jult commented 3 months ago

Really hard to find, but which modules are included with the sury nginx release package? Anyone care to do a nginx -V for me?

fmonts commented 3 months ago

Really hard to find, but which modules are included with the sury nginx release package? Anyone care to do a nginx -V for me?

nginx version: nginx/1.26.2 built with OpenSSL 3.0.13 30 Jan 2024 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/build/nginx-do1QBJ/nginx-1.26.2=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/build/nginx-do1QBJ/nginx-1.26.2=/usr/src/nginx-1.26.2-1+ubuntu24.04.1+deb.sury.org+1 -fPIC -Wdate-time -D_FORTIFY_SOURCE=3' --with-ld-opt='-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=stderr --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_v3_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_secure_link_module --with-http_sub_module --with-mail_ssl_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-http_geoip_module=dynamic --with-http_image_filter_module=dynamic --with-http_perl_module=dynamic --with-http_xslt_module=dynamic --with-mail=dynamic --with-stream=dynamic --with-stream_geoip_module=dynamic

jult commented 3 months ago

Thanks! Why on earth would they not want to include the fancyindexing module, I really don't get it. It's barely noticeable, bytewise. Forcing me to recompile every damn time.