LEMPer icon indicating copy to clipboard operation
LEMPer copied to clipboard

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

Open IIXINGCHEN opened this issue 1 year ago • 17 comments
trafficstars

he following packages have unmet dependencies: libnginx-mod-brotli : PreDepends: libnginx-mod-http-brotli-filter but it is not going to be installed E: Unable to correct problems, you have held broken packages. Error: Failure running 'apt-get install -q -y nginx-core libnginx-mod-brotli libnginx-mod-http-cache-purge libnginx-mod-http-fancyindex libmaxminddb0 libmaxminddb-dev libnginx-mod-http-geoip libnginx-mod-stream-geoip libnginx-mod-http-headers-more-filter libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream', exiting.

IIXINGCHEN avatar Apr 06 '24 06:04 IIXINGCHEN

Could you post your system information?

joglomedia avatar Apr 06 '24 13:04 joglomedia

System information query

Hostname: localhost Operator: AS45090 Shenzhen Tencent Computer Systems Company Limited

System version: Debian GNU/Linux 12 (bookworm) Linux version: 6.1.0-18-amd64

CPU Architecture: x86_64 CPU Model: Intel(R) Xeon(R) Platinum 8361HC CPU @ 2.60GHz Number of CPU cores: 2

CPU Usage: 0.0% Physical Memory: 1193.15/1838.98 MB (64.88%) Virtual Memory: 356MB/2047MB (17%) Hard Disk Occupancy: 13G/50G (26%)

Total received: 3.29 GB Total sent: 1.94 GB

Network congestion algorithm: cubic fq_codel

Public IPv4 address: Public IPv6 address:

Location: CN Shenzhen System Time: 2024-04-07 12:56 PM


发件人: Edi Septriyanto @.> 发送时间: 2024年4月6日 21:52 收件人: joglomedia/LEMPer @.> 抄送: IIXINGCHEN @.>; Author @.> 主题: Re: [joglomedia/LEMPer] E: Unable to correct problems, you have held broken packages (Issue #163)

Could you post your system information?

― Reply to this email directly, view it on GitHubhttps://github.com/joglomedia/LEMPer/issues/163#issuecomment-2041089061, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEPBIE5VWF36ORL7OXKRQ7DY3742FAVCNFSM6AAAAABF2FZRBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGA4DSMBWGE. You are receiving this because you authored the thread.Message ID: @.***>

IIXINGCHEN avatar Apr 07 '24 04:04 IIXINGCHEN

Hello, I use a lot of system versions here, whether it is the development environment mode, or the production environment mode, the installation error, Debian GNU/Linux 12, or Debian GNU/Linux 11, are not installed normally, I also use Chinese machines, Japanese machines, the United States are similar problems. What do you need to do about it?

IIXINGCHEN avatar Apr 07 '24 05:04 IIXINGCHEN

Hello, I use a lot of system versions here, whether it is the development environment mode, or the production environment mode, the installation error, Debian GNU/Linux 12, or Debian GNU/Linux 11, are not installed normally, I also use Chinese machines, Japanese machines, the United States are similar problems. What do you need to do about it?

Could you post your .env file? So, I can re-produce the issue

joglomedia avatar Apr 12 '24 09:04 joglomedia

Hello, I have in the development environment, try to rename the .env file directly, but it can't be installed normally, or in the production environment, according to the document modified the production environment, server IP, hostname, for the corresponding DNS resolution ip, but they can't be installed normally.

.env.zip

IIXINGCHEN avatar Apr 13 '24 01:04 IIXINGCHEN

.env.zip

Hello,This default doesn't modify other parameters.,Only modify the mailbox can't be installed correctly.。

IIXINGCHEN avatar Apr 13 '24 01:04 IIXINGCHEN

[MariaDB (MySQL drop-in replacement) Installation] Adding MariaDB repository... [info] Skipping OS detection and using OS type 'ubuntu' and version 'jammy' as given on the command line [info] Checking for script prerequisites. [error] Problem encountered while trying to verify the MariaDB Server version: curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to storage.googleapis.com:443
The latest MariaDB Server versions are: 10.4.33 10.5.24 10.6.17 10.11.7 11.0.5 11.1.4 11.2.3 11.3.2 11.4.1

     More information on MariaDB releases is available at:
         https://mariadb.com/kb/en/release-notes/

Error: Failure running 'bash /tmp/lemper/mariadb_repo_setup --mariadb-server-version=mariadb-11.1 --os-type=ubuntu --os-version=jammy', exiting.

E: Package 'libmariadbclient18' has no installation candidate

E: Unable to locate package mariadb-client-core E: Unable to locate package mariadb-server-core

IIXINGCHEN avatar Apr 19 '24 11:04 IIXINGCHEN

curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to storage.googleapis.com:443

It seems your server connection to MariaDB repository failed

curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to storage.googleapis.com:443

joglomedia avatar May 02 '24 06:05 joglomedia

Is it possible to optimize the installation speed of servers in China, which is intermittent and disconnected?

IIXINGCHEN avatar May 02 '24 14:05 IIXINGCHEN

@IIXINGCHEN Fortunately MariaDB have repo mirrors, try to use China mirror server

I have updated the script installer, clone this repo and checkout to 2.x.x branch copy the .env.dist to .env, at line MYSQL_REPO_MIRROR_URL="" fill with mirror url

You can get the MariaDB mirror lists here https://mirmon.mariadb.org/ There are few from China mirrors, pick it one. For example:

  • https://mirrors.tuna.tsinghua.edu.cn/mariadb/
  • https://mirrors.aliyun.com/mariadb/

joglomedia avatar May 03 '24 02:05 joglomedia

Hello, thank you very much for your help, you have dealt with these problems correctly, I would like to ask, nginx module, can you add it yourself?

IIXINGCHEN avatar May 05 '24 09:05 IIXINGCHEN

Hello, thank you very much for your help, you have dealt with these problems correctly, I would like to ask, nginx module, can you add it yourself?

Hi, unfortunately I am using a 3rd party Nginx repo, supported module available here: https://deb.myguard.nl/nginx-modules/.

But, not all modules are included on the LEMPer stack installer 🙏🏻

joglomedia avatar May 08 '24 16:05 joglomedia

Hello, if I replace the nginx source address with https://n.wtf/ can I install it normally?

IIXINGCHEN avatar May 13 '24 13:05 IIXINGCHEN

Hello, if I replace the nginx source address with https://n.wtf/ can I install it normally?

No, we should modify the code first. What is the benefit of using this repository?

joglomedia avatar May 25 '24 15:05 joglomedia

  • Okay, thanks, I hope this problem can be fixed, thanks!
r@ms:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
r@ms:~# nginx -s reload
2024/05/26 02:20:40 [notice] 340617#340617: signal process started
r@ms:~# pkill -9 nginx
r@ms:~# nginx -c /etc/nginx/nginx.conf
r@ms:~# 

IIXINGCHEN avatar May 26 '24 02:05 IIXINGCHEN

  • Okay, thanks, I hope this problem can be fixed, thanks!
r@ms:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
r@ms:~# nginx -s reload
2024/05/26 02:20:40 [notice] 340617#340617: signal process started
r@ms:~# pkill -9 nginx
r@ms:~# nginx -c /etc/nginx/nginx.conf
r@ms:~# 

This is notice informing that Nginx process started, is there any specific issue? can you access the http web?

joglomedia avatar May 26 '24 16:05 joglomedia

OK, I'LL TRY IT AND SEE IF I CAN ACCESS THE WEB NORMALLY, THANKS

IIXINGCHEN avatar May 27 '24 01:05 IIXINGCHEN