I'm trying to install Apache into Ubuntu Desktop 18.04.1, but retrieving the error: package apache2 has no installation candidate Any help, please? Thanks!
Asked
Active
Viewed 865 times
0
1 Answers
0
I think this command could help you:
echo 'deb http://security.ubuntu.com/ubuntu bionic-security main' >> /etc/apt/sources.list && sudo apt update && sudo apt install apache2
This command adds repository which contains package apache2 for ubuntu 18.04, updates your source list and installs apache2.

metallic
- 207
cat /etc/apt/sources.list
? – Kulfy Dec 20 '18 at 10:59