type to search

By: Asked

dpkg error when trying to update any package

Updating packages is no longer possible after a power failure while synaptic was installing updates.
Every attempt to update a package leads to the following error messages:

dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libqt5core5a5.3.2+dfsg-4+deb8u2amd64.deb (—unpack):
 Unterprozess rm-Befehl zum Aufräumen gab den Fehlerwert 1 zurück
rm: das Entfernen von „/var/lib/dpkg/“ ist nicht möglich: Das Verzeichnis ist nicht leer

(dpkg: error while handling archive /var/cache/apt/archives/libqt5core5a5.3.2+dfsg-4+deb8u2amd64.deb package file name: subprocess rm-command returns error code 1
rm: removel of „/var/lib/dpkg/“ not possible: directory not empty)

When checking „/var/lib/dpkg/“ (ls -a) there is no file or subdirectory. However any attempt to delete (rmdir, rm -r, even when mounted by a different sytem) is refused with ‘directory not empty’.
The file system is btrfs.

After the power failure synaptic advised me to run:
dpkg —configure -a
which I did. dpkg then did succesfully configure and install many packages which were all in the state ‘unpacked’  (these packages were in the system with the newes version afterwards).
About 75 packages were not updated. Obviously the ones not yet unpacked when the power failure occured. Synaptic shows that they should be updated to the given new version.
I did remove one of these packages, which worked. But new installation of the removed package was refused whith the  error message given above.

What coud I possibly do to solve the problem?



This article is actually tutorial of Coding & OO Latest KB. In other words we can say this article help to get valuable content on this topic.I have similar issue and after getting this article i got answers of my questions. However, I try to get best website to buy a research paper but its my luck to have this article. Thanks for this effort.

NN comments

Which article? To me it appears that you want to promote the Essay service site.

levi farrow

All updates for the packages have been maintained for the god and ideal terms for the individuals. Now the whole scheme of the packages and writing dissertation service for all students has been difficult and coward for the individuals.


thanks for the information you shared with everyone.. checkout this awesome sites on :– indoor grill

or Cancel
You need to join Debian to complete this action, click here to do so.