joglomedia / LEMPer

LEMPer Stack is terminal-based LEMP / LNMP ( Linux, Nginx, MariaDB, PostgreSQL, MongoDB, Redis, Memcache, PHP, Secure FTP ) auto installer and virtual host manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).
https://lemper.cloud/
GNU General Public License v3.0
208 stars 56 forks source link

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

Open IIXINGCHEN opened 5 months ago

IIXINGCHEN commented 5 months ago

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.

joglomedia commented 5 months ago

Could you post your system information?

IIXINGCHEN commented 5 months ago

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 commented 5 months ago

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?

joglomedia commented 5 months ago

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

IIXINGCHEN commented 5 months ago

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 commented 5 months ago

.env.zip

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

IIXINGCHEN commented 4 months ago

[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

joglomedia commented 4 months ago

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
IIXINGCHEN commented 4 months ago

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

joglomedia commented 4 months ago

@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:

IIXINGCHEN commented 4 months ago

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?

joglomedia commented 4 months ago

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 🙏🏻

IIXINGCHEN commented 4 months ago

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

joglomedia commented 3 months ago

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?

IIXINGCHEN commented 3 months ago
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:~# 
joglomedia commented 3 months ago
  • 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?

IIXINGCHEN commented 3 months ago

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