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

Now, problem is solved.

Please follow the link below:-

http://musingsonsoftware.blogspot.com/2014/02/ubuntu-apt-get-package-has-no.html

 

Comments

Popular posts from this blog

CARRIERWAVE - UPLOAD ANY MEDIA (AUDIO , VIDEO AND IMAGE ) FILE IN RAILS

RAILS: UPLOADING PHOTOS VIA AMAZON S3 AND PAPERCLIP (UPLOADING FILES TO S3 IN RUBY WITH PAPERCLIP)

SELECT COUNTRY WITH STATE AND IT'S CITIES RAILS

psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

SEARCHING USING AJAX IN RAILS

UNINITIALIZED CONSTANT PAPERCLIP::STORAGE::S3::AWS

UPLOAD ANY MEDIA FILE IN RAILS USING PAPERCLIP

Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension.

HOW TO CALL RAILS API FROM SIMPLE HTML PAGE.