E Package Apache2 Has No Installation Candidate Dashboard

4/17/2019

Got error E: Package 'apache2' has no installation candidate while installing apache2 with sudo apt-get install apache2 on Ubuntu 17.10.Here is the message displayed on terminal.

Message after apt-cache policy apache2 command.

Message after egrep -v '^# ^ *$' /etc/apt/sources.list /etc/apt/sources.list.d/*.list command

How can I solve this issue?

Kiran Shahi
Kiran ShahiKiran Shahi

2 Answers

The main problem is missed /etc/apt/sources.list.You can recreate it with:

Then run

N0rbertN0rbert

Try sudo apt-get update and then sudo apt-get install apache2.I recommend installing the complete LAMP Stack using tasksel

sudo tasksel to launch itSelect LAMP server and install it.Hope that helps.

Pranal NarayanPranal Narayan

Not the answer you're looking for? Browse other questions tagged aptserverpackage-managementapache2 or ask your own question.

When i try to install php5 in Ubuntu 16.04 by using following code:

I get following error:

I have tried reinstalling but it does not help.

All this error was encountered after I updated my 15.10 Ubuntu to 16.04

Srijan KarkiSrijan Karki

7 Answers

Ubuntu 16.04 comes with PHP7 as the standard, so there are no PHP5 packages

However if you like you can add a PPA to get those packages anyways:

Remove all the stock php packages

List installed php packages with dpkg -l grep php awk '{print $2}' tr 'n' ' ' then remove unneeded packages with sudo aptitude purge your_packages_here or if you want to directly remove them all use :

Add the PPA

Install your PHP Version

You can install php5.6 modules too .

Verify your version

Based on https://askubuntu.com/a/756186/532957 (thanks @AhmedJerbi)

Jan 16, 2018 - Dilwale Dulhania Le Jayenge (1995) (Hindi) A young man and woman – both of Indian descent but born and raised in Britain – fall in love. Dilwale Dulhania Le Jayenge Mp4 Movie Download. July 1, 2017. Download Neverwinter Nights Diamond Edition Keygen. July 2, 2017. Install Office 97 Sr 2. Watch movie dilwale dulhania le jayenge. Dec 28, 2017 - Ddlj movie download 720p download link. Movievilla download filmywap 2016 movie 3gp mp4 full hd movies 1080p mkv 720p filmywap. 2 minDilwale Dulhania Le Jayenge (New Trailer) HD.mp4 full video song free download, Dilwale. Dilwale Dulhania Le Jayenge hd movie, Watch Dilwale. Download Dilwale Dulhania Le Jayenge (1995) 720p Hindi Mp4 Video Songs. Dilwale Dulhania Le Jayenge Movie - Starring Shah Rukh Khan & Kajol. Free Mp3 Dilwale Dulhania Le Jayenge Video Songs Hd Free Download mp3.

Community
Rodrigo StadlerRodrigo Stadler

You must use prefix 'php5.6-' instead of 'php5-' as in ubuntu 14.04 and olders:

Dong NguyenDong Nguyen

If you just want to install PHP no matter what version it is, try PHP7

Joe zhouJoe zhou
ErickyEricky

Currently, I am using Ubuntu 16.04 LTS.Me too was facing same problem while Fetching the Postgress Database values using Php so i resolved it by using the below commands.

Mine PHP version is 7.0, so i tried the below command.

apt-get install php-pgsql
Remember to restart Apache.

MD ShahrouqMD Shahrouq

I recently had this issue as well and solved it using the following command:

Vmware v center operations manager download. Mar 1, 2018 - Assigning a license key to vcops. Vmware vcenter server 5.1 license keygen. Download key generator for vmware vcenter operations manager.

php is now installed. I'm using Ubuntu 18.04.

LeanneLeanne
xereonxereon

Not the answer you're looking for? Browse other questions tagged phpubuntuaptdpkgubuntu-16.04 or ask your own question.

Comments are closed.