I have a VM install of kali linux 2020.1 64 bit using xfce enviroment:

when i run sudo apt upgrade i get the following:
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  php-common python-cffi-backend python3-django python3-tables-lib
The following packages will be upgraded:
  python-pkg-resources
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
108 not fully installed or removed.
Need to get 0 B/182 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 300496 files and directories currently installed.)
Preparing to unpack .../python-pkg-resources_44.1.1-1_all.deb ...
ERROR: unknown command "/usr/bin/pyclean"
dpkg: warning: old python-pkg-resources package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
ERROR: unknown command "/usr/bin/pyclean"
dpkg: error processing archive /var/cache/apt/archives/python-pkg-resources_44.1.1-1_all.deb (--unpack):
 new python-pkg-resources package pre-removal script subprocess returned error exit status 1
ERROR: unknown command "/usr/bin/pycompile"
dpkg: error while cleaning up:
 installed python-pkg-resources package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-pkg-resources_44.1.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I can see it is failing to unpack python-pkg-resources_44.1.1-1_all.deb for some reason, so just to make sure I ran sudo gdebi python-pkg-resources_44.1.1-1_all.deb and got the same error:
Code:
Preparing to unpack .../python-pkg-resources_44.1.1-1_all.deb ...
ERROR: unknown command "/usr/bin/pyclean"
dpkg: warning: old python-pkg-resources package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
ERROR: unknown command "/usr/bin/pyclean"
dpkg: error processing archive /var/cache/apt/archives/python-pkg-resources_44.1.1-1_all.deb (--unpack):
 new python-pkg-resources package pre-removal script subprocess returned error exit status 1
ERROR: unknown command "/usr/bin/pycompile"
dpkg: error while cleaning up:
 installed python-pkg-resources package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-pkg-resources_44.1.1-1_all.deb
E:Sub-process /usr/bin/dpkg returned an error code (1)
Error during install: 'installArchives() failed'
I made sure to check that the python files pyclean and pycompile are both in the /usr/bin directory, other than that I have no idea what could be causing these errors. Any help is appreciated!