【问题标题】:HHVM cannot be installed: "packages have unmet dependencies:"无法安装 HHVM:“包具有未满足的依赖项:”
【发布时间】:2015-09-17 06:37:02
【问题描述】:

我在 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 包管理器显示没有损坏的包...我错过了什么?

【问题讨论】:

    标签: ubuntu nginx apt-get hhvm


    【解决方案1】:

    我通过安装 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
    

    【讨论】:

      【解决方案2】:

      这听起来很像添加了错误的 apt 存储库。特别是,

      Depends: librtmp1 but it is not installable
      

      HHVM depends on librtmp0 的可信赖版本(对于可信赖确实存在)。

      您是否确实运行了上述命令,包括$(lsb_release -sc) 调用?您是否不小心先为vivid 注入了一个,而apt 可能仍在接收它?

      您能否检查一下您的 apt 配置,以确保您的 deb 行是 trusty 而不是 vivid,并且只有一个 apt 行?

      【讨论】:

        猜你喜欢
        • 2022-07-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-01-08
        • 2017-08-21
        • 2017-11-17
        • 1970-01-01
        相关资源
        最近更新 更多