Install Imagemagick


#1

Hi,
I tried install ImageMagick in Ruby workspace by command:

$ sudo apt-get install imagemagick

I have this response:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package imagemagick is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

N: Ignoring ‘c9.list’ in directory ‘/etc/apt/sources.list.d/’ as it is not a regular file
E: Package ‘imagemagick’ has no installation candidate

What I should to to install Imagemagick correctly?


#2

You may need to update the repo list with sudo apt-get update before installing.


#3

I updated as you advised but it didn’ help.

sudo apt-get update makes response:

Hit h ttp://ppa.launchpad.net trusty InRelease
Hit h ttp://ppa.launchpad.net trusty InRelease
Ign h ttp://downloads-distro.mongodb.org dist InRelease
Hit h ttp://ppa.launchpad.net trusty/main amd64 Packages
Ign h ttp://toolbelt.heroku.com ./ InRelease
Hit h ttp://downloads-distro.mongodb.org dist Release.gpg
Hit h ttp://ppa.launchpad.net trusty/main i386 Packages
Hit h ttp://ppa.launchpad.net trusty/main amd64 Packages
Hit h ttp://ppa.launchpad.net trusty/main i386 Packages
Hit h ttp://downloads-distro.mongodb.org dist Release
Hit h ttp://toolbelt.heroku.com ./ Release.gpg
Hit h ttp://downloads-distro.mongodb.org dist/10gen amd64 Packages
Hit h ttp://toolbelt.heroku.com ./ Release
Hit h ttp://downloads-distro.mongodb.org dist/10gen i386 Packages
Hit h ttp://toolbelt.heroku.com ./ Packages
Reading package lists… Done
N: Ignoring ‘c9.list’ in directory ‘/etc/apt/sources.list.d/’ as it is not a regular file


#4

Update apt-get first, then try to install Imagemagick again.


#5

I’m getting exactly the error the OP got trying to install imagemagick and sudo apt-get update does not resolve it. I’ve also tried restarting the workspace. My workspace was started from Rails Tutorial template.


#6

Just wanted to mention, this did work for me. Don’t leave this page without trying.


#7

The rails tutorial template is based on the M. Hartl tutorial.

If your aim is to build a rails app using the guide there, then you should avoid starting a rails new app by tying the version to it. Begin with the Rails icon and not the Tutorial icon.


#8

Bumping this thread for future reference because I was experiencing this problem even after running the update command. If that still doesn’t work, try running this command:

sudo add-apt-repository main

Then update as usual

sudo apt-get update

Then try installing imagemagick again:

sudo apt-get install imagemagick


#9

This worked for me too

First
sudo apt-get update

Then
sudo apt-get install imagemagick


#10

It was helpful ! Worked for me.Thank you @BigChief45


#11

Worked for me. Thanks


#12

I’m working on a course using a Chromebook but this IDE is my main Dev setup. I ran into this problem after c9 became a part of AWS. I was prompted to use the following commands and it all worked fine for me.

First:
sudo yum update

Followed by:
sudo yum install ImageMagick

27%20PM


#13

Hi All,

Appears theres a new process when trying to install it.

If you just paste in the following code it will ask ‘Y/n’, insert Y, and it will automatically abort.

To install it you will need to insert it as followed :

sudo apt-get update

Then

sudo apt-get install imagemagick -y

This should solve it. To ensure type in : ‘which convert’, and if a reply comes up with a directory, it means it was successful.

Hope it helps.