本文介绍了Ubuntu 18.04升级后,无法安装php7.2-curl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用do-release-upgrade -d

在升级过程中,我被告知某些软件包将被删除,其中包括:

During the upgrade I was informed that some packages would be removed, these included:

我可以没有问题地重新安装imagick和certbot,但是如果我尝试安装php7.2-curl,则会收到消息:

I could re-install imagick and certbot without issue, but if I try to install php7.2-curl I get the message:

# apt install php7.2-curl -y
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-curl : Depends: php7.2-common (= 7.2.3-1ubuntu1) but 7.2.4-1+ubuntu16.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.

我该如何纠正这种情况?

How can I correct the situation?

推荐答案

这可以为您节省:

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.2-fpm php7.2-gd php7.2-curl php7.2-mysql php7.2-dev php7.2-cli php7.2-common php7.2-mbstring php7.2-intl php7.2-zip php7.2-bcmath

然后sudo service apache2 restart

这篇关于Ubuntu 18.04升级后,无法安装php7.2-curl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 17:31