The following packages have unmet dependencies:
libghc-haddock-library-dev : Conflicts: libghc-haddock-library-dev:i386 but 1.4.3-1 is to be installed
libghc-haddock-library-dev:i386 : Depends: libghc-base-dev-4.9.1.0-5a696:i386
Depends: libghc-bytestring-dev-0.10.8.1-a98c5:i386
Depends: libghc-deepseq-dev-1.4.2.0-ab902:i386
Depends: libghc-transformers-dev-0.5.2.0-e204f:i386
Conflicts: libghc-haddock-library-dev but 1.4.3-1 is to be installed
libghc-haddock-library-prof : Conflicts: libghc-haddock-library-prof:i386 but 1.4.3-1 is to be installed
libghc-haddock-library-prof:i386 : Depends: libghc-base-prof-4.9.1.0-5a696:i386
Depends: libghc-bytestring-prof-0.10.8.1-a98c5:i386
Depends: libghc-deepseq-prof-1.4.2.0-ab902:i386
Depends: libghc-transformers-prof-0.5.2.0-e204f:i386
Conflicts: libghc-haddock-library-prof but 1.4.3-1 is to be installed
librarian-puppet-simple : Conflicts: librarian-puppet but 3.0.0-1 is to be installed
E: Unable to correct problems, you have held broken packages.
解决方法: 利用aptiitude工具
首先安装:
sudo apt-get install aptitude
然后利用aptitude将不满足依赖的包install
例如我的报错第一个是libghc-haddock-library-dev
,就:
sudo aptitude install libghc-haddock-library-dev