Comment 5 for bug 1987074

Revision history for this message
Steffen Kittel (steki) wrote : Re: package nginx-core 1.18.0-6ubuntu14.1 failed to install/upgrade: installed nginx-core package post-installation script subprocess returned error exit status 1

It's geoip2, albeit i installed also the normal geoip module:

root@host:~$ apt reinstall libnginx-mod-stream-geoip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 9,134 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://mirror.hetzner.com/ubuntu/packages jammy-updates/universe amd64 libnginx-mod-stream-geoip amd64 1.18.0-6ubuntu14.1 [9,134 B]
Fetched 9,134 B in 0s (286 kB/s)
(Reading database ... 87518 files and directories currently installed.)
Preparing to unpack .../libnginx-mod-stream-geoip_1.18.0-6ubuntu14.1_amd64.deb ...
Unpacking libnginx-mod-stream-geoip (1.18.0-6ubuntu14.1) over (1.18.0-6ubuntu14.1) ...
Setting up libnginx-mod-stream-geoip (1.18.0-6ubuntu14.1) ...
Processing triggers for nginx-core (1.18.0-6ubuntu14.1) ...
Triggering nginx reload ...
root@host:~$ nginx -T
nginx: [emerg] dlopen() "/usr/share/nginx/modules/ngx_stream_geoip_module.so" failed (/usr/share/nginx/modules/ngx_stream_geoip_module.so: undefined symbol: ngx_stream_add_variable) in /etc/nginx/modules-enabled/70-mod-stream-geoip.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
root@host:~$

Same error.