我在Ubuntu 14.04, 64位,我试图安装HHVM。我已经安装了Nginx。当我运行以下命令时:
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
sudo add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main"
sudo apt-get update
sudo apt-get install hhvm
得到如下结果:
hhvm : Depends: libgnutls-deb0-28 but it is not installable
Depends: libmemcached11 but it is not installable
Depends: librtmp1 but it is not installable
Depends: libmagickwand-6.q16-2 but it is not installable
我试着运行以下命令:
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
我已经清除了我的资源并重新创建了它们。Synaptic包管理器显示没有损坏的包…我错过了什么?
我通过安装Aptitude来解决这个问题,安装build-essential:
sudo apt-get install aptitude
sudo aptitude install build-essentials
然后安装一些我在一篇博客文章中找到的"必需品":
sudo apt-get install -y unzip vim git-core curl wget python-software-properties
重新安装nginx:
sudo add-apt-repository -y ppa:nginx/stable
sudo apt-get update
sudo apt-get install -y nginx
最后安装HHVM:
wget -0 - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-get add -
echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install -y hhvm
这听起来很像添加了错误的apt存储库。特别是,
Depends: librtmp1 but it is not installable
HHVM的可信版本依赖于librtmp0
(它确实存在于可信版本中)
您是否实际运行了上述命令,包括$(lsb_release -sc)
调用?你是不是不小心先给vivid
注射了一个,而apt
可能还在接它?
你能检查你的apt配置,以确保你有deb
行trusty
,而不是vivid
,只有一个apt
行?