On 2010-08-10 09:24 +0200, Török Edwin wrote: > On Mon, 09 Aug 2010 20:35:56 +0200 > Sven Joachim <svenj...@gmx.de> wrote: > >> On 2010-08-09 19:55 +0200, Török Edwin wrote: >> >> > On Mon, 09 Aug 2010 19:40:57 +0200 >> > Sven Joachim <svenj...@gmx.de> wrote: >> > >> >> On 2010-08-09 19:13 +0200, Salvatore Bonaccorso wrote: >> >> >> >> > Could that have caused an empty diversions? >> >> >> >> Not on its own, I think; but if Török uses btrfs, it could have >> >> been caused by a bug¹ in dpkg versions prior to 1.15.7. >> > >> > No, I use XFS for /var. I don't know if it is affected by that bug. >> >> I don't think so (else it would probably have been detected earlier), >> but XFS used to have a problem with leaving empty files on disk after >> system crashes. I don't know if that is still an issue. > > I don't think I had a crash during a dpkg upgrade. > Is there some script that I could hook into dpkg to warn me should the > diversion file becomes empty again? That should give some clues if its > a package's fault or filesystem's.
You could write your own script monitoring /var/lib/dpkg/diversions and hook that into dpkg via the post-invoke option in /etc/dpkg.cfg. But I think it is very unlikely that a package could be the cause, since that would likely have been noticed by more people. I still suspect this is a filesystem problem. >> You will also have to remove any diverted files manually, I think. > > This command fixed it up for me: > rm /usr/bin/*.single /usr/bin/corelist.bundled /usr/bin/perldoc.stub > /usr/share/man/man1/corelist.bundled.1.gz > > I can now install perl-doc, libmodule-corelist-perl, and > binutils-multiarch. There will be more problems, e.g. with bash or dash diverting /bin/sh. If you cannot recover the diversions file from a backup, be prepared for future unpack failures. Do you have a /var/lib/dpkg/diversions-old file that could be used for recovery? Sven -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org