download nginx & make install it & fail

 

download nginx & make install it
wget http://nginx.org/download/nginx-1.18.0.tar.gz
tar -xf nginx-1.18.0.tar.gz


// apt-get install build-essential libpcre3-dev zlib1g-dev libssl-dev
(01) apt-get install build-essential
Error:
libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.17) but 2.35-0ubuntu3.6 is to be installed
(02) apt-get remove libc6
Error:
base-files : PreDepends: awk
Depends: libc6 (>= 2.34)
bsdutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libsystemd0 but it is not going to be installed
Recommends: bsdextrautils but it is not installable

(03) ni ma, why?
(04) try, " apt-get update , apt-get upgrade ,, apt-get clean , ", also cann't resolve

(05) It seems to be a dependency conflict,  But dependencies seem to be unchangeable

 

 

??如果以上步骤未能解决问题,可能需要手动检查并安装或降级到合适版本的依赖库。例如,可以尝试安装指定版本的 `libc6-dev` 和其他依赖库。
??修改的apt源与ubuntu系统的发行版本不一致导致的 //https://blog.csdn.net/a746742897/article/details/128907432

root@net11:/home/abc/soft11# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

 

>sodu vi /etc/apt/sources.list
focal => jammy
:wq

>apt update

>apt upgrade

 

A new version (/tmp/tmp.DhI8tyFjhD) of configuration file /etc/ssh/sshd_config is available, but
the version installed currently has been locally modified.

1. install the package maintainer's version

>1

Restarting services...
Daemons using outdated libraries
--------------------------------

>1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

>apt-get install build-essential

>y

>apt-get install libpcre3-dev

>y

>apt-get install -y zlib1g-dev

>apt-get install -y libssl-dev

>cd nginx-1.18.0

>./configure --add-module=/home/abc/soft11/nginx-rtmp-module-1.2.2

>make

Error:

rc/event/ngx_event_openssl.c:721:9: error: ‘ENGINE_by_id’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
721 | engine = ENGINE_by_id((char *) p);

 

posted @ 2025-03-02 10:05  以函  阅读(20)  评论(0)    收藏  举报