!Issue Detected! Production Raspberry Pi 3B+ Apt updates failed.
!Issue Detected! Production Raspberry Pi 3B+ Apt updates failed.
Hi, i have a very bad problem. Many files binaries and apt files like packagename.list and packagename.postinst dont output anithing with cat and with nano they only contain "@" i think this was a problem caused by an apt upgrade. Now i get following errors whenn i try to reinstall raspi-config: Package lists are read... Done Dependency tree is built... Done Status information is read... Done 0 updated, 0 reinstalled, 1 reinstalled, 0 to remove and 1 not updated. There are still 0 B of 30.7 kB of archives to be downloaded. After this operation, 0 B of additional disk space is used. Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <__ANONIO__> line 1. Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1. Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <__ANONIO__> line 1. Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1. dpkg: Warning: file list file of package "weewx" is missing; it is assumed, that the package currently has no files installed dpkg: Warning: File list file of package "arandr" is missing; it is assumed, that the package does not currently have any files installed dpkg: Warning: File list file of package "raspi-config" is missing; it is assumed that the package does not currently have any files installed dpkg: unrecoverable fatal error, abort: Final line feed missing in file list file of package "gldriver-test". E: Sub-process /usr/bin/dpkg returned an error code (2) And if i now would remove /var/lib/dpkg/info/gldriver-test.* (because they are also filled with @) it changes into a dpkg: warning: files list... and a new package appears on dpkg: unrecoverable fatal error... What should i do?? Thankyou very much in advance for any helpfull advice
It seems your dpkg installation is affected by multiple errors. Remove any third-party PPA files and verify your official repository list using commands like ls -la /etc/apt/sources.list.d/. Ensure your main sources.list contains only trusted repositories. After confirming, clear dpkg and rebuild with APT sudo dpkg --clear-avail followed by configure and update.
Great suggestions there, but it looks like you've disrupted your package system. This might occur due to using incorrect sources or PPA links. Or perhaps you're taking risky steps or mixing incompatible versions. Stay cautious—such issues can be tricky to resolve. Always ensure you only install packages from trusted origins for your distribution and its specific version.
Thank you for your feedback. After completing these steps, I encountered additional issues such as file swapping between locations where it shouldn't occur. I attempted to format a 256 GB Sandisk Ultra Plus micro SD card, but I couldn't delete any partitions using DiskPart or Windows Explorer. It seems some sectors are damaged, leading to problems when data is spread across them. Could this be the reason behind the unusual storage behavior?