我想在我的Ubuntu 12.04 LTS服务器上安装特定版本的sphinx。 我正在使用厨师,但我认为这是偶然的,我的问题。
我知道一般人可以这样做:
apt-get install some_package=version
但是,我似乎无法find正确的版本号/名称为狮身人面像2.2.4。 我已经尝试了以下内容:
2.2.4 2.2.4-4699-0ubuntu10 2.2.4-4699-0ubuntu10_amd64
Version '2.2.4-4699-0ubuntu10' for 'sphinxsearch' was not found (或类似) Version '2.2.4-4699-0ubuntu10' for 'sphinxsearch' was not found 。
你可以看到这里列出的软件包。 我已经添加了PPA并进行了更新。
我究竟做错了什么?
啊,原来joinPPA失败了,所以没有包。
添加PPA失败,因为add-apt-repository命令不可用。 这是通过首先apt-get install python-software-properties 。
这是完整的解决scheme:
apt-get install python-software-properties add-apt-repository -y ppa:builds/sphinxsearch-daily apt-get -y update # inspect the available packages apt-cache policy sphinxsearch apt-get install -y sphinxsearch=2.2.4-4699-0ubuntu10