E: Package 'aptitude' has no installation candidate
E: Package 'aptitude' has no installation candidate
Sometimes, we are getting broken package error. Please can easily solve this problem.
Example:-
sudo apt-get install aptitude
If you got error like-
E: Package 'aptitude' has no installation candidate
Solution:-
sudo apt-get update
sudo apt-get install build-essential
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get install build-essential
sudo dpkg --configure -a
sudo apt-get -f install
None of those worked in my case. I then went to Ubuntu Software Center>Edit> Software Sources and made these changes.
After that the following commands did the job
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install aptitude
After that the following commands did the job
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install aptitude
Now, problem is solved.
Please follow the link below:-
Comments