Trying to install the latest version of vim-doc causes a long set of error
messages to be printed out:
# dpkg -i /var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb
(Reading database ... 96101 files and directories currently installed.)
Preparing to replace vim-doc 1:6.3-013+2 (using .../vim-doc_1%3a6.3-031+1_all.deb) ...
rm: cannot remove `/usr/share/doc//Debian': Is a directory
rm: cannot remove `/usr/share/doc//FAQ': Is a directory
rm: cannot remove `/usr/share/doc//HOWTO': Is a directory
[snip]
rm: cannot remove `/usr/share/doc//zsh-doc': Is a directory
dpkg: error processing /var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb (--install):
subprocess pre-installation script returned error exit status 1
The problem appears to be an undefined variable "$pkg" in the preinst.
I guess $pkg is supposed to be vim-doc? Good thing you didn't use rm -r,
that would really have been a pain to fix :-P
#! /bin/sh -e
if [ ! -h /usr/share/doc/$pkg ] ; then
if [ -d /usr/share/doc/$pkg ] ; then
rm -f /usr/share/doc/$pkg/*
rmdir /usr/share/doc/$pkg/
fi
fi
--
Kevin B. McCarty <email address hidden> Physics Department
WWW: http://www.princeton.edu/~kmccarty/ Princeton University
GPG public key ID: 4F83C751 Princeton, NJ 08544
Message-Id: <email address hidden>
Date: Thu, 11 Nov 2004 17:18:56 -0500
From: Kevin McCarty <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: vim-doc: Preinst script is broken
Package: vim-doc
Version: 1:6.3-031+1
Severity: grave
Justification: renders package unusable
Hi,
Trying to install the latest version of vim-doc causes a long set of error
messages to be printed out:
# dpkg -i /var/cache/ apt/archives/ vim-doc_ 1%3a6.3- 031+1_all. deb doc_1%3a6. 3-031+1_ all.deb) ... doc//Debian' : Is a directory doc//FAQ' : Is a directory doc//HOWTO' : Is a directory doc//zsh- doc': Is a directory apt/archives/ vim-doc_ 1%3a6.3- 031+1_all. deb (--install):
(Reading database ... 96101 files and directories currently installed.)
Preparing to replace vim-doc 1:6.3-013+2 (using .../vim-
rm: cannot remove `/usr/share/
rm: cannot remove `/usr/share/
rm: cannot remove `/usr/share/
[snip]
rm: cannot remove `/usr/share/
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
The problem appears to be an undefined variable "$pkg" in the preinst.
I guess $pkg is supposed to be vim-doc? Good thing you didn't use rm -r,
that would really have been a pain to fix :-P
#! /bin/sh -e
if [ ! -h /usr/share/doc/$pkg ] ; then doc/$pkg/ * doc/$pkg/
if [ -d /usr/share/doc/$pkg ] ; then
rm -f /usr/share/
rmdir /usr/share/
fi
fi
-- System Information: en_US.UTF- 8 (charmap=UTF-8)
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=
-- no debconf information
regards,
-- www.princeton. edu/~kmccarty/ Princeton University
Kevin B. McCarty <email address hidden> Physics Department
WWW: http://
GPG public key ID: 4F83C751 Princeton, NJ 08544