2

My Ubuntu doesn't have ImageMagick. I tried to install it from terminal as the instruction in answer. But it gives me error when I input command sudo apt-get install imagemagick php5-imagick. The error is

xinru@xinru-Alienware-13-R2:~$ sudo apt-get install imagemagick php5-imagick
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-imagick 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

E: Package 'php5-imagick' has no installation candidate

Anyone can help me with this problem, please. Thank you!

Tony Chen
  • 149
  • 3
  • 8

1 Answers1

4

In Ubuntu 16.04, the default PHP version is 7.x. Package php5-imagick is for PHP version 5.x. The correct package is php-imagick. So you have to:

sudo apt install imagemagick php-imagick
pa4080
  • 29,351
  • 10
  • 85
  • 161