Ruby on rails 如何在ubuntu 17.04上安装rmagick

Ruby on rails 如何在ubuntu 17.04上安装rmagick,ruby-on-rails,ubuntu,ubuntu-17.04,Ruby On Rails,Ubuntu,Ubuntu 17.04,不同版本的ubuntu都有解决方案,但没有一个能在17.04上运行 sudo apt get安装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 impossibl

不同版本的ubuntu都有解决方案,但没有一个能在17.04上运行

sudo apt get安装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,在那里它运行良好。

你可以在Ubuntu中搜索任何软件包,执行
sudo-apt-cache-search-libmagickwand-dev
,如果你找到你要找的软件包,那么就执行
sudo-apt-get-install-libmagickwand-dev
,安装它

安装所有未满足的依赖项应该可以解决这个问题,执行下面的命令升级任何缺少的包总是很有帮助的

sudo apt-get upgrade && sudo apt-get update

您应该可以安装<代码> RMAGICK < /代码>,没有任何问题。

您可以考虑,这实际上是一个替换的掉线,安装和资源使用都得到了改善。