Installing rmagick on Ubuntu 有不同版本的ubuntu的解决方案,但没有一个在17.04上工作?
sudo apt-get install libmagickwand-dev
给出了
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:
libmagickwand-dev : Depends: imagemagick-6-common (= 8:6.9.7.4+dfsg-3ubuntu1) but 8:6.9.7.4+dfsg-3ubuntu1.2 is to be installed
Depends: libmagickwand-6.q16-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
无法找到任何解决方案。更新到Ubuntu到17.10,它工作正常。
答案 0 :(得分:2)
您可以搜索ubuntu中执行sudo apt-cache search libmagickwand-dev
的任何软件包,如果找到了您要查找的软件包,请安装sudo apt-get install libmagickwand-dev
,
安装所有未满足的依赖项应解决问题,并且执行以下命令以升级任何缺少的包总是有帮助的
sudo apt-get upgrade && sudo apt-get update
在此之后,您应该可以安装rmagick
而不会出现任何问题。