Giter Site home page Giter Site logo

Comments (6)

kevin-olbrich avatar kevin-olbrich commented on July 18, 2024 2

I also had the same problem. In case nginx is already in failed state, this can help getting it back running (only if the core features are used):

systemctl disable nginx
systemctl stop nginx
apt install -f
mkdir /root/old-enabled-modules/
mv /etc/nginx/modules-enabled/* /root/old-enabled-modules/
systemctl enable nginx
systemctl restart nginx

The "systemctl disable" is important to be able to install the updates. APT will then not try to restart the service during the installation, which does not work in this state anyway and then causes the update to abort with an error.

from deb.sury.org.

oerdnj avatar oerdnj commented on July 18, 2024 2

Now tracked in a single issue, see #2118 (comment) for the final culprit.

from deb.sury.org.

NielsH avatar NielsH commented on July 18, 2024

We encountered the same issue on Debian 12. After running unattended-upgrades, we now get the following error:

nginx -t
2024/04/17 09:22:49 [emerg] 458847#458847: module "/usr/share/nginx/modules/ngx_http_lua_module.so" version 1025005 instead of 1025004 in /etc/nginx/modules-enabled/50-mod-http-lua.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

Running unattended-upgrades again in dry-run mode gives this output:

Checking: libnginx-mod-http-geoip ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting libnginx-mod-http-geoip's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: libnginx-mod-http-image-filter ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting libnginx-mod-http-image-filter's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: libnginx-mod-http-perl ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting libnginx-mod-http-perl's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: libnginx-mod-http-xslt-filter ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting libnginx-mod-http-xslt-filter's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: libnginx-mod-mail ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting libnginx-mod-mail's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: libnginx-mod-stream ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting libnginx-mod-stream's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: libnginx-mod-stream-geoip ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting libnginx-mod-stream-geoip's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: nginx ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting nginx's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: nginx-common ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
falling back to adjusting nginx-common's dependencies
sanity check failed for: {'nginx=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-perl=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-extras=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-mail=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-stream-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-http-xslt-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'nginx-common=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-geoip2=1:3.4+1.25.4-5+0~20240226.1+debian12~1.gbpf3955f', 'libnginx-mod-stream-geoip=1.25.5-1+0~20240416.51+debian12~1.gbp042f86', 'libnginx-mod-http-image-filter=1.25.5-1+0~20240416.51+debian12~1.gbp042f86'} : pkg libnginx-mod-stream-geoip2 is marked to be deleted
Checking: nginx-extras ([<Origin component:'main' archive:'bookworm' origin:'deb.sury.org' label:'' site:'packages.sury.org' isTrusted:True>])
package nginx-extras upgradable but fails to be marked for upgrade (E:Unable to correct problems, you have held broken packages.)
falling back to adjusting nginx-extras's dependencies
package nginx-extras upgradable but fails to be marked for upgrade (E:Unable to correct problems, you have held broken packages.)
sanity check failed for: set() : no package is selected to be upgraded or installed
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
Packages blacklist due to conffile prompts: []
No packages found that can be upgraded unattended and no pending auto-removals
The list of kept packages can't be calculated in dry-run mode.

Running an apt upgrade -s shows held-back packges:

The following packages have been kept back:
  libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip nginx nginx-common nginx-extras

Trying to manually install those gives:

apt install libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip nginx nginx-common nginx-extras -s
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-geoip2 (>= 1:3.4-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
E: Unable to correct problems, you have held broken packages.

When we do a dist-upgrade it seems like it may work, but it will also remove a bunch of other packages so i'm afraid it will also break some things:

 apt dist-upgrade -s
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 libluajit-5.1-2 libluajit-5.1-common 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-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 lua-resty-core lua-resty-lrucache
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libnginx-mod-http-geoip2 libnginx-mod-stream-geoip2 nginx-extras
The following NEW packages will be installed:
  linux-image-6.1.0-20-amd64
The following packages will be upgraded:
  containerd.io docker-ce docker-ce-cli docker-ce-rootless-extras docker-compose-plugin libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip linux-image-amd64 linux-libc-dev nginx nginx-common

from deb.sury.org.

djrm05 avatar djrm05 commented on July 18, 2024

Same error trying to upgrade nginx, resulting in the 2nd upgrade that broke nginx. is there anyway to install a previous package version?

The following packages have unmet dependencies:
 libnginx-mod-http-geoip2 : Depends: libnginx-mod-stream (< 1.25.4.1~) but 1.25.5-1+0~20240416.51+debian11~1.gbp042f86 is to be installed
E: Unable to correct problems, you have held broken packages.

from deb.sury.org.

brendan-pike avatar brendan-pike commented on July 18, 2024

Same error trying to upgrade nginx, resulting in the 2nd upgrade that broke nginx. is there anyway to install a previous package version?

This update has broken several of my servers also, it seems many modules are not updated, eg.

2024/04/18 15:06:19 [emerg] 21159#21159: module "/usr/share/nginx/modules/ngx_http_dav_ext_module.so" version 1025004 instead of 1025005 in /etc/nginx/modules-enabled/50-mod-http-dav-ext.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
root@Hyssop:/etc/nginx/modules-enabled# ls -l /usr/share/nginx/modules-available/mod-http-dav-ext.conf

@kevin-olbrich suggested workaround does work but not if there are required modules not upgraded.

from deb.sury.org.

TuningYourCode avatar TuningYourCode commented on July 18, 2024

Today i got the following error on our test systems:

Apr 18 09:11:48 xxx systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 18 09:11:48 xxx nginx[534182]: 2024/04/18 09:11:48 [emerg] 534182#534182: module "/usr/share/nginx/modules/ngx_ssl_ct_module.so" version 1025004 instead of 1025005 in /etc/nginx/modules-enabled/50-mod-ssl-ct.conf:1
Apr 18 09:11:48 xxx nginx[534182]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 18 09:11:48 xxx systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Apr 18 09:11:48 xxx systemd[1]: nginx.service: Failed with result 'exit-code'.
Apr 18 09:11:48 xxx systemd[1]: Failed to start A high performance web server and a reverse proxy server.

I switched from https://packages.sury.org/nginx-mainline to https://packages.sury.org/nginx in our nexus repository manger instance for the nginx apt repository and it seems to work again. It might be an older version but most likely good enough for most people or a kind of workaround for people which don't have some kind of cache or access to the old package versions.

from deb.sury.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.