Raphael Hertzog wrote: > On Tue, 30 Jun 2009, Craig Sanders wrote: >> upgrading dpkg fails with "/var/lib/dpkg/tmp.ci/preinst: line 38: read: >> read error: 0: Is a directory" > > What do you have in /var/lib/dpkg/alternatives/ ? > > Please give the output of "ls -alR /var/lib/dpkg/alternatives/". > > I suspect that you have an (unexpected) directory and that we should > modify kill_bad_alternatives() to skip non-files.
yep, that's correct. i had a directory in there called "junk" containing corrupted files that i moved in there (from a crash during a previous apt-get upgrade - problems with the intel graphics driver a few months ago, the machine would lock up whenever X was restarted). i had meant to delete that dir after repairing the system but forgot to. i deleted the directory and was able to upgrade dpkg with no problem. your patch looks like a good thing to do anyway. craig -- Craig Sanders <csand...@unimelb.edu.au> Systems Administrator School of Chemistry University of Melbourne Ph: +61 3 9035-8072 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org