I want to install SSL Certificate but I can’t install apache2.
when I type
sudo apt-get install apache2
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies: apache2 : Depends: apache2-bin (= 2.4.41-1+ubuntu16.04.1+deb.sury.org+5) but it is not installable E: Unable to correct problems, you have held broken packages.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Hello @cloud474606,
Have you tried updating your system? You’ll need to
Once it finishes, do
Then try to install Apache again. If it fails, you’ll need to go back to a state there all dependencies are satisfied:
Try to remove all Apache stuff:
Reinstall now all necessary dependencies:
Now you can give the Apache installation a new try. If the problem persists, please provide more information.
Regards, KDSys