Problem Installing ImageMagick Ubuntu 14.04

  • Posted September 29, 2014

Hi Team,

I am trying to install ImageMagick On My droplet. By Running

sudo apt-get install imagemagick

But its failing and giving following errors.

Err trusty-updates/main libgs9-common all 9.10~dfsg-0ubuntu10.1
  404  Not Found [IP: 80]
Err trusty-updates/main libgs9 amd64 9.10~dfsg-0ubuntu10.1
  404  Not Found [IP: 80]
Err trusty-updates/main ghostscript amd64 9.10~dfsg-0ubuntu10.1
  404  Not Found [IP: 80]
E: Failed to fetch  404  Not Found [IP: 80]

E: Failed to fetch  404  Not Found [IP: 80]

E: Failed to fetch  404  Not Found [IP: 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Can you please look into this?


Hello, Try the following:

wget tar -xvzf ImageMagick-6.9.2-0.tar.gz cd ImageMagick-6.9.2-0 ./configure sudo make sudo make install

sudo apt-get update

Works for me ;)

correct! sudo apt-get update is your friend

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It looks like there has been an update to these packages since the last time you refreshed the package cache. Note the version number:

$ apt-cache policy ghostscript
  Installed: 9.10~dfsg-0ubuntu10.2
  Candidate: 9.10~dfsg-0ubuntu10.2
  Version table:
 *** 9.10~dfsg-0ubuntu10.2 0
        500 trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     9.10~dfsg-0ubuntu10 0
        500 trusty/main amd64 Packages

Running sudo apt-get update first should resolve the issue.

:~$ wget
:~$ tar -xvzf ImageMagick.tar.gz
:~$ sudo rm -rf ImageMagick.tar.gz
:~$ ls -d */ | grep '^ImageMagick*'
:~$ ## and then cd the directory
:~$ cd ImageMagick-7.0.11-14/
:~/ImageMagick-7.0.11-14$ ./configure
:~/ImageMagick-7.0.11-14$ sudo make
:~/ImageMagick-7.0.11-14$ sudo make install
:~$ ## for advanced user
:~/ImageMagick-7.0.11-14$ ./configure --with-modules
:~/ImageMagick-7.0.11-14$ sudo make
:~/ImageMagick-7.0.11-14$ sudo make install
:~/ImageMagick-7.0.11-14$ sudo ldconfig /usr/local/lib
:~/ImageMagick-7.0.11-14$ /usr/local/bin/convert logo: logo.gif
:~/ImageMagick-7.0.11-14$ sudo make check
:~/ImageMagick-7.0.11-14$ cd ~
:~$ sudo rm -rf ImageMagick-7.0.11-14
:~$ convert -version
Version: ImageMagick 7.0.11-13 Q32 x86_64 2021-05-16
Copyright: (C) 1999-2021 ImageMagick Studio LLC
Features: Cipher DPC HDRI Modules OpenMP(4.5) 
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc heic jbig jng jp2 jpeg jxl lcms lqr ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zip zlib

Source :


sudo apt-get update

Fixed the issue!


which version of Ubutnu are you using? If you don’t know, you can check it with the following command:

lsb_release -a

I think you are using an old Ubuntu release wich has reached the end-of-life point. You can find this date for your OS on the Ubuntu Wiki.