由于未满足的依赖性,无法在Ubuntu 18上安装PHP7.2-dev

问题描述 投票:1回答:1

我有Ubuntu 18分配,但我需要安装php7.2-dev用于PECL扩展。

mvolchkov@ias-su:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:    18.04
Codename:   bionic

我尝试安装php7.2-dev:

mvolchkov@ias-su:~$ sudo apt-get install php7.2-dev
Unresolved packages:
 php7.2-dev : Depend on: libpcre3-dev (>= 2:8.35) but will not be installed
              Depend on: libssl-dev but will not be installed

但它取决于:libpcre3-dev 比我尝试安装libpcre3-dev,但得到以下错误:

mvolchkov@ias-su:~$ sudo apt-get install libpcre3-dev
 libpcre3-dev : Depend on: libpcre3 (= 2:8.39-9) но 2:8.41-4+ubuntu17.10.1+deb.sury.org+1 will be installed
E: Impossible to resolve problems, you have held packages.
ubuntu php-7.2
1个回答
-1
投票

我经历了同样的问题来解决这个问题:

sudo add-apt-repository ppa: ondrej/php -y
sudo apt-get update
sudo apt-get install php7.2-dev

如果它不起作用尝试强制它像这样:这个解决方案太过分了,因为你将强制安装未经身份验证的数据包

sudo apt-get install php7.2-dev  -y --all-not authenticated
© www.soinside.com 2019 - 2024. All rights reserved.