LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt_pkg.Error: E:The package needs to be reinstalled, but I can't find an archive for it. Reading package lists... Done (https://www.linuxquestions.org/questions/linux-newbie-8/apt_pkg-error-e-the-package-needs-to-be-reinstalled-but-i-can%27t-find-an-archive-for-it-reading-package-lists-done-4175658947/)

theluckygupta 08-11-2019 03:05 AM

apt_pkg.Error: E:The package needs to be reinstalled, but I can't find an archive for it. Reading package lists... Done
 
root@kali:~# sudo apt-get update
Hit:1 http://old.kali.org/kali moto InRelease
Traceback (most recent call last):
File "/usr/bin/debtags", line 700, in <module>
main()
File "/usr/bin/debtags", line 694, in main
sys.exit(action.main(args))
File "/usr/bin/debtags", line 632, 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 166, in __init__
self.open(progress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 227, in open
self._depcache = apt_pkg.DepCache(self._cache)
apt_pkg.Error: E:The package libqt4-xmlpatterns needs to be reinstalled, but I can't find an archive for it.
Reading package lists... Done

ondoho 08-11-2019 08:37 AM

Quote:

Originally Posted by theluckygupta (Post 6023849)
root@kali:~# sudo apt-get update

You don't need sudo when you're already root.

Quote:

Originally Posted by theluckygupta (Post 6023849)
apt_pkg.Error: E:The package libqt4-xmlpatterns needs to be reinstalled, but I can't find an archive for it.

then locate the package from kali repos, download it, and install it manually with 'dpkg -i ....'
But I doubt it'll solve your problem(s).

also see this please:
Quote:

Is Kali Linux Right For You?

As the distribution’s developers, you might expect us to recommend that everyone
should be using Kali Linux. The fact of the matter is, however, that Kali is a
Linux distribution specifically geared towards professional penetration testers
and security specialists, and given its unique nature, it is NOT a recommended
distribution if you’re unfamiliar with Linux or are looking for a general-purpose
Linux desktop distribution for development, web design, gaming, etc.

Even for experienced Linux users, Kali can pose some challenges.

(Source)

snowday 08-11-2019 08:52 AM

Kali Linux Moto is "end of life" and unsupported since 2015:

https://www.kali.org/news/kali-moto-eol/

I recommend to discontinue Kali Moto and use a currently-supported Linux distribution instead. :)


All times are GMT -5. The time now is 03:18 AM.