Error when trying to upgrade or install applications parrot

Parrot version : Release 4.10 64-bit
kernel : Kernel Linux 5.9.0-2parrot1-amd64 x86_64
Mate : MATE 1.24.1
Whenever I try to upgrade my parrot os or even install an application , it would just be running until i get this dpkg error .

.
What should i do .Because i can’t format my drive again and install the os again.
I have try solving it with these solutions but none worked for me.
serverfault.com
itsfoss.com
askubuntu.com

it seems your npm package is broken

first of all you can do is reconfigure all the packages by doing
sudo dpkg --configure -a then do sudo apt install -f
if this doesn’t work
then you need to remove that npm package which is causing trouble
to do that you should remove it from /var/cache/apt/archives/npm_7.....deb replace this npm_7....deb with the name that is on line 5 from last
i.e. sudo rm /var/cache/apt/archives/npm_7.....deb replace this npm with that package
then you can do
sudo apt update and install any application or do sudo parrot-upgrade

Is not just npm .It was the only i was able to capture in the picture.php7.4 and some other libraries.

after running sudo dpkg --configure -a . this is what i get .

dpkg: error processing package python3-pyqt5.qtsvg (–configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Processing triggers for libc-bin (2.31-4) …
Processing triggers for initramfs-tools (0.139) …
Errors were encountered while processing:
php7.4-common
php7.4-readline
python3
php7.4-cli
python3-pyqt5.qtxmlpatterns
libpyside2-py3-5.15
python3-aioconsole
wifite
python3-multidict
python3-tz
pyqt5-dev-tools
python3-six
python3-pyqt5.qtwebsockets
php7.4
libreoffice-common
python3-pyside2.qtcore
python3-zmq
python3-dev
wfuzz
postgresql-common
python3-kiwisolver
python3-setproctitle:amd64
python3-pynvim
python3-wrapt
python3-click-plugins
python3-html5lib
python3-numpy
python3-urllib3
python3-neovim
python3-scapy
libreoffice-impress
python3-ospd
python3-pyqt5.qtwebchannel
python3-pyqt5.qtwebkit
php7.4-opcache
python3-msgpack
apt-listchanges
python3-uno
python3-maxminddb
python3-pyqt5.qtquick
libreoffice-core
libshiboken2-py3-5.15
python3-deprecated
python3-jupyter-core
python3-gst-1.0
python3-pyqt5
ospd-openvas
python3-webob
python3-pyqt5.qtpositioning
python3-pyqt5.qtsvg
Processing was halted because there were too many errors.

can you please do
sudo apt clean then do sudo apt install -f and see what happens

After running those two commands , this is what happens.

dpkg: error processing package python3-pyqt5.qtpositioning (–configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Processing triggers for libc-bin (2.31-4) …
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.40.0+dfsg-5) …
Processing triggers for libgdk-pixbuf2.0-0:i386 (2.40.0+dfsg-5) …
Errors were encountered while processing:
php7.4-common
openssh-server
php7.4-readline
python3
php7.4-cli
python3-pyqt5.qtxmlpatterns
libpyside2-py3-5.15
python3-aioconsole
wifite
python3-multidict
python3-tz
pyqt5-dev-tools
python3-six
python3-pyqt5.qtwebsockets
php7.4
libreoffice-common
python3-pyside2.qtcore
python3-zmq
python3-dev
wfuzz
postgresql-common
python3-kiwisolver
python3-setproctitle:amd64
python3-pynvim
python3-wrapt
python3-click-plugins
python3-html5lib
python3-numpy
python3-urllib3
python3-neovim
python3-scapy
libreoffice-impress
python3-ospd
python3-pyqt5.qtwebchannel
python3-pyqt5.qtwebkit
php7.4-opcache
python3-msgpack
apt-listchanges
python3-uno
python3-maxminddb
python3-pyqt5.qtquick
libreoffice-core
libshiboken2-py3-5.15
python3-deprecated
python3-jupyter-core
python3-gst-1.0
python3-pyqt5
ospd-openvas
python3-webob
python3-pyqt5.qtpositioning
Processing was halted because there were too many errors.
Scanning application launchers
Removing duplicate launchers from Debian
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

all those you have been given so far, i have used them before.some from askubuntu others from stackoverflow

is this what you have done?

i actually using the solution from your solution, and running the command again.
sudo dpkg --configure -a
Setting up wireshark-common (3.2.8-0.1) …
Setting up gir1.2-webkit2-4.0:amd64 (2.30.3-1) …
Setting up console-setup (1.199) …
Setting up libglx-mesa0:amd64 (20.2.3-1) …
Setting up libglx-mesa0:i386 (20.2.3-1) …
Setting up php7.4-common (7.4.11-1) …
dpkg: error processing package php7.4-common (–configure):
installed php7.4-common package post-installation script subprocess returned error exit status 10
Setting up openssh-server (1:8.4p1-2) …
dpkg: error processing package openssh-server (–configure):
installed openssh-server package post-installation script subprocess returned error exit status 10
Setting up apache2 (2.4.46-2) …

Configuration file ‘/etc/apache2/mods-available/deflate.conf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** deflate.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/apache2/mods-available/deflate.conf …

Configuration file ‘/etc/apache2/mods-available/mime.conf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** mime.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/apache2/mods-available/mime.conf …
insserv: warning: current start runlevel(s) (empty) of script apache2' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script apache2’ overrides LSB defaults (0 1 6).
insserv: Script ntp has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script ssh has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script sysstat has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: warning: current start runlevel(s) (empty) of script apache-htcacheclean' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script apache-htcacheclean’ overrides LSB defaults (0 1 6).
insserv: Script ntp has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script ssh has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
insserv: Script sysstat has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed.
apache2.service is a disabled or a static unit not running, not starting it.
apache-htcacheclean.service is a disabled or a static unit not running, not starting it.
dpkg: dependency problems prevent configuration of php7.4-readline:
php7.4-readline depends on php7.4-common (= 7.4.11-1); however:
Package php7.4-common is not configured yet.

dpkg: error processing package php7.4-readline (–configure):
dependency problems - leaving unconfigured
Setting up python3 (3.8.6-1) …
running python rtupdate hooks for python3.8…
dpkg-query: warning: files list file for package ‘backdoor-factory’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘backdoor-factory’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘bleachbit’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘bleachbit’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘changeme’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘changeme’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘commix’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘commix’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘dnsrecon’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘dnsrecon’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘eyewitness’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘eyewitness’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘fern-wifi-cracker’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘fern-wifi-cracker’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gdebi-core’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gdebi-core’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gdebi’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gdebi’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gtk-doc-tools’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gtk-doc-tools’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gufw’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘gufw’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘ibus’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘ibus’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘libglib2.0-dev-bin’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘libglib2.0-dev-bin’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘lightdm-settings’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘lightdm-settings’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘mate-menu’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘mate-menu’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘metagoofil’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘metagoofil’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘pgcli’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘pgcli’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘recon-ng’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘recon-ng’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘responder’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘responder’ missing; assuming package has no files currently installed
dpkg-query: package ‘set’ is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
Traceback (most recent call last):
File “/usr/bin/py3clean”, line 210, in
main()
File “/usr/bin/py3clean”, line 196, in main
pfiles = set(dpf.from_package(options.package))
File “/usr/share/python3/debpython/files.py”, line 53, in from_package
raise Exception(“cannot get content of %s” % package_name)
Exception: cannot get content of set
error running python rtupdate hook set
dpkg-query: warning: files list file for package ‘shellnoob’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘shellnoob’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘sipvicious’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘sipvicious’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘spiderfoot’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘spiderfoot’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘sqlmap’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘sqlmap’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘system-config-printer-common’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘system-config-printer-common’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘system-config-printer’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘system-config-printer’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘themole’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘themole’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘unicorn-magic’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘unicorn-magic’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘virtualbox’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘virtualbox’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘wig’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘wig’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘xsser’ missing; assuming package has no files currently installed
dpkg-query: warning: files list file for package ‘xsser’ missing; assuming package has no files currently installed
dpkg: error processing package python3 (–configure):
installed python3 package post-installation script subprocess returned error exit status 4
Setting up binutils (2.35.1-3) …
dpkg: dependency problems prevent configuration of php7.4-cli:
php7.4-cli depends on php7.4-common (= 7.4.11-1); however:
Package php7.4-common is not configured yet.
php7.4-cli depends on php7.4-readline; however:
Package php7.4-readline is not configured yet.

dpkg: error processing package php7.4-cli (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyqt5.qtxmlpatterns:
python3-pyqt5.qtxmlpatterns depends on python3 (>= 3~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-pyqt5.qtxmlpatterns (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpyside2-py3-5.15:
libpyside2-py3-5.15 depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package libpyside2-py3-5.15 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-aioconsole:
python3-aioconsole depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-aioconsole (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wifite:
wifite depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package wifite (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-multidict:
python3-multidict depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-multidict depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-multidict depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-multidict (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-tz:
python3-tz depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-tz (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pyqt5-dev-tools:
pyqt5-dev-tools depends on python3 (>= 3~); however:
Package python3 is not configured yet.
pyqt5-dev-tools depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package pyqt5-dev-tools (–configure):
dependency problems - leaving unconfigured
Setting up libinput-bin (1.16.4-1) …
Setting up tshark (3.2.8-0.1) …
dpkg: dependency problems prevent configuration of python3-six:
python3-six depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-six (–configure):
dependency problems - leaving unconfigured
Setting up libgcc-9-dev:amd64 (9.3.0-19) …
dpkg: dependency problems prevent configuration of python3-pyqt5.qtwebsockets:
python3-pyqt5.qtwebsockets depends on python3 (>= 3~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-pyqt5.qtwebsockets (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.4:
php7.4 depends on php7.4-common; however:
Package php7.4-common is not configured yet.

dpkg: error processing package php7.4 (–configure):
dependency problems - leaving unconfigured
Setting up libreoffice-common (1:7.0.3-4) …
dpkg: error processing package libreoffice-common (–configure):
installed libreoffice-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of python3-pyside2.qtcore:
python3-pyside2.qtcore depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-pyside2.qtcore depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-pyside2.qtcore depends on libpyside2-py3-5.15 (>= 5.15.0); however:
Package libpyside2-py3-5.15 is not configured yet.

dpkg: error processing package python3-pyside2.qtcore (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-zmq:
python3-zmq depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-zmq depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-zmq depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-zmq (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-dev:
python3-dev depends on python3 (= 3.8.6-1); however:
Package python3 is not configured yet.

dpkg: error processing package python3-dev (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wfuzz:
wfuzz depends on python3-six; however:
Package python3-six is not configured yet.
wfuzz depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package wfuzz (–configure):
dependency problems - leaving unconfigured
Setting up postgresql-common (223) …
supported-versions: WARNING! Unknown distribution: parrot
debian found in ID_LIKE, treating as Debian
supported-versions: WARNING: Unknown Debian release: 4.10
dpkg: error processing package postgresql-common (–configure):
installed postgresql-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of python3-kiwisolver:
python3-kiwisolver depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-kiwisolver depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-kiwisolver (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-setproctitle:amd64:
python3-setproctitle:amd64 depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-setproctitle:amd64 depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-setproctitle:amd64 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pynvim:
python3-pynvim depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-pynvim (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-wrapt:
python3-wrapt depends on python3-six; however:
Package python3-six is not configured yet.
python3-wrapt depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-wrapt depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-wrapt depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-wrapt (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-click-plugins:
python3-click-plugins depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-click-plugins (–configure):
dependency problems - leaving unconfigured
Setting up libgfapi0:amd64 (8.2-3+b1) …
dpkg: dependency problems prevent configuration of python3-html5lib:
python3-html5lib depends on python3-six (>= 1.9); however:
Package python3-six is not configured yet.
python3-html5lib depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-html5lib (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-numpy:
python3-numpy depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-numpy depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-numpy depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-numpy (–configure):
dependency problems - leaving unconfigured
Setting up node-typedarray-to-buffer (4.0.0-1) …
Setting up wireshark-qt (3.2.8-0.1) …
dpkg: dependency problems prevent configuration of python3-urllib3:
python3-urllib3 depends on python3:any; however:
Package python3 is not configured yet.
python3-urllib3 depends on python3-six; however:
Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (–configure):
dependency problems - leaving unconfigured
Setting up libwacom-bin (1.6-1) …
dpkg: dependency problems prevent configuration of python3-neovim:
python3-neovim depends on python3-pynvim; however:
Package python3-pynvim is not configured yet.

dpkg: error processing package python3-neovim (–configure):
dependency problems - leaving unconfigured
Setting up libgl1-mesa-glx:amd64 (20.2.3-1) …
dpkg: dependency problems prevent configuration of python3-scapy:
python3-scapy depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-scapy (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-impress:
libreoffice-impress depends on libreoffice-common (>= 1:7.0.0~alpha~); however:
Package libreoffice-common is not configured yet.

dpkg: error processing package libreoffice-impress (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-ospd:
python3-ospd depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-ospd (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyqt5.qtwebchannel:
python3-pyqt5.qtwebchannel depends on python3 (>= 3~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-pyqt5.qtwebchannel (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyqt5.qtwebkit:
python3-pyqt5.qtwebkit depends on python3 (>= 3~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-pyqt5.qtwebkit (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.4-opcache:
php7.4-opcache depends on php7.4-common (= 7.4.11-1); however:
Package php7.4-common is not configured yet.

dpkg: error processing package php7.4-opcache (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-msgpack:
python3-msgpack depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-msgpack depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-msgpack depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-msgpack (–configure):
dependency problems - leaving unconfigured
Setting up libgimp2.0:amd64 (2.10.22-2) …
dpkg: dependency problems prevent configuration of apt-listchanges:
apt-listchanges depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package apt-listchanges (–configure):
dependency problems - leaving unconfigured
Setting up exploitdb (20201128-0kali1) …
dpkg: dependency problems prevent configuration of python3-uno:
python3-uno depends on libreoffice-common (>= 1:7.0.0~alpha~); however:
Package libreoffice-common is not configured yet.
python3-uno depends on python3:any; however:
Package python3 is not configured yet.
python3-uno depends on python3 (<< 3.9); however:
Package python3 is not configured yet.
python3-uno depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-uno (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-maxminddb:
python3-maxminddb depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-maxminddb depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-maxminddb depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-maxminddb (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyqt5.qtquick:
python3-pyqt5.qtquick depends on python3 (>= 3~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-pyqt5.qtquick (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-core:
libreoffice-core depends on libreoffice-common (>> 1:7.0.3); however:
Package libreoffice-common is not configured yet.

dpkg: error processing package libreoffice-core (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libshiboken2-py3-5.15:
libshiboken2-py3-5.15 depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
libshiboken2-py3-5.15 depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
libshiboken2-py3-5.15 depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package libshiboken2-py3-5.15 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-deprecated:
python3-deprecated depends on python3-wrapt; however:
Package python3-wrapt is not configured yet.
python3-deprecated depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-deprecated (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-jupyter-core:
python3-jupyter-core depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-jupyter-core (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-gst-1.0:
python3-gst-1.0 depends on python3 (<< 3.10); however:
Package python3 is not configured yet.
python3-gst-1.0 depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-gst-1.0 depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-gst-1.0 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyqt5:
python3-pyqt5 depends on python3 (>= 3~); however:
Package python3 is not configured yet.
python3-pyqt5 depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-pyqt5 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ospd-openvas:
ospd-openvas depends on python3-ospd (>= 20.8.0); however:
Package python3-ospd is not configured yet.
ospd-openvas depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package ospd-openvas (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-webob:
python3-webob depends on python3; however:
Package python3 is not configured yet.
python3-webob depends on python3:any; however:
Package python3 is not configured yet.

dpkg: error processing package python3-webob (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyqt5.qtpositioning:
python3-pyqt5.qtpositioning depends on python3-pyqt5 (= 5.15.1+dfsg-2+b3); however:
Package python3-pyqt5 is not configured yet.
python3-pyqt5.qtpositioning depends on python3 (>= 3~); however:
Package python3 is not configured yet.

dpkg: error processing package python3-pyqt5.qtpositioning (–configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Processing triggers for libc-bin (2.31-4) …
Errors were encountered while processing:
php7.4-common
openssh-server
php7.4-readline
python3
php7.4-cli
python3-pyqt5.qtxmlpatterns
libpyside2-py3-5.15
python3-aioconsole
wifite
python3-multidict
python3-tz
pyqt5-dev-tools
python3-six
python3-pyqt5.qtwebsockets
php7.4
libreoffice-common
python3-pyside2.qtcore
python3-zmq
python3-dev
wfuzz
postgresql-common
python3-kiwisolver
python3-setproctitle:amd64
python3-pynvim
python3-wrapt
python3-click-plugins
python3-html5lib
python3-numpy
python3-urllib3
python3-neovim
python3-scapy
libreoffice-impress
python3-ospd
python3-pyqt5.qtwebchannel
python3-pyqt5.qtwebkit
php7.4-opcache
python3-msgpack
apt-listchanges
python3-uno
python3-maxminddb
python3-pyqt5.qtquick
libreoffice-core
libshiboken2-py3-5.15
python3-deprecated
python3-jupyter-core
python3-gst-1.0
python3-pyqt5
ospd-openvas
python3-webob
python3-pyqt5.qtpositioning
Processing was halted because there were too many errors.

can you do this?
for package in $(apt upgrade 2>&1 | grep "warning: files list file for package '" | grep -Po "[^'\n ]+'" | grep -Po "[^']+"); do apt install --reinstall "$package"; done
this is one line command