crowdsecurity / cs-nginx-bouncer

CrowdSec bouncer for Nginx
MIT License
48 stars 8 forks source link

Unable to install nginx bouncer #59

Closed harshguptaserver closed 5 months ago

harshguptaserver commented 5 months ago

Hello,

I am using the following os:

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

When trying to install ( REF: https://doc.crowdsec.net/u/bouncers/nginx/ ) :

sudo apt install nginx lua5.1 libnginx-mod-http-lua luarocks gettext-base lua-cjson

I am facing the following error:

sudo apt install nginx lua5.1 libnginx-mod-http-lua luarocks gettext-base lua-cjson
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gettext-base is already the newest version (0.21-4ubuntu4).
gettext-base set to manually installed.
lua-cjson is already the newest version (2.1.0+dfsg-2.1).
lua-cjson set to manually installed.
nginx is already the newest version (1.24.0-1~jammy).
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: libnginx-mod-http-ndk but it is not going to be installed
                         Depends: nginx-abi-1.24.0-1
E: Unable to correct problems, you have held broken packages.

Also, there is another error:

$ sudo apt install crowdsec-nginx-bouncer
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: libnginx-mod-http-ndk but it is not going to be installed
                         Depends: nginx-abi-1.24.0-1
E: Unable to correct problems, you have held broken packages.
LaurenceJJones commented 5 months ago

I'm guessing you missed the pinned issue?

https://github.com/crowdsecurity/cs-nginx-bouncer/issues/38

LaurenceJJones commented 5 months ago

Closing as not planned, you can read the details from my previous comment.

The TLDR you need to switch to using openresty as Ubuntu core team dropped nginx lua support