oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
818 stars 27 forks source link

nginx 1.26.2 fails to install nginx-extras / libnginx-mod-http-lua #2198

Closed bashgeek closed 3 weeks ago

bashgeek commented 3 weeks ago

Frequently asked questions

Describe the bug nginx-extras (or more specifically the dependency libnginx-mod-http-lua) cannot be installed/upgraded after the last 1.26.2 update a few days ago:

root@debian-amd64:~# apt install nginx-extras
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-extras : Depends: libnginx-mod-http-lua (>= 1:0.10.26+1.26.2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@debian-amd64:~# apt install nginx-extras libnginx-mod-http-lua
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:
 libnginx-mod-http-lua : Depends: nginx-abi-1.26.1-1 but it is not installable
 nginx-extras : Depends: libnginx-mod-http-lua (>= 1:0.10.26+1.26.2~) but 1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61 is to be installed
E: Unable to correct problems, you have held broken packages.

To Reproduce

  1. Fresh and fully updated Debian 12 amd64 install
  2. Run https://packages.sury.org/nginx/README.txt
  3. Try install nginx-extras

Your understanding of what is happening Apparently this seems the issue: libnginx-mod-http-lua : Depends: nginx-abi-1.26.1-1 but it is not installable Depending on older abi version 1.26.1 instead of 1.26.2, which seems to be a hard-coded version (and now outdated and not available version) in the dependencies. Edit: Seems like the whole libnginx-mod-http-lua package isn't available in 1.26.2 yet.

Expected behavior For nginx-extras to be installed or upgraded properly :-)

Distribution (please complete the following information):

Package(s) (please complete the following information):

root@debian-amd64:~# apt-cache policy nginx-extras
nginx-extras:
  Installed: (none)
  Candidate: 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13
  Version table:
     1.26.2-1+0~20240816.38+debian12~1.gbp63ef13 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
     1.22.1-9 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        500 http://mirror.hetzner.com/debian/packages bookworm/main amd64 Packages
root@debian-amd64:~# apt-cache policy libnginx-mod-http-lua
libnginx-mod-http-lua:
  Installed: (none)
  Candidate: 1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61
  Version table:
     1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61 500
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
     1:0.10.23-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        500 http://mirror.hetzner.com/debian/packages bookworm/main amd64 Packages
root@debian-amd64:~# apt-cache show nginx-extras
Package: nginx-extras
Source: nginx
Version: 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13
Architecture: amd64
Maintainer: Debian Nginx Maintainers <pkg-nginx-maintainers@alioth-lists.debian.net>
Installed-Size: 94
Depends: nginx (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-http-geoip (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-http-image-filter (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-http-perl (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-http-xslt-filter (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-mail (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-stream (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-stream-geoip (= 1.26.2-1+0~20240816.38+debian12~1.gbp63ef13), libnginx-mod-http-auth-pam (>= 1:1.5.5+1.26.2~), libnginx-mod-http-cache-purge (>= 1:2.3+1.26.2~), libnginx-mod-http-dav-ext (>= 1:3.0.0+1.26.2~), libnginx-mod-http-echo (>= 1:0.63+1.26.2~), libnginx-mod-http-fancyindex (>= 1:0.5.2+1.26.2~), libnginx-mod-http-geoip2 (>= 1:3.4+1.26.2~), libnginx-mod-http-headers-more-filter (>= 1:0.34+1.26.2~), libnginx-mod-http-lua (>= 1:0.10.26+1.26.2~), libnginx-mod-http-subs-filter (>= 1:0.6.4+1.26.2~), libnginx-mod-http-uploadprogress (>= 1:0.9.2+1.26.2~), libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409+1.26.2~), libnginx-mod-nchan (>= 1:1.3.6+dfsg+1.26.2~), libnginx-mod-stream-geoip2 (>= 1:3.4+1.26.2~)
Homepage: https://nginx.org
Priority: optional
Section: httpd
Filename: pool/main/n/nginx/nginx-extras_1.26.2-1+0~20240816.38+debian12~1.gbp63ef13_amd64.deb
Size: 83380
SHA256: 3b2980164170d44e8459290b87c0c5b72a376dac10b8a58e7f5b747aa681674b
SHA1: 884cd7926ceb91d316e1d968bcb68c8cb4f11684
MD5sum: eaa484c53bfb0e4b21800581909a4538
Description-en: nginx web/proxy server (extended version)
 Nginx ("engine X") is a high-performance web and reverse proxy server
 created by Igor Sysoev. It can be used both as a standalone web server
 and as a proxy to reduce the load on back-end HTTP or mail servers.
 .
 This metapackage provides a version of nginx with the standard modules, plus
 extra features and modules such as the Perl module, which allows the
 addition of Perl in configuration files.
 .
 STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, Empty
 GIF, FastCGI, Geo, Limit Connections, Limit Requests, Map, Memcached, Proxy,
 Referer, Rewrite, SCGI, Split Clients, UWSGI.
 .
 OPTIONAL HTTP MODULES: Addition, Auth Request, Charset, WebDAV, FLV, GeoIP,
 Gunzip, Gzip, Gzip Precompression, Headers, HTTP/2, Image Filter, Index, Log,
 MP4, Embedded Perl, Random Index, Real IP, Slice, Secure Link, SSI, SSL,
 SSL Preread, Stub Status, Substitution, Thread Pool, Upstream, User ID, XSLT.
 .
 OPTIONAL MAIL MODULES: Mail Core, Auth HTTP, Proxy, SSL, IMAP, POP3, SMTP.
 .
 OPTIONAL STREAM MODULES: Stream, GeoIP, GeoIP2
 .
 THIRD PARTY MODULES: Auth PAM, Cache Purge, DAV Ext, Echo, Fancy Index,
 GeoIP2, Headers More, Embedded Lua, HTTP Substitutions, Nchan, Upload Progress,
 Upstream Fair Queue.
Description-md5: 1d3b9fb345563354827d5cafdc42a135

Package: nginx-extras
Source: nginx
Version: 1.22.1-9
Installed-Size: 91
Maintainer: Debian Nginx Maintainers <pkg-nginx-maintainers@alioth-lists.debian.net>
Architecture: amd64
Depends: nginx (= 1.22.1-9), libnginx-mod-http-geoip (= 1.22.1-9), libnginx-mod-http-image-filter (= 1.22.1-9), libnginx-mod-http-perl (= 1.22.1-9), libnginx-mod-http-xslt-filter (= 1.22.1-9), libnginx-mod-mail (= 1.22.1-9), libnginx-mod-stream (= 1.22.1-9), libnginx-mod-stream-geoip (= 1.22.1-9), libnginx-mod-http-auth-pam (>= 1:1.5.3-3~), libnginx-mod-http-cache-purge (>= 1:2.3-4~), libnginx-mod-http-dav-ext (>= 1:3.0.0-3~), libnginx-mod-http-echo (>= 1:0.63-4~), libnginx-mod-http-fancyindex (>= 1:0.5.2-3~), libnginx-mod-http-geoip2 (>= 1:3.4-3~), libnginx-mod-http-headers-more-filter (>= 1:0.34-3~), libnginx-mod-http-lua (>= 1:0.10.23-1~), libnginx-mod-http-subs-filter (>= 1:0.6.4-4~), libnginx-mod-http-uploadprogress (>= 1:0.9.2-3~), libnginx-mod-http-upstream-fair (>= 1:0.0~git20120408.a18b409-3~), libnginx-mod-nchan (>= 1:1.3.6+dfsg-2~), libnginx-mod-stream-geoip2 (>= 1:3.4-3~)
Description-en: nginx web/proxy server (extended version)
 Nginx ("engine X") is a high-performance web and reverse proxy server
 created by Igor Sysoev. It can be used both as a standalone web server
 and as a proxy to reduce the load on back-end HTTP or mail servers.
 .
 This metapackage provides a version of nginx with the standard modules, plus
 extra features and modules such as the Perl module, which allows the
 addition of Perl in configuration files.
 .
 STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, Empty
 GIF, FastCGI, Geo, Limit Connections, Limit Requests, Map, Memcached, Proxy,
 Referer, Rewrite, SCGI, Split Clients, UWSGI.
 .
 OPTIONAL HTTP MODULES: Addition, Auth Request, Charset, WebDAV, FLV, GeoIP,
 Gunzip, Gzip, Gzip Precompression, Headers, HTTP/2, Image Filter, Index, Log,
 MP4, Embedded Perl, Random Index, Real IP, Slice, Secure Link, SSI, SSL,
 SSL Preread, Stub Status, Substitution, Thread Pool, Upstream, User ID, XSLT.
 .
 OPTIONAL MAIL MODULES: Mail Core, Auth HTTP, Proxy, SSL, IMAP, POP3, SMTP.
 .
 OPTIONAL STREAM MODULES: Stream, GeoIP, GeoIP2
 .
 THIRD PARTY MODULES: Auth PAM, Cache Purge, DAV Ext, Echo, Fancy Index,
 GeoIP2, Headers More, Embedded Lua, HTTP Substitutions, Nchan, Upload Progress,
 Upstream Fair Queue.
Description-md5: 1d3b9fb345563354827d5cafdc42a135
Homepage: https://nginx.org
Section: httpd
Priority: optional
Filename: pool/main/n/nginx/nginx-extras_1.22.1-9_amd64.deb
Size: 79876
MD5sum: 8248883a4d7d8b07b5c2ece507fc1b88
SHA256: 8271adb9b346069944a7b64689e9a8f88e6a64ecb4e07baab371968f6995a95b
root@debian-amd64:~# apt-cache show libnginx-mod-http-lua
Package: libnginx-mod-http-lua
Source: libnginx-mod-http-lua (1:0.10.26-2+0~20240605.7+debian12~1.gbpb6cd61)
Version: 1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61
Architecture: amd64
Maintainer: Debian Nginx Maintainers <pkg-nginx-maintainers@alioth-lists.debian.net>
Installed-Size: 465
Depends: lua-resty-core (<< 0.1.28.1~), lua-resty-core (>= 0.1.28), libnginx-mod-http-ndk, nginx-abi-1.26.1-1, libc6 (>= 2.33), libluajit-5.1-2 (>= 2.1.0) | libluajit-5.1-2 (>= 2.1.0+openresty)
Recommends: nginx
Multi-Arch: foreign
Homepage: https://github.com/openresty/lua-nginx-module
Priority: optional
Section: httpd
Filename: pool/main/libn/libnginx-mod-http-lua/libnginx-mod-http-lua_0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61_amd64.deb
Size: 159960
SHA256: 8f746086f4de4ab36b671d0bb477d4a1af51f23dd2d4108dd8934acb737122fb
SHA1: 9e59ceba582cc65f1c882de31feb2ce8940bac49
MD5sum: ee3636c9751567e1fc9147181f7c46ae
Description-en: Lua module for Nginx
 Embed Lua runtime into nginx.
 .
 This module embeds Lua, via LuaJIT 2-5.1, into Nginx and by leveraging Nginx's
 subrequests, allows the integration of the powerful Lua threads
 (Lua coroutines) into the Nginx event model.
Description-md5: 54f5fee9d10603d78e3df169c29b9a06

Package: libnginx-mod-http-lua
Version: 1:0.10.23-1
Installed-Size: 460
Maintainer: Debian Nginx Maintainers <pkg-nginx-maintainers@alioth-lists.debian.net>
Architecture: amd64
Depends: libnginx-mod-http-ndk, lua-resty-core (<< 0.1.25.1~), lua-resty-core (>= 0.1.25), nginx-abi-1.22.1-7, libc6 (>= 2.33), libluajit2-5.1-2 (>= 2.1-20220411) | libluajit-5.1-2 (>= 2.1.0~beta3), libpcre3
Recommends: nginx
Description-en: Lua module for Nginx
 Embed Lua runtime into nginx.
 .
 This module embeds Lua, via LuaJIT 2-5.1, into Nginx and by leveraging Nginx's
 subrequests, allows the integration of the powerful Lua threads
 (Lua coroutines) into the Nginx event model.
Description-md5: 54f5fee9d10603d78e3df169c29b9a06
Multi-Arch: foreign
Homepage: https://github.com/openresty/lua-nginx-module
Section: httpd
Priority: optional
Filename: pool/main/libn/libnginx-mod-http-lua/libnginx-mod-http-lua_0.10.23-1_amd64.deb
Size: 157164
MD5sum: dd227b17552affa83bdba7ce7e37c0d4
SHA256: 6fcebd36a0699e3749875bf9d4a1e0b87f2a34211acbecf2d153cc4142cfbe6a
mashpie commented 3 weeks ago

same with apt upgrade on Debian 12 & 11, but at least old install is "kept back":

The following packages have been kept back:
  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-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 nginx nginx-common nginx-extras
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.

lua... been there earlier, related #2073? dependency issues?

oerdnj commented 3 weeks ago

Couple of builds intermittently failed. These have been fixed now. Recheck the output of apt-cache policy libnginx-mod-http-lua libnginx-mod-http-lua in about an hour to allowed packages to synchronize to the CDN.

oerdnj commented 3 weeks ago

same with apt upgrade on Debian 12 & 11, but at least old install is "kept back":

The following packages have been kept back:
  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-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 nginx nginx-common nginx-extras
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.

lua... been there earlier, related #2073? dependency issues?

This have no actionable info because it doesn’t contain the information why there were kept back.

mashpie commented 3 weeks ago

This have no actionable info because it doesn’t contain the information why there were kept back.

true, it's just the output of apt upgrade - when I force tried with apt install nginx-extras I got (same @bashgeek described initially):

The following packages have unmet dependencies:
 nginx-extras : Depends: libnginx-mod-http-lua (>= 1:0.10.26+1.26.2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

But alright will retry later today in a testbox. Looks like I already get new builds from CDN:

apt-cache policy libnginx-mod-http-lua libnginx-mod-http-lua
libnginx-mod-http-lua:
  Installed: 1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61
  Candidate: 1:0.10.26+1.26.2-2+0~20240818.9+debian12~1.gbpb6cd61
  Version table:
     1:0.10.26+1.26.2-2+0~20240818.9+debian12~1.gbpb6cd61 1100
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61 100
        100 /var/lib/dpkg/status
     1:0.10.23-1 500
        500 http://***/debian bookworm/main amd64 Packages
libnginx-mod-http-lua:
  Installed: 1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61
  Candidate: 1:0.10.26+1.26.2-2+0~20240818.9+debian12~1.gbpb6cd61
  Version table:
     1:0.10.26+1.26.2-2+0~20240818.9+debian12~1.gbpb6cd61 1100
        500 https://packages.sury.org/nginx bookworm/main amd64 Packages
 *** 1:0.10.26+1.26.1-2+0~20240605.7+debian12~1.gbpb6cd61 100
        100 /var/lib/dpkg/status
     1:0.10.23-1 500
        500 http://***/debian bookworm/main amd64 Packages
bashgeek commented 3 weeks ago

Working fine now, thanks for the quick fix!

oerdnj commented 3 weeks ago

Working fine now, thanks for the quick fix!

Thanks for the notification, it’s weekend after all ;)