Jul 22, 2015 Reading package lists Done Building dependency tree Reading state information Done Package libapache2-mod-fastcgi 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 ‘libapache2-mod-fastcgi’ has no installation.
E: Package has no installation candidate
Solutions/Answers:
Answer 1:
Looking at your sources.list file your problem may be that you are only using “Wheezy” {Debian/Raspian Version 7.x “OldStable”} sources but also have “jessie” {Debian/Raspian Version 8.x “Stable”} sources commented out – if you have previous had the latter uncommented you may have installed packages from the later version ones and then, when they were commented out again, you have versions installed that are later then the ones that are present in the older distribution.
You also have duplicate entries for the same source package repository:
deb-src http://archive.raspbian.org/raspbian/ wheezy main contrib non-free rpi
And very likely have two repositories for the SAME files:
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
mirrordirector.raspbian.org is a special (virtual?) repository, it will redirect to a, hopefully, geographically good server for you/your RPi making the request and normally, I believe, it is all that you need to specify.
To resolve situations like this you may find that instead of
apt-get
you could try using aptitude
in it’s interactive mode – as it can help to explore your system’s packages, it will show if you have multiple versions of packages available in your system, and it can allow you to choose which is installed manually – it keeps track of the interdependencies as you select and deselect them and will warn, if not prevent you, from putting together an incompatible set of inter-dependent packages.Answer 2:
Fix for postfix, ntpdate
After searching the web for a while, I found the correct software. There is a program called gdebi that installs the packages with the dependencies, so that will be installed when you run the following script/s alongside (hopefully) nap, ntpdate, and postfix. These programs are made for Jessie systems, so you have to have the latest raspbian installed for them to work. If for some reason you have an old version, let me know and I can work around it ?
This is a temporary fix. I will have to dig deeper to find the real reason this is happening. I also notice that nap still seems to work? Try running ‘sudo apt-get nap’ and see if that works.
Run the following commands:
I read through some of the comments and I noticed @goldilocks said to use armel, so if you get errors, try the following:
Answer 3:
This generally means the package exists, but it is not available from the Raspberry Pi application source.
Try running some of the following commands:
If you have no luck, I would reccomend searching on google for an ArmHF repository that contains those packages, and adding it using some instructions easily found online also.
Good luck!
Answer 4:
Today I ran into this problem because the power supply I was trying to use failed half way through a package update. This resulted in a corrupted package file in /var/lib/apt/lists that was half downloaded. I ended up getting the same “Package has no installation candidate” error for any package I didn’t already have installed. Usually in this case one would recommend just reinstalling, but since I had another raspbian distro installed that I could reference, I was able to compare the two /var/lib/apt/lists directories and see which file was half complete. In my case it was mirrordirector.raspbian.org_raspbian_dists_stretch_main_binary-armhf_Packages as it was only abound 2MB in size of the 60MB that is should be. I simply deleted that file and then ran apt-get update again.
I would only recommend this as a last resort as you could end up corrupting your system. For me, it saved me about an hour of time reinstalling.
Our Awesome Tools
References
Fix for postfix, ntpdate After searching the web for a while, I found the correct software. There is a program called gdebi that installs the packages with the dependencies, so that will be installed when you run the following script/s alongside (hopefully) nap, ntpdate, and postfix. These programs are made for Jessie systems, so you have to have the latest raspbian installed for them to work. If for some reason you have an old version, let me know and I can work around it:) This is a temporary fix. I will have to dig deeper to find the real reason this is happening. I also notice that nap still seems to work? Try running 'sudo apt-get nap' and see if that works.
Apr 24, 2009 - Here is the latest from upgrade or the spamassassin attempt: in searching the. E: Package spamassassin has no installation candidate. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'mysql-server' has no installation candidate E: Package 'libapache2-mod-auth-mysql' has no installation candidate E: Package 'php5-mysql' has no installation candidate.
Run the following commands: sudo apt-get install gdebi cd ~/Downloads wget wget sudo gdebi ntpdate_4.2.6.p5+dfsg-7+deb8u1_armhf.deb sudo gdebi postfix_2.11.3-1_armhf.deb I read through some of the comments and I noticed @goldilocks said to use armel, so if you get errors, try the following: sudo apt-get install gdebi cd ~/Downloads wget wget sudo gdebi ntpdate_4.2.6.p5+dfsg-7+deb8u1_armel.deb sudo gdebi postfix_2.11.3-1_armel.deb. ' armhf' is Debian's name for the ARMv7 architecture, which is usable on the Pi 2 or 3 (although those packages may or may not work within Raspbian). You can search for that stuff. If you aren't using a 2/3, or the package doesn't work/won't install, use armel, on which Raspbian is based. You'll see the various architectures listed on the second line of each search result hit next to the version number; all is synonymous with 'any' otherwise there will be a list such as 'amd64 arm64 armel armhf i386.' – Jun 26 '16 at 16:05.
Today I ran into this problem because the power supply I was trying to use failed half way through a package update. This resulted in a corrupted package file in /var/lib/apt/lists that was half downloaded.
I ended up getting the same 'Package has no installation candidate' error for any package I didn't already have installed. Usually in this case one would recommend just reinstalling, but since I had another raspbian distro installed that I could reference, I was able to compare the two /var/lib/apt/lists directories and see which file was half complete. In my case it was mirrordirector.raspbian.org_raspbian_dists_stretch_main_binary-armhf_Packages as it was only abound 2MB in size of the 60MB that is should be.
Apabila teman-teman tidak mengetahui cara mendownload, di kertashitam.com maka klik link di bawah ini. Download naruto shippuden 138 subtitle indonesia mkv.
I simply deleted that file and then ran apt-get update again. I would only recommend this as a last resort as you could end up corrupting your system. For me, it saved me about an hour of time reinstalling.