I was updating my Kali Linux machine and when I run apt update it updates and says to upgrade but when I run apt upgrade it stucks on 11% and sometimes says to fix boken installation


┌──(root㉿localhost)-[~]
└─# sudo apt full-upgrade -y
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

┌──(root㉿localhost)-[~]
└─# sudo dpkg --configure -a
Processing triggers for desktop-file-utils (0.26-1) ...

┌──(root㉿localhost)-[~]
└─# sudo apt full-upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
desktop-base : Depends: kali-desktop-base but it is not installed
kali-desktop-core : Depends: kali-themes but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

┌──(root㉿localhost)-[~]
└─# sudo apt-get install desktop-base
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
desktop-base : Depends: kali-desktop-base but it is not going to be installed
kali-desktop-core : Depends: kali-themes but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

┌──(root㉿localhost)-[~]
└─# sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
kali-desktop-base kali-themes kali-themes-common
libpipewire-0.3-0 libpipewire-0.3-modules libspa-0.2-modules
libwireplumber-0.4-0 pipewire pipewire-bin pipewire-pulse
wireplumber
Suggested packages:
kali-wallpapers-2019.4 kali-wallpapers-2020.4
kali-wallpapers-2022 kali-wallpapers-legacy
libspa-0.2-bluetooth wireplumber-doc
The following NEW packages will be installed:
kali-desktop-base kali-themes libpipewire-0.3-modules
libwireplumber-0.4-0 pipewire pipewire-bin pipewire-pulse
wireplumber
The following packages will be upgraded:
kali-themes-common libpipewire-0.3-0 libspa-0.2-modules
3 upgraded, 8 newly installed, 0 to remove and 439 not upgraded.
1 not fully installed or removed.
Need to get 0 B/7600 kB of archives.
After this operation, 13.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 280085 files and directories currently installed.)
Preparing to unpack .../00-kali-themes-common_2023.2.2_all.deb ...
Unpacking kali-themes-common (2023.2.2) over (2023.1.2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-gXVc14/00-kali-themes-common_2023.2.2_all.deb (--unpack):
unable to stat './usr/share/icons/Flat-Remix-Blue-Dark/apps/scalable/ophcrack.svg' (which was about to be installed): Operation not permitted


Progress: [ 2%] [..........................................]