Feedback

type to search

dpkg error when trying to update any package

Asked by

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/tmp.ci“ 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/tmp.ci“ not possible: directory not empty)

When checking „/var/lib/dpkg/tmp.ci“ (ls -a) there is no file or subdirectory. However any attempt to delete tmp.ci (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?

or Cancel

Your answer

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