What does Package <package> has no installation candidate mean?

1

Questions:

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

sudo apt-get install php5 php5-mcrypt

I get following error:

Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5' has no installation candidate

I have tried reinstalling but it does not help.

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

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...

0 0
2
...
0 0
3
E: Package 'sunjava6jdk' has no installation candidate

location: ubuntuforums.com - date: October 31, 2012
I know this question has been asked a multitude of times and I've read and tried the various suggestions and the frustration continues. When I tried Open JDK that worked but I am new at this and the tutorial I'm following is specific about using the Sun JDK. I have added the ppa because I know Ubuntu had some licensing issues but I still get this. Code: sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool [sudo] password for jim: Reading package lists... Done Building dependency tree Reading state information... Done Package sun-java6-jdk is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'sun-java6-jdk'...

0 0
4
...
0 0
5

Jacqueline Thomsen - 02/25/18 04:59 PM EST

Julia Manchester - 02/25/18 03:43 PM EST

Brett Samuels - 02/25/18 03:18 PM EST

Mallory Shelbourne - 02/25/18 03:11 PM EST

Brett Samuels - 02/25/18 02:24 PM EST

Rebecca Savransky - 02/25/18 02:03 PM EST

Luis Sanchez - 02/25/18 01:51 PM EST

Brett Samuels - 02/25/18 01:45 PM EST

Brett Samuels - 02/25/18 01:24 PM EST

Mallory Shelbourne - 02/25/18 01:07 PM EST

Brett Samuels - 02/25/18 12:48 PM EST

Mallory Shelbourne - 02/25/18 12:27 PM EST

Mallory Shelbourne - 02/25/18 11:54 AM EST

Luis Sanchez - 02/25/18 11:29 AM EST

Mallory Shelbourne - 02/25/18 11:28 AM EST

Brett Samuels - 02/25/18 11:05 AM EST

Mallory Shelbourne - 02/25/18 11:04 AM EST

Rebecca Savransky - 02/25/18 10:34 AM EST

Luis Sanchez - 02/25/18 10:31 AM EST

Brett Samuels - 02/25/18 10:29 AM EST

Joe Concha - 02/25/18 10:22 AM EST

Mallory...

0 0
6

MinGW Installation Notes

MinGW may have problems with paths containing spaces, and if not, usually other programs used with MinGW will experience problems with such paths. Thus, we strongly recommend that you do not install MinGW in any location with spaces in the path name reference. You should avoid installing into any directory or subdirectory having names like "Program Files" or "My Documents", etc.

No version numbering convention exists for MinGW as a whole. Each package has its own version number, and the installer version number does not correlate, in any way, with the version number of any individual package which it installs.

The preferred installation target directory is C:\MinGW

The preferred installation method is using the automated installer tool, as described below. While a manual installation is possible, we do not recommend it, unless you have a very old version of MS-Windows which is unable to run the graphical tool. Instructions for...

0 0