sudo apt-get update 実行時に dpkg エラーが発生する [重複]

sudo apt-get update 実行時に dpkg エラーが発生する [重複]
root@kali:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/587 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: error processing package tk8.6-blt2.5 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-tk:
 python-tk depends on tk8.6-blt2.5 (>= 2.5.3); however:
  Package tk8.6-blt2.5 is not configured yet.

dpkg: error processing package python-tk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of blt:
 blt depends on tk8.6-blt2.5 (= 2.5.3+dfsg-4); however:
  Package tk8.6-blt2.5 is not configured yet.

dpkg: error processing package blt (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tcpwatch-httpproxy:
 tcpwatch-httpproxy depends on python-tk; however:
  Package python-tk is not configured yet.

dpkg: error processing package tcpwatch-httpproxy (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-pil.imagetk:amd64:
 python-pil.imagetk:amd64 depends on python-tk (>= 2.7.7-2); however:
  Package python-tk is not configured yet.

dpkg: error processing package python-pil.imagetk:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 tk8.6-blt2.5
 python-tk
 blt
 tcpwatch-httpproxy
 python-pil.imagetk:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@kali:~# 

このエラーが発生するのはなぜですか?

ベストアンサー1

重要なエラーメッセージは次のとおりです。

dpkg:パッケージ処理中にエラーが発生しましたtk8.6-blt2.5--configure):パッケージの一貫性が非常に悪い状態です。構成を試みる前に再インストールする必要があります。

パッケージを再インストールする必要があります。

apt install --reinstall tk8.6-blt2.5

おすすめ記事