我正在尝试在我的 ubuntu 上安装 phpize 但每次都出现此错误。
我试过这个命令
apt install php7.0-dev
并且还使用了 sudo:
sudo apt install php7.0-dev
但它不再起作用了。
运行上述命令后,出现此错误。请帮帮我。
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.0-dev : Depends: libpcre3-dev but it is not going to be installed
Depends: php7.0-common (= 7.0.33-0ubuntu0.16.04.7) but 7.0.33-8+ubuntu16.04.1+deb.sury.org+1 is to be installed
Recommends: dh-php but it is not going to be installed
Recommends: pkg-php-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@rohit-System-Product-Name:/home/rohit# sudo apt install php7.0-dev
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.0-dev : Depends: libpcre3-dev but it is not going to be installed
Depends: php7.0-common (= 7.0.33-0ubuntu0.16.04.7) but 7.0.33-8+ubuntu16.04.1+deb.sury.org+1 is to be installed
Recommends: dh-php but it is not going to be installed
Recommends: pkg-php-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.