Answer the question
In order to leave comments, you need to log in
When installing php-imagick does not want to be put into any, what should I do?
$ php -v
PHP 7.1.33-34+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Feb 23 2021 15:05:35) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.33-34+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans
find /etc/apt/sources.list.d -type f -exec cat {} \; | grep -v "#"
deb http://repo.percona.com/prel/apt xenial main
deb-src http://repo.percona.com/prel/apt xenial main
deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
deb http://repo.percona.com/percona/apt xenial main
deb-src http://repo.percona.com/percona/apt xenial main
deb http://repo.percona.com/apt xenial main
deb-src http://repo.percona.com/apt xenial main
deb http://repo.percona.com/percona/apt xenial main
deb-src http://repo.percona.com/percona/apt xenial main
deb http://repo.percona.com/percona/apt xenial main
deb-src http://repo.percona.com/percona/apt xenial main
deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
deb http://repo.percona.com/prel/apt xenial main
deb-src http://repo.percona.com/prel/apt xenial main
deb https://esm.ubuntu.com/infra/ubuntu xenial-infra-security main
deb https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates main
deb http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main
deb http://repo.percona.com/apt xenial main
deb-src http://repo.percona.com/apt xenial main
deb http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main
deb https://deb.nodesource.com/node_9.x xenial main
deb-src https://deb.nodesource.com/node_9.x xenial main
deb https://deb.nodesource.com/node_9.x xenial main
deb-src https://deb.nodesource.com/node_9.x xenial main
deb https://esm.ubuntu.com/infra/ubuntu xenial-infra-security main
deb https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates main
sudo apt install php-imagick
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:
php-common : Breaks: php-imagick (< 3.4.0~rc6-2~) but 3.4.0~rc6-1ubuntu3 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Answer the question
In order to leave comments, you need to log in
I tested on the Linux kernel Ubuntu for Windows, try typing the following into the line one by one:
$ apt-get update
$ apt-get autoremove
$ apt-get install libmagickwand-dev
$ apt-get install imagemagick
And finally, the command itself, which stumbled
$sudo apt install php-imagick
Threw shorter from the dev server imagick.so and it all worked
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question