當我執行
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 '' |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
php安裝問題 php安裝錯誤
當我執行 apt update apt upgrade 的時候,不小心選錯了選項,導致php公升級失敗 reading package lists.done building dependency tree reading state information.done 0 upgraded,0 ne...
關於Tinyos安裝錯誤問題
問題 啟動cygwin時出現 bash r command not found make micaz sim 總是報 no such file or directory 停止。ake makerules 建目標 opt tinyos 2.x 的錯誤,請問怎麼解決,謝謝!當輸入命令 printenv ...
Ruby rails 安裝錯誤
在安裝ruby的gem的時候可能會出現下面的提示,按照給出的提示有兩種辦法可以解決,但是經過在網上的搜尋發現只有最後一種可行。所以特分享於此。error errorinstalling rails the atomic native gem requires installed build tool...