我在Ubuntu 14.04,64bit,我正在尝试安装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 Package Manager显示没有破坏的软件包......我缺少什么?
答案 0 :(得分:1)
我通过安装Aptitude来解决这个问题,以安装build-essential:
sudo apt-get install aptitude
sudo aptitude install build-essentials
然后安装一些" 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
答案 1 :(得分:0)
这听起来非常像添加了错误的apt存储库。特别是,
Depends: librtmp1 but it is not installable
HHVM depends on librtmp0
的可靠版本(确实存在可信赖的版本)。
您是否实际运行了上述命令,包括$(lsb_release -sc)
来电?您是否意外地首先为vivid
注入一个apt
并且deb
可能仍然会选择它?
您是否可以检查自己的配置,确保trusty
行vivid
而不是apt
,并且只有pre
行?