John Davidson

php - APT says 'package has no installation candidate' althought it shows it in apt list

0 comments
Message:


I am trying to install ZeroMQ extension for PHP using Docker image php:7.4-apache-buster.


The package is found when running apt list:


$ sudo apt update && apt list php-zmq outputs php-zmq/stable 1.1.3-9 amd64


It is not possible to install it however:


$ sudo apt install php-zmq outputs E: Package 'php-zmq' has no installation candidate


I have checked that the package is not already installed using apt list --installed php-zmq. Underlying libzmq5 library is present on the system.


I wonder how does apt list command work that it suggests packages which apt install is unable to install.


Thanks for any help.



My Answer:
"PHP (Hypertext Preprocessor) is a popular server-side scripting language used for web development. APT (Advanced Package Tool) is a package management system used in Debian-based Linux distributions to install, update, and remove software packages. It is used to manage PHP packages and dependencies on a Linux system."

Rate this post

5 of 5 based on 9873 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us