V
V
Viktor Taran2022-04-12 11:05:43
ImageMagick
Viktor Taran, 2022-04-12 11:05:43

When installing php-imagick does not want to be put into any, what should I do?

OS
cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.7 LTS"
NAME="Ubuntu"
VERSION="16.04.7 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.7 LTS"
VERSION_ID="16.04"
HOME_URL="www.ubuntu.com"
SUPPORT_URL="help.ubuntu.com"
BUG_REPORT_URL="bugs.launchpad.net/ubuntu"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
[email protected]:~$


PHP

на сервере установлено несколько версий пхп
5.6 7.0 7.1 7.2 7.3
nginx +fpm
как ставили не совсем понятно в логах уже ничего нет, дефолнтая 7.1
Как и на сайте собственно
$ 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



sources.list
# newer versions of the distribution.
deb MS1.clouds.archive.ubuntu.com/ubuntu xenial main restricted
deb-src MS1.clouds.archive.ubuntu.com/ubuntu xenial main restricted

# # Major bug fix updates produced after the final release of the
# # distribution.
deb MS1.clouds.archive.ubuntu.com/ubuntu xenial-updates main restricted
deb-src MS1.clouds.archive.ubuntu.com/ubuntu xenial-updates main restricted

# # N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
# # team. Also, please note that software in universe WILL NOT receive any
# # review or updates from the Ubuntu security team.
deb MS1.clouds.archive.ubuntu.com/ubuntu xenial universe
deb-src MS1.clouds.archive.ubuntu.com/ubuntu xenial universe
deb MS1.clouds.archive.ubuntu.com/ubuntu xenial-updates universe
deb-src MS1.clouds.archive.ubuntu.com/ubuntu xenial-updates universe

# # N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
# # team, and may not be under a free licence. Please satisfy yourself as to
# # your rights to use the software. Also, please note that software in
# # multiverse WILL NOT receive any review or updates from the Ubuntu
# # security team.
deb MS1.clouds.archive.ubuntu.com/ubuntu xenial multiverse
deb-src MS1.clouds.archive.ubuntu.com/ubuntu xenial multiverse
deb MS1.clouds.archive.ubuntu.com/ubuntu xenial-updates multiverse
deb-src MS1.clouds.archive.ubuntu.com/ubuntu xenial-updates multiverse

# # N.B. software from this repository may not have been tested as
# # extensively as that contained in the main release, although it includes
# # newer versions of some applications which may provide useful features.
# # Also, please note that software in backports WILL NOT receive any review
# # or updates from the Ubuntu security team.
deb MS1.clouds.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src MS1.clouds.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse

deb security.ubuntu.com/ubuntu xenial-security main restricted
deb-src security.ubuntu.com/ubuntu xenial-security main restricted
deb security.ubuntu.com/ubuntu xenial-security universe
deb-src security.ubuntu.com/ubuntu xenial-security universe
deb security.ubuntu.com/ubuntu xenial-security multiverse
deb-src security.ubuntu.com/ubuntu xenial-security multiverse


/etc/apt/sources.list

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

2 answer(s)
A
Alexndrev, 2022-04-12
@shambler81

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

V
Viktor Taran, 2022-04-12
@shambler81

Threw shorter from the dev server imagick.so and it all worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question