Opened 3 years ago

Closed 3 years ago

#2114 closed defect (fixed)

nginx-module-njs dependency error

Reported by: Reine Kurth Owned by: thresh
Priority: minor Milestone:
Component: nginx-package Version: 1.18.x
Keywords: nginx-module-njs Cc:
uname -a: Linux ephemeral 5.8.0-33-generic #36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.18.0 (Ubuntu)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-EPhnvI/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -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=/var/log/nginx/error.log --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_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_sub_module

Description

nginx installed from nginx PPA on Ubuntu 20.10 (deb [arch=amd64] http://nginx.org/packages/ubuntu groovy nginx).

Trying to install nginx javascript module, here is the command and output:

$ sudo apt-get install nginx-module-njs

Reading package lists... Done
Building dependency tree
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-module-njs : Depends: nginx-r1.18.0

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

---

Anything I'm doing wrong?

Thanks in advance.

Change History (4)

comment:1 by thresh, 3 years ago

Hi,

It seems that nginx from Ubuntu repositories got installed instead.

Can you check:

$ dpkg -l nginx
$ sudo apt install nginx-module-njs nginx=1.18.0-2~groovy

Thanks!

comment:2 by Reine Kurth, 3 years ago

Hello, sorry for the delay.

Yes, you are right.
I guess I could have found out myself, sorry :/ I was assuming that the PPA would automatically take precedence.

Thanks a lot!

comment:3 by thresh, 3 years ago

Owner: set to thresh
Status: newassigned

No problem at all.

That means we need to document this can happen and provide a workaround, I'll leave this open until then.

Thanks!

comment:4 by thresh, 3 years ago

Resolution: fixed
Status: assignedclosed

Hi,

I've documented pinning on Debian/Ubuntu repositories so this wont happen again. Please check http://nginx.org/en/linux_packages.html#Ubuntu for instructions.

Thanks!

Note: See TracTickets for help on using tickets.