如何在Ubuntu上安装Aptitude


18

我试图使用以下命令安装MemCached:,sudo aptitude install memcached但出现以下错误:sudo: aptitude: command not found

经过研究,我发现Aptitude是一个用于处理文件,安装卸载程序的实用程序。我找到了几个解释什么是Aptitude的网页。但是,我没有印象,他们中的任何一个都首先解释了如何获得Aptitude。

Ubuntu是否已经安装了Aptitude,因此我只需要启用它即可。还是应该下载并安装它?

感谢您的帮助


sudo: aptitude: command not found不是命令。复制和粘贴错误?只需使用sudo apt-get install memecached
猛禽2014年

5
sudo apt-get install aptitude

@Raptor:我粘贴了错误的文本。现在,正确的文本在那里。

1
不同?更像您遵循的说明是不完整的。我也喜欢,aptitude但是默认工具是apt-get
2014年

Answers:


26

评论的答案(海报Osborn似乎没有AU帐户):

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 这在Ubuntu 16上不起作用
dylanh724 '18


0

您可能需要先更新源:

sudo apt-get update
sudo apt-get -y install aptitude
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.