View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006404||Kali Linux||[All Projects] Tool Upgrade||public||2020-05-22 11:02||2020-05-22 11:02|
|Priority||high||Severity||major||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0006404: cannot run apt-get autoremove|
|Description||I have recencntly upgraded my kali-linux (persistent) live usb to kali-linux 2020.2 and the upgrade was succesful but whenever i try to run apt-get autoremove i get this error:|
root@kali:~# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 79 not upgraded.
3 not fully installed or removed.
Need to get 0 B/50.0 MB of archives.
After this operation, 282 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 338100 files and directories currently installed.)
Removing linux-image-5.5.0-kali2-amd64 (5.5.17-1kali1) ...
run-parts: failed to exec /etc/kernel/postrm.d/initramfs-tools: Exec format error
run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.5.0-kali2-amd64 (--remove):
installed linux-image-5.5.0-kali2-amd64 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
and due to this i can't install any new package also.