2017-11-13 3 views
0

php7.0をアンインストールしようとしますが、私は次のエラーを得た:はE:サブプロセスは/ usr/binに/ dpkgのがエラーコードを返された(1)

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Package 'php7.0' is not installed, so not removed 
The following packages were automatically installed and are no longer required: 
    linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic linux-headers-4.4.0-96 
    linux-headers-4.4.0-96-generic linux-image-4.4.0-92-generic linux-image-4.4.0-93-generic linux-image-4.4.0-96-generic 
    linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-93-generic linux-image-extra-4.4.0-96-generic 
    linux-signed-image-4.4.0-92-generic linux-signed-image-4.4.0-93-generic linux-signed-image-4.4.0-96-generic 
Use 'sudo apt autoremove' to remove them. 
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded. 
2 not fully installed or removed. 
After this operation, 0 B of additional disk space will be used. 
Setting up libapache2-mod-php7.0 (7.0.22-0ubuntu0.16.04.1) ... 
dpkg: error processing package libapache2-mod-php7.0 (--configure): 
subprocess installed post-installation script returned error exit status 1 
No apport report written because the error message indicates its a followup error from a previous failure. 
                              dpkg: dependency problems prevent configuration of libapache2-mod-php: 
libapache2-mod-php depends on libapache2-mod-php7.0; however: 
    Package libapache2-mod-php7.0 is not configured yet. 

dpkg: error processing package libapache2-mod-php (--configure): 
dependency problems - leaving unconfigured 
Errors were encountered while processing: 
libapache2-mod-php7.0 
libapache2-mod-php 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

私は、次のコマンドを使用:

sudo apt-get remove php7.0

私はインターネット全体を検索し、すべてのソリューションを試しましたが、適切な解決策はありませんでした。

答えて

1

これは主に、一部のパッケージまたは依存関係がパッケージマネージャーに詰まっていることが原因です。

次のコマンド(sudoで)試してみてください。次のコマンドを使用してphp7.0をアンインストールしてみてくださいそして、

apt-get purge 
apt-get --autoremove 
apt-get --autoclean 

を:

apt-get --purge remove php7.0 
+0

はまだ同じエラーが動作していないコマンドの上 –

+0

実行されたときに表示されます@ YatharthaJoshiエラーはlibapache phpモジュールに関連しているようです。それを無効にしてパージしてみてください – sobbe

+0

助けてくれてありがとう –

関連する問題