无法在 Ubuntu 18.10 - "unmet dependencies" 上安装 php7.2-ldap
Can't install php7.2-ldap on Ubuntu 18.10 - "unmet dependencies"
最近我正在使用 Laravel 和 LDAP(活动目录)身份验证。但是我无法安装php7.2-ldap,我也尝试在php7.3中安装但失败了。
目前我正在使用 ubuntu v18.10 和多个 php 版本。
我试过:
$ sudo apt-get install php7.2-ldap
得到这个输出
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:
php7.2-ldap : Depends: php7.2-common (= 7.2.19-0ubuntu0.18.10.1) but 7.2.20-1+ubuntu18.10.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
之前我也试过$ sudo apt-get update
和upgrade
。
7.2.20-1+ubuntu18.10.1+deb.sury.org+1 is to be installed
deb.sury.org
指的是 Ondřej Surý PPA,您需要按照以下步骤重新安装 php:
您需要安装 software-properties-common 软件包:
sudo apt-get install software-properties-common
添加 ondrej PPA 存储库并更新源:
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
安装 php 和所需的扩展:
sudo apt-get install php7.2-common php7.2-ldap
如何:https://pixelspress.com/how-to-install-php-7-2-on-ubuntu-16-04-18-04-18-10/
最近我正在使用 Laravel 和 LDAP(活动目录)身份验证。但是我无法安装php7.2-ldap,我也尝试在php7.3中安装但失败了。
目前我正在使用 ubuntu v18.10 和多个 php 版本。
我试过:
$ sudo apt-get install php7.2-ldap
得到这个输出
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:
php7.2-ldap : Depends: php7.2-common (= 7.2.19-0ubuntu0.18.10.1) but 7.2.20-1+ubuntu18.10.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
之前我也试过$ sudo apt-get update
和upgrade
。
7.2.20-1+ubuntu18.10.1+deb.sury.org+1 is to be installed
deb.sury.org
指的是 Ondřej Surý PPA,您需要按照以下步骤重新安装 php:
您需要安装 software-properties-common 软件包:
sudo apt-get install software-properties-common
添加 ondrej PPA 存储库并更新源:
sudo add-apt-repository -y ppa:ondrej/php sudo apt-get update
安装 php 和所需的扩展:
sudo apt-get install php7.2-common php7.2-ldap
如何:https://pixelspress.com/how-to-install-php-7-2-on-ubuntu-16-04-18-04-18-10/