Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IIXINGCHEN opened this issue Apr 6, 2024 · 17 comments
Open

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

IIXINGCHEN opened this issue Apr 6, 2024 · 17 comments
Assignees

Comments

@IIXINGCHEN
Copy link

IIXINGCHEN commented Apr 6, 2024

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 IIXINGCHEN changed the title 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. E: Unable to correct problems, you have held broken packages Apr 6, 2024
@joglomedia
Copy link
Owner

Could you post your system information?

@IIXINGCHEN
Copy link
Author

IIXINGCHEN commented Apr 7, 2024 via email

@IIXINGCHEN
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

IIXINGCHEN commented Apr 13, 2024

.env.zip

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

@IIXINGCHEN
Copy link
Author

IIXINGCHEN commented Apr 19, 2024

[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
Copy link
Owner

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
Copy link
Author

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

@joglomedia
Copy link
Owner

joglomedia commented May 3, 2024

@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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

@joglomedia
Copy link
Owner

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
Copy link
Author

IIXINGCHEN commented May 26, 2024

  • 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:~# 

@joglomedia
Copy link
Owner

  • 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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants