ubuntu14.04サーバーを構築し作業をしているのですが、
ある時からaptを使用すると
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.14.1-0ubuntu3.29_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
と出てしまい解決方法を調べたのですが解決できておりません。
どなたか解決方法を教えていただけないでしょうか。
宜しくお願いいたします。
実行例
①sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
・
・
・
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.14.1-0ubuntu3.29_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@HISVServer:/home/dbcon# sudo apt-get --purge remove apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-cloud-tools-4.4.0-124-generic linux-lts-xenial-cloud-tools-4.4.0-124
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
apport*
0 upgraded, 0 newly installed, 1 to remove and 14 not upgraded.
41 not fully installed or removed.
After this operation, 1,323 kB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: error processing package apport (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
apport
E: Sub-process /usr/bin/dpkg returned an error code (1)
②sudo apt install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
・
・
・
/var/lib/dpkg/info/apport.prerm: 14: /var/lib/dpkg/info/apport.prerm: pyclean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 14: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/apport_2.14.1-0ubuntu3.29_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/apport.postinst: 13: /var/lib/dpkg/info/apport.postinst: pycompile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.14.1-0ubuntu3.29_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
回答2件
あなたの回答
tips
プレビュー