I have encountered a series of problems, after a week of searching and processing still have no clue.
My Pi3B+ keeps reporting errors: "dpkg: warning: files list file for package 'xxx' missing; assuming package has no files currently installed"
, most of dpkgs are listed.
The strange thing is that almost all of the packages reporting errors are running normally.
I tried to reinstall all the packages that reported errors using sudo aptitude reinstall xxx
. Most of the packages no longer report errors after reinstallation, but there are still some packages that cannot be installed. I tried to install them one by one manually using sudo aptitude reinstall xxx
, and I got the following message
docker-ce-cli is already the newest version (5:20.10.0~3-0~debian-buster)
.
The current workable solution is: sudo apt-get remove xxx
, then sudo aptitude install xxx
to choose to install another version and reinstall it.
For exameple, if I use sudo apt remove xxx', then
sudo aptitude install xxx, it comes up
Depends: libudev1 (= 241-7~deb10u7+rpi1) but 241-7~deb10u8+rpi1 is installedor
Depends: debconf (= 1.5.71) but 1.5.71+deb10u1 is installed`. Choose y to continue the install ,the package will be install and will not show warning again. Seems like something causes the version problem.
But this solution has a bad effect which will cause all the previous configuration of the reinstalled package to disappear (for example, my apache after reinstallation, webdav is disabled)
Is there any solution to eliminate these errors without deleting the dpkg?
Here are some of the stupid things I've done:
It all started with a wrong python upgrade, I used sudo apt-get remove phthon3.7
then sudo apt-get purge python3.7
, removed python and related dependencies, and after reinstalling python3.8 (using configure, make and make install) , after this everything went wrong.
- My openmediavault was deleted and the samba service was not working. Reinstallation keeps saying "no module named 'apt' ".
- Reinstalled python 3.7, manually deleted some python 3.8 files, and started to get pip and python commands prompting "no such file or directory".
- Used
export PATH=${PATH}:/usr/bin/python3
to solve the problem pip and python command problem.(Maybe, I don't really remember because I've done so many thing to deal with a bunch of problems) - Don't know which step of the wrong operation causes a lot of dpkg warning
- Made a wong step and deleted /etc/apt/sources.list.d/
- Made a wong step and deleting /var/lib/dpkg/info/
Here are some commands I have tried but won't help:
sudo apt update
nothing specail happendsudo apt upgrade
nothing specail happendsudo dpkg --configure -a
nothing specail happendsudo apt install -f
return0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- Make a backup for /var/lib/dpkg/info-make a new 'info' folder-
sudo apt update
- move the backup back to 'info' folder. Nothing good happened
Here are the packages that show errors:
dpkg: warning: files list file for package 'libdns1104:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-xcb1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'systemd-sysv' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfluidsynth1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'psmisc' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblz4-1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libhogweed4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libssl1.1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwebpdemux2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libjavascriptcoregtk-4.0-18:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'folder2ram' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'isc-dhcp-client' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgcrypt20:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'debconf-i18n' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libopenexr23:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'systemd' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libnss3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libisc1100:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libseccomp2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libicu63:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsystemd0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'debconf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5support0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'tzdata' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgnutls30:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libuv1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-data' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'docker-ce' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'debconf-utils' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libssl-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssapi-krb5-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'udev' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'containerd.io' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwebp6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libk5crypto3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libnettle6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libisc-export1100:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libudev1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'docker-ce-cli' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwebkit2gtk-4.0-37:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libasound2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam-systemd:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'phddns' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'isc-dhcp-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtiff5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsndfile1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'base-files' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwebpmux3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdns-export1104' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxml2:armhf' missing; assuming package has no files currently installed
Anything else I can do to save my system?
sudo apt --reinstall install xxx
and it return Reinstallation of docker-ce is not possible, it cannot be downloaded.