Hi all,
I just used the imager (v1.9.4) (for the 3rd time today) to load a 32GB SD card with the 64-bit version of the Raspberry PI OS. When I tried to upgrade the OS the first two times, using commands 'sudo apt update" and 'sudo apt upgrade -y', I received the following message:
I then ran 'apt --fix-broken install' with no packages and received the following messages:
I browsed '/var/lib/dpkg/status' with 'less -N /var/lib/dpkg/status' and found that it was corrupt. Line 596 contains
with all remaining lines stating that they are line 596 and the lines are all filled filled with <FF>.
I decided to run the installer again before trying to upgrade anything I browsed '/var/lib/dpkg/status'. The file is corrupt upon installation. The last set of human-readable lines in the file are:How do I get an uncorrupted copy of '/var/lib/dpkg/status'?
Is it possible to repair the copy I have?
Thanks.
I just used the imager (v1.9.4) (for the 3rd time today) to load a 32GB SD card with the 64-bit version of the Raspberry PI OS. When I tried to upgrade the OS the first two times, using commands 'sudo apt update" and 'sudo apt upgrade -y', I received the following message:
Code:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).I then ran 'apt --fix-broken install' with no packages and received the following messages:
Code:
dpkg: error: parsing file '/var/lib/dpkg/status' near line 604 package 'bash-completion': duplicate value for 'Conffiles' fieldE: Sub-process /usr/bin/dpkg returned an error code (2)Code:
conceived to produce<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>... I decided to run the installer again before trying to upgrade anything I browsed '/var/lib/dpkg/status'. The file is corrupt upon installation. The last set of human-readable lines in the file are:
Code:
579 580 Package: bash-completion 581 Status: install ok installed 582 Priority: standard 583 Section: shells 584 Installed-Size: 1463 585 Maintainer: Gabriel F. T. Gomes <gabriel@debian.org> 586 Architecture: all 587 Multi-Arch: foreign 588 Version: 1:2.11-6 589 Provides: dh-sequence-bash-completion 590 Conffiles: 591 /etc/bash_completion a81b3f1cb197219b815942f4fc7fa94e 592 /etc/profile.d/bash_completion.sh 4257431f99f10e5fbe86b39b6b9e5002 593 Description: programmable completion for the bash shell 594 bash completion extends bash's standard completion behavior to achieve 595 complex command lines with just a few keystrokes. This project was 596 conceived to produce<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF Is it possible to repair the copy I have?
Thanks.
Statistics: Posted by SysProgX0500HL — Thu Jul 17, 2025 9:00 pm