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 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgs9-common all 9.10~dfsg-0ubuntu10.1
404 Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgs9 amd64 9.10~dfsg-0ubuntu10.1
404 Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main ghostscript amd64 9.10~dfsg-0ubuntu10.1
404 Not Found [IP: 91.189.92.201 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9-common_9.10~dfsg-0ubuntu10.1_all.deb 404 Not Found [IP: 91.189.92.201 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9_9.10~dfsg-0ubuntu10.1_amd64.deb 404 Not Found [IP: 91.189.92.201 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/ghostscript_9.10~dfsg-0ubuntu10.1_amd64.deb 404 Not Found [IP: 91.189.92.201 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Can you please look into this?
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
ghostscript:
Installed: 9.10~dfsg-0ubuntu10.2
Candidate: 9.10~dfsg-0ubuntu10.2
Version table:
*** 9.10~dfsg-0ubuntu10.2 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
9.10~dfsg-0ubuntu10 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Running sudo apt-get update
first should resolve the issue.
:~$ wget https://download.imagemagick.org/ImageMagick/download/ImageMagick.tar.gz
:~$ tar -xvzf ImageMagick.tar.gz
:~$ sudo rm -rf ImageMagick.tar.gz
:~$ ls -d */ | grep '^ImageMagick*'
ImageMagick-7.0.11-14/
:~$ ## 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 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
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 : https://gist.github.com/zulhfreelancer/e104e4b330c8dbc6622d92b8cd525bf6#gistcomment-3769876
running
sudo apt-get update
Fixed the issue!
Hi,
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello, Try the following:
wget http://mirror.checkdomain.de/imagemagick/ImageMagick-6.9.2-0.tar.gz 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