我刚刚启动了我的第一个EC2实例,并select了一个Ubuntu镜像,因为它有很好的文档。
不过,我正在尝试安装Redis软件包: http : //packages.ubuntu.com/lucid/redis-server
也许我没有正确地使用google或者只是愚蠢的,因为周末即将到来,但我会不断收到错误:
root@ip-10-229-123-199:~# sudo apt-get install redis-server Reading package lists... Done Building dependency tree... Done E: Couldn't find package redis-server
我假设我需要向Ubuntu添加一个存储库或其他东西来帮助它find我想要的包,但是我该怎么做呢? 我只能findgraphics化的指南,因为我使用的是SSH,所以没有太多的帮助。
编辑:从巴特(非常感谢你!)一些帮助后,这发生了,而不是:
root@ip-10-229-123-199:~# sudo apt-get install redis-server Reading package lists... Done Building dependency tree... Done Package redis-server 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 redis-server has no installation candidate
如果是在回购中,我会看看新立得。 系统 – >pipe理 – >突触包pipe理器。 在那里search(重载后更新软件包列表),看看软件包是否在列表中。 否则,对于不同的应用程序,您可能需要search一个.Deb文件来安装或谷歌“ubuntu”和包名称来查找安装说明。
如果EC2实例只是命令行,那么你可能应该从这里开始寻找,因为它具有到其他源的链接,以及从Ubuntu在线手册的命令行中的回购pipe理教程。
你应该看看/etc/apt/sources.list 。
一个彻底的教程可以在Ubuntu文档中find。
使用命令行的存储库 – Community Ubuntu Documentation