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.
--- a/debian/dpkg.preinst
+++ b/debian/dpkg.preinst
@@ -30,8 +30,9 @@ kill_bad_alternatives () {
local IFS=""
ALTDIR="/var/lib/dpkg/alternatives"
for alt in $ALTDIR/*; do
- if [ ! -e $alt ]; then
- # In case it's been removed by the code below
+ if [ ! -f $alt ]; then
+ # In case it's been removed by the code below, or in case
+ # it's not a real file
continue
fi
{
Cheers,
--
Raphaël Hertzog
Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny :
http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]