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. > > > The question is: even with an empty diversion, if I reinstall perl > > why can't I install libmodule-corelist-perl? > > This is because the /usr/bin/corelist binary is still diverted, but > dpkg does not know about this because the diversions file is empty. > You should have these files on disk: > > /usr/bin/corelist.bundled (belonging to perl and diverted by > libmodule-corelist-perl, but dpkg does not know about this and thinks > the file is unowned) > > /usr/bin/corelist (belonging to libmodule-corelist-perl but dpkg > thinks it belongs to both perl and libmodule-corelist-perl). > > > Or which other package should I reinstall to fix the diversions > > needed for perl? > > You need to clean this up manually. Does it help to remove > /usr/bin/corelist.bundled > and /usr/share/man/man1/corelist.bundled.1.gz, and then reinstall > libmodule-corelist-perl? Yes, thanks for the help! > > > Same question goes for binutils-multiarch, which I can't install > > (from experimental). > > 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. Best regards, --Edwin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org