安装 Haskell 时,依赖项无法满足:ghc6(

安装 Haskell 时,依赖项无法满足:ghc6(

那是什么意思,我不能安装 haskell 吗?我刚刚升级到 Natty,是这个原因吗?

正如您在屏幕截图中看到的,我在软件中心遇到了这个问题:

在此处输入图片描述

The following packages have unmet dependencies:

haskell-platform: Depends: ghc6 (< 6.12.1+) but 6.12.3-1ubuntu7 is to be installed
                  Depends: libghc6-cgi-dev (>= 3001.1.7.2) but 3001.1.7.2-1build1 is to be installed
                  Depends: libghc6-fgl-dev (< 5.4.2.2+) but 5.4.2.2-2build2 is to be installed
                  Depends: libghc6-glut-dev (< 2.1.2.1+) but 2.1.2.1-1build1 is to be installed
                  Depends: libghc6-haskell-src-dev (< 1.0.1.3+) but 1.0.1.3-2build1 is to be installed
                  Depends: libghc6-html-dev (< 1.0.1.2+) but 1.0.1.2-3build2 is to be installed
                  Depends: libghc6-hunit-dev (< 1.2.2.1+) but 1.2.2.1-2build2 is to be installed
                  Depends: libghc6-mtl-dev (< 1.1.0.2+) but 1.1.0.2-10build2 is to be installed
                  Depends: libghc6-network-dev (< 2.2.1.7+) but 2.2.1.7-1build2 is to be installed
                  Depends: libghc6-opengl-dev (< 2.2.3.0+) but 2.2.3.0-2build2 is to be installed
                  Depends: libghc6-parallel-dev (< 2.2.0.1+) but 2.2.0.1-1build1 is to be installed
                  Depends: libghc6-parsec2-dev (< 2.1.0.1+) but 2.1.0.1-2build2 is to be installed
                  Depends: libghc6-quickcheck2-dev (< 2.1.0.3+) but 2.1.0.3-1build2 is to be installed
                  Depends: libghc6-regex-base-dev (< 0.93.1+) but 0.93.1-8build1 is to be installed
                  Depends: libghc6-regex-compat-dev (< 0.92+) but 0.92-6build2 is to be installed
                  Depends: libghc6-regex-posix-dev (< 0.94.1+) but 0.94.1-2build1 is to be installed
                  Depends: libghc6-stm-dev (< 2.1.1.2+) but 2.1.1.2-5build2 is to be installed
                  Depends: libghc6-xhtml-dev (>= 3000.2.0.1) but 3000.2.0.1-6build2 is to be installed
                  Depends: libghc6-zlib-dev (< 0.5.2.0+) but 0.5.2.0-4build2 is to be installed
                  Depends: libghc6-http-dev (>= 40000009) but 40000009-2build1 is to be installed
                  Depends: libghc6-deepseq-dev (< 1.1.0.0+) but 1.1.0.0-2build1 is to be installed
                  Depends: alex (< 2.3.3+) but 2.3.3-1 is to be installed
                  Depends: happy (< 1.18.4-2+) but 1.18.4-2 is to be installed
                  Depends: haddock but it is a virtual package

答案1

是的,这是因为 Natty 中引入了一个错误;这是错误 #742052

不幸的是,你没有太多办法可以轻松解决这个问题。

答案2

有一个解决方法对于这个问题:

使用vi并编辑文件/var/cache/apt/pkgcache.bin
查找字符串6.12.1+并将其更改为6.12.4+
保存更改,但sudo apt-get install haskell-platform在调用某些安装后脚本时仍然会失败,但似乎可用。

相关内容