darylounet / libnginx-mod-brotli

Debian and Ubuntu NGiNX ngx_brotli dynamic module package build
GNU General Public License v3.0
15 stars 9 forks source link

Dependency error with nginx 1.22.0 on Debian 10 (buster) #6

Open mbautista opened 1 year ago

mbautista commented 1 year ago

Hello @darylounet Thank you for this awesome repository :) I have a dependency problem trying to install libnginx-mod-brotli on Debian 10 buster. nginx version is 1.22.0 installed from nginx official repo. libnginx-mod-pagespeed from your other repo works well :) Do you have any idea how I could solve this ? Thank you very much for your help :) Mathieu.

$  curl -s https://packagecloud.io/install/repositories/DaryL/libnginx-mod-brotli-stable/script.deb.sh | sudo bash
$ apt install libnginx-mod-brotli
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 libnginx-mod-brotli : Dépend: nginx (= 1.20.2-1~buster)
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

$ nginx -v
nginx version: nginx/1.22.0

$ dpkg -l | grep nginx
ii  libnginx-mod-pagespeed          1.13.35.2+nginx-1.22.0-1~buster                                           amd64        ngx_pagespeed speeds up your site and reduces
ii  nginx                           1.22.0-1~buster                                                           amd64        high performance web server
darylounet commented 1 year ago

Hi @mbautista This is strange, as official NGiNX repository has removed Buster support since 1.24.0. Can you paste here the result of apt-cache policy nginx please ?

mbautista commented 1 year ago

Hello @darylounet You will find the output below. So I guess the solution is to upgrade to Debian 11 ? Thank you for your help :)

# apt-cache policy nginx
nginx:
  Installé : 1.22.0-1~buster
  Candidat : 1.22.0-1~buster
 Table de version :
 *** 1.22.0-1~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
        100 /var/lib/dpkg/status
     1.20.2-1~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
     1.20.1-1~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
     1.20.0-1~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
     1.18.0-2~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
     1.18.0-1~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
     1.16.1-1~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
     1.16.0-1~buster 500
        500 http://nginx.org/packages/debian buster/nginx amd64 Packages
     1.14.2-2+deb10u5 500
        500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
     1.14.2-2+deb10u4 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
darylounet commented 1 year ago

Sorry I looked too fast last night, I was tired... You're using libnginx-mod-pagespeed, which is deprecated and no longer builds with NGiNX 1.24.0. So if you want to keep pagespeed module, you have to stick with NGiNX 1.22.0, you should freeze the package with apt-mark hold. Then you can download and dpkg -i the brotli module with this exact version (and remove the packagecloud repository).

mbautista commented 1 year ago

Thank you very much for your help ! I will try your solution for 1.22. What a pity ngx_pagespeed is abandoned, we host hundreds of websites using this module... On the other hand we can't stop upgrading nginx, so sooner or later we will have to drop ngx_pagespeed. Thanks to you, I have a little time to search for an alternative so thank you very much again :) Mathieu.