How to recover from a corrupt dpkg status file?
So, to recover from a corruption, you should be able to do the following: 1. Make a backup of the corrupt status file: 2. Copy an recent dpkg status file into place from either of the sources above: 3. Then run apt-get update: That should do it. I was able to fix this problem by removing the packages which had corrupted entries in the status file.
How to recreate / var / lib / dpkg / status?
/var/lib/dpkg/available is built from data downloaded from the Internet. apt-get update should rebuild it. /var/lib/dpkg/info contains files that ship with Debian packages. You can restore these files simply by reinstalling the packages.
Is there a way to recreate dpkg in Apt?
Until you do so, you’ll be unable to use dpkg (and APT, etc.). Other than that, the system should continue to function. You can’t “recreate” /var/lib/dpkg/status in the sense of just running a command and the file magically appears.
How to get rid of corrupt package in Ubuntu?
Locate the corrupt package, and remove the whole block of information about it and save the file. You can delete the lock file with the following command:
What is the error code for the dpkg error?
I thought maybe it was the hard disk, but a disk check gave me a clean bill of health. dpkg: unrecoverable fatal error, aborting: reading files list for package ‘linux-headers-3.16.0-31’: Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install.
How to fix dpkg error [ 2 ] in Apt?
[Solution] How to Fix Dpkg 1 pkexec gedit /var/lib/dpkg/status 2 Search for the offending package by name and remove its entry. 3 Save the file and exit gedit. 4 run sudo dpkg –configure -a 5 run sudo apt-get -f install just in case. 6 Continue on if there are no errors. See More….
How to fix Cydia dpkg was interrupted error-4 methods?
2) Launch the iFile application from apps drawer and tap the HOME button from bottom bar. 3) tap the back button from top-left corner to open up “var” folder. 4) now search and open “lib” folder > then “dpkg” folder. 5) From inside the dpkg folder open the “updates” folder and delete everything inside it.