来自宇宙的 Trusty GHC 打破了 Trusty

来自宇宙的 Trusty GHC 打破了 Trusty

我想安装haskell 编译器 GHC,以及一些依赖它的软件包。(6.4 或更高版本)

所以我尝试:

$ sudo apt-get install ghc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ghc : Depends: libbsd-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这会破坏包管理器。因此我无法安装使用 GHC 通过 cabal 安装的库。

所以我这样做了sudo apt-get install -f,并修复了包管理器,但我仍然无法安装libbsd0libbsd-devghc

更新

$ sudo apt-cache policy ghc libbsd-dev
ghc:
  Installed: (none)
  Candidate: 7.6.3-10
  Version table:
     7.6.3-10 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
libbsd-dev:
  Installed: (none)
  Candidate: 0.6.0-2ubuntu1
  Version table:
     0.6.0-2ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

我的版本是:

$ lsb_release -d
Description:    Ubuntu 14.04.1 LTS

ghc 是否是受支持的包?

它位于包宇宙中,所以我认为它会被支持。

我如何安装这个支持的包?

答案1

我遇到了同样的问题,通过降级我的 libbsd0 解决了这个问题。

sudo apt-get install libbsd0=0.6.0-2ubuntu1

我的libbsd0版本0.7.0-2+deb.sury.org~trusty+1可能不兼容。

相关内容