PDA

View Full Version : Not able to update Kali



stemmo
2023-06-01, 21:50
Hi all,
I installed Kali on my old HP desktop.
I have a dvd from which I installed 2016.1
Everything is ok but I'm not able to update the OS: every time I run a apt-get command I receive the following:



root@kali:~# apt-get update
Trovato:1 http://kali.download/kali kali-rolling InRelease
Traceback (most recent call last):
File "/usr/bin/debtags", line 699, in <module>
main()
File "/usr/bin/debtags", line 693, in main
sys.exit(action.main(args))
File "/usr/bin/debtags", line 637, in main
for pkg, tags in self.tags_from_apt():
File "/usr/bin/debtags", line 256, in tags_from_apt
cache = self.apt_cache
File "/usr/bin/debtags", line 241, in apt_cache
res = self._apt_cache = apt.Cache()
File "/usr/lib/python3/dist-packages/apt/cache.py", line 113, in __init__
self.open(progress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 164, in open
self._cache = apt_pkg.Cache(progress)
SystemError: E:Problem parsing dependency Optional, E:Error occurred while processing aspnetcore-runtime-6.0 (NewVersion2), E:Problem with MergeList /var/lib/apt/lists/http.kali.org_kali_dists_kali-rolling_main_binary-amd64_Packages, E:The package lists or status file could not be parsed or opened.
Lettura elenco dei pacchetti... Errore
E: Problem parsing dependency Optional
E: Si ? verificato un errore nell'elaborare aspnetcore-runtime-6.0 (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/http.kali.org_kali_dists_kali-rolling_main_binary-amd64_Packages
E: L'elenco dei pacchetti o il file di stato non pu? essere letto o aperto.


I found a lot of posts regarding this problem: I deleted the /var/lib/apt/lists/* files, I deleted the /var/lib/dpkg/status file .. nothing to do.

Any idea to solve?
Thanks