php安装问题_php安装错误

当我执行

apt update && apt upgrade

的时候,不小心选错了选项,导致PHP升级失败

Reading package lists... Done

Building dependency tree

Reading state information... Done

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

1 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Setting up libapache2-mod-php7.2 (7.2.7-1+ubuntu18.04.1+deb.sury.org+1) ...

ucfr: Attempt from package libapache2-mod-php7.2 to take /etc/php/7.2/apache2/php.ini away from package php7.2-fpm

ucfr: Aborting.

dpkg: error processing package libapache2-mod-php7.2 (--configure):

installed libapache2-mod-php7.2 package post-installation script subprocess returned error exit status 4

Errors were encountered while processing:

libapache2-mod-php7.2

E: Sub-process /usr/bin/dpkg returned an error code (1)

的时候,除了提示

而且后面再使用apt的时候也是这些提示

而且怎么弄都没用

并且执行

apt-get autoremove

apt autoremove

apt-get clean

apt clean

dpkg -l |grep ^rc|awk '{print $2}' |xargs dpkg -P

之后还是提示同样的错误,并且还多了以下的提示

dpkg: error processing package libapache2-mod-php7.2 (--configure):

installed libapache2-mod-php7.2 package post-installation script subprocess returned error exit status 4

Errors were encountered while processing:

libapache2-mod-php7.2

E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg: error: --purge needs at least one package name argument

Type dpkg --help for help about installing and deinstalling packages [*];

Use 'apt' or 'aptitude' for user-friendly package management;

Type dpkg -Dhelp for a list of dpkg debug flag values;

Type dpkg --force-help for a list of forcing options;

Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !

请问各位大佬们,我该怎么办

# uname -a

Linux dz6 4.4.0-122-generic #146-Ubuntu SMP Mon Apr 23 15:34:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

# lsb_release -a

LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch

Distributor ID: Ubuntu

Description: Ubuntu 18.04 LTS

Release: 18.04

Codename: bionic

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值