16

I was trying to install MemCached using this command: sudo aptitude install memcached, but I got the following error: sudo: aptitude: command not found.

After researching, I found out that Aptitude is an utility program to manipulate files, install out uninstall programs. I found several web pages explaining what Aptitude. However, I don't have the impression that any of them explains how to get Aptitude in the first place.

Is Aptitude already in Ubuntu so that I just need to enable it. Or should I download and install it?

Thanks for helping

  • sudo: aptitude: command not found is not a command. Copy & paste error? Just use sudo apt-get install memecached. – Raptor Sep 18 '14 at 2:14
  • 5
    sudo apt-get install aptitude – OSborn Sep 18 '14 at 2:16
  • @Raptor: I pasted the wrong text. Now,the right text it there. – Richard77 Sep 18 '14 at 2:21
  • 1
    Different? More like the instructions you are following are incomplete. I prefer aptitude too but the default tool is apt-get. – tripleee Sep 18 '14 at 3:00
25

Answer from the comments (poster Osborn doesn't seem to have an AU account):

sudo apt-get install aptitude
  • 1
    Reading package lists... Done Building dependency tree Reading state information... Done Package aptitude 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 'aptitude' has no installation candidate This doesn't work on Ubuntu 16 – dylanh724 Nov 11 '18 at 5:18
  • 1
    @dylanh724 askubuntu.com/a/378565/158442 – muru Nov 12 '18 at 4:59
0

You may need to update your sources first:

sudo apt-get update
sudo apt-get -y install aptitude
New contributor
Leons is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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