![無法在 Xubuntu 16.04 上安裝 Inkscape 的依賴項 libmagick++](https://rvso.com/image/928575/%E7%84%A1%E6%B3%95%E5%9C%A8%20Xubuntu%2016.04%20%E4%B8%8A%E5%AE%89%E8%A3%9D%20Inkscape%20%E7%9A%84%E4%BE%9D%E8%B3%B4%E9%A0%85%20libmagick%2B%2B%20.png)
我正在嘗試(未成功)在 Xubuntu 16.04 上安裝 Inkscape。如果我sudo apt-get install inkscape
這樣做,我會得到:
sudo apt-get install inkscape
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.
inkscape : Depends: libmagick++-6.q16-5v5 (>= 8:6.8.9.9-7) but it is not going to be installed
Recommends: libimage-magick-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我嘗試簡單地安裝libmagick++
,但結果如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libmagick++-dev' for regex 'libmagick+'
Note, selecting 'libmagick++-6.q16-5' for regex 'libmagick+'
Note, selecting 'libmagick++-6.q16-6' for regex 'libmagick+'
Note, selecting 'libmagick++-6.q16-7' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.q16' for regex 'libmagick+'
Note, selecting 'libmagick++-6.defaultquantum-dev' for regex 'libmagick+'
Note, selecting 'libmagickwand-6.q16-2' for regex 'libmagick+'
Note, selecting 'libmagickwand-6.q16-3' for regex 'libmagick+'
Note, selecting 'libmagickwand-6-headers' for regex 'libmagick+'
Note, selecting 'libmagick++6-dev' for regex 'libmagick+'
Note, selecting 'libmagick9-dev' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.q16-1-extra' for regex 'libmagick+'
Note, selecting 'libmagick++-6-headers' for regex 'libmagick+'
Note, selecting 'graphicsmagick-libmagick-dev-compat' for regex 'libmagick+'
Note, selecting 'libmagickwand5' for regex 'libmagick+'
Note, selecting 'libmagickcore-extra' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.defaultquantum-dev' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.q16-2-extra' for regex 'libmagick+'
Note, selecting 'libmagickcore-6-headers' for regex 'libmagick+'
Note, selecting 'libmagickcore-6-arch-config' for regex 'libmagick+'
Note, selecting 'libmagickwand-6.defaultquantum-dev' for regex 'libmagick+'
Note, selecting 'libmagickwand-6.q16-dev' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.q16-2' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.q16-3' for regex 'libmagick+'
Note, selecting 'libmagick++9-dev' for regex 'libmagick+'
Note, selecting 'libmagickwand-dev' for regex 'libmagick+'
Note, selecting 'libmagick++-6.q16-5v5' for regex 'libmagick+'
Note, selecting 'libmagick++-6.q16-dev' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.q16-3-extra' for regex 'libmagick+'
Note, selecting 'libmagick-dev' for regex 'libmagick+'
Note, selecting 'libmagickcore-6.q16-dev' for regex 'libmagick+'
Note, selecting 'libmagick6-dev' for regex 'libmagick+'
Note, selecting 'libmagickcore-dev' for regex 'libmagick+'
Note, selecting 'libmagick++-6.q16-dev' instead of 'libmagick++-6.defaultquantum-dev'
Note, selecting 'libmagickcore-6.q16-dev' instead of 'libmagickcore-6.defaultquantum-dev'
Note, selecting 'libmagickwand-6.q16-dev' instead of 'libmagickwand-6.defaultquantum-dev'
Note, selecting 'graphicsmagick-libmagick-dev-compat' instead of 'libmagick-dev'
libmagick++-6-headers is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagick++-6-headers set to manually installed.
libmagick++-6.q16-dev is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagick++-6.q16-dev set to manually installed.
libmagickcore-6.q16-3 is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickcore-6.q16-3 set to manually installed.
libmagickwand-6-headers is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickwand-6-headers set to manually installed.
libmagickcore-6-arch-config is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickcore-6-arch-config set to manually installed.
libmagickwand-6.q16-dev is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickwand-6.q16-dev set to manually installed.
libmagick++-6.q16-7 is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagick++-6.q16-7 set to manually installed.
libmagickcore-6.q16-3-extra is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickcore-6.q16-3-extra set to manually installed.
libmagickwand-6.q16-3 is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickwand-6.q16-3 set to manually installed.
libmagickcore-6.q16-dev is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickcore-6.q16-dev set to manually installed.
libmagickcore-6-headers is already the newest version (8:6.9.7.4+dfsg-16xenial0).
libmagickcore-6-headers set to manually installed.
libmagick++-dev is already the newest version (8:6.9.7.4+dfsg-16xenial0).
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.
graphicsmagick-libmagick-dev-compat : Conflicts: libmagick++-dev
Conflicts: libmagick++-dev:i386
Conflicts: libmagickcore-dev but 8:6.8.9.9-7ubuntu5.15 is to be installed
Conflicts: libmagickcore-dev:i386
imagemagick-6-common : Breaks: libmagickcore-6.q16-2 (< 8:6.9.6.2+dfsg-3~) but 8:6.8.9.9-7ubuntu5.15 is to be installed
libmagickcore-6.q16-2 : Depends: imagemagick-common (= 8:6.8.9.9-7ubuntu5.15)
libmagickwand-6.q16-2 : Depends: imagemagick-common (= 8:6.8.9.9-7ubuntu5.15)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
我還嘗試從 PPA 安裝 Inkscape,結果相同。任何和所有的指示將不勝感激。我發現的類似問題都沒有這個問題。
非常感謝!
更新:
正如 N0rbert 所建議的,我已經運行sudo apt-get update
並重試sudo apt-get install inkscape
,但結果是相同的。另外:
apt-cache policy inkscape libmagick++-6.q16-5v5
inkscape:
Installed: (none)
Candidate: 0.91-7ubuntu2
Version table:
0.91-7ubuntu2 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libmagick++-6.q16-5v5:
Installed: (none)
Candidate: 8:6.8.9.9-7ubuntu5.15
Version table:
8:6.8.9.9-7ubuntu5.15 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
8:6.8.9.9-7ubuntu5 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
grep -ir "^deb" /etc/apt/ --include=*.list
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-updates universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu xenial partner
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list:deb http://archive.canonical.com/ xenial partner
/etc/apt/sources.list:deb http://qgis.org/debian xenial main
/etc/apt/sources.list:deb https://cloud.r-project.org//bin/linux/ubuntu xenial/
/etc/apt/sources.list:deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main
/etc/apt/sources.list:deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/
/etc/apt/sources.list.d/dropbox.list:deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu xenial main
/etc/apt/sources.list.d/webupd8team-ubuntu-java-xenial.list:deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
/etc/apt/sources.list.d/apandada1-ubuntu-brightness-controller-xenial.list:deb http://ppa.launchpad.net/apandada1/brightness-controller/ubuntu xenial main
/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main
/etc/apt/sources.list.d/mendeleydesktop.list:deb https://desktop-download.mendeley.com/download/apt stable main
/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-xenial.list:deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial main
/etc/apt/sources.list.d/otto-kesselgulasch-ubuntu-gimp-xenial.list:deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial main
/etc/apt/sources.list.d/spotify.list:deb http://repository.spotify.com stable non-free
如果更多資訊有用,請告訴我!