I have mistakenly delete all contents from /var/lib/dpkg folder, now when i use ap-get update i got following issue,
apt-get update
Err:1 http://http.kali.org/kali kali-rolling InRelease
Could not resolve 'http.kali.org'
Traceback (most recent call last):
File "/usr/bin/debtags", line 694, in <module>
main()
File "/usr/bin/debtags", line 688, 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 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)
apt_pkg.Error: E:flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory), E:Could not open file - open (2: No such file or directory), E:Problem opening , E:The package lists or status file could not be parsed or opened.
Reading package lists... Error!
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Could not resolve 'http.kali.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11 (main/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Packages (non-free/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Translations (non-free/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11 (non-free/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11 (contrib/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/sources.list:1
E: Could not open file - open (2: No such file or directory)
E: Problem opening
E: The package lists or status file could not be parsed or opened.

and when i re-configure dpkg like dpkg --configure -a
i got the following error


dpkg: error: failed to open package info file '/var/lib/dpkg/status' for reading: No such file or directory

After each command i gotlock file in dpkg folder . *** !! is that
Is there any anyone who can get me out of this problem, all suggestion all appreciated