Bug#280865: vim-doc: Prerm Script try to remove ALL the system doc in /usr/share/doc

Johan Fischer Johan Fischer <johan.fischer@fischaz.com>, 280865@bugs.debian.org
Fri, 12 Nov 2004 16:32:25 +1100


Package: vim-doc
Version: 1:6.3-025+1
Severity: grave
Justification: renders package unusable

During the latest upgrade, the prerm script of vim-doc tried to remove
my docs....

raton:/var/lib/dpkg/info# apt-get -t experimental upgrade 
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  vim-doc
  1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0B/1600kB of archives.
  After unpacking 53.2kB disk space will be freed.
  Do you want to continue? [Y/n] 
  Reading package fields... Done
  Reading package status... Done
  Retrieving bug reports... Done    
  Reading changelogs...
  (Reading database ... 140104 files and directories currently
  installed.)
  Preparing to replace vim-doc 1:6.3-025+1 (using
  .../vim-doc_1%3a6.3-031+1_all.deb) ...
  Document `vim-usermanual' is not installed, cannot remove.
  Document `vim-referencemanual' is not installed, cannot remove.
  rm: cannot remove `/usr/share/doc//aalib1': Is a directory
  rm: cannot remove `/usr/share/doc//acl': Is a directory
  rm: cannot remove `/usr/share/doc//acpi': Is a directory
  rm: cannot remove `/usr/share/doc//acpid': Is a directory
  rm: cannot remove `/usr/share/doc//adduser': Is a directory
  rm: cannot remove `/usr/share/doc//afio': Is a directory
  rm: cannot remove `/usr/share/doc//aish': Is a directory
  rm: cannot remove `/usr/share/doc//alien': Is a directory
  rm: cannot remove `/usr/share/doc//alsa-base': Is a directory
  rm: cannot remove `/usr/share/doc//alsa-headers': Is a directory

  <snap>

rm: cannot remove `/usr/share/doc//x-ttcidfont-conf': Is a directory
rm: cannot remove `/usr/share/doc//xutils': Is a directory
rm: cannot remove `/usr/share/doc//xvfb': Is a directory
rm: cannot remove `/usr/share/doc//xvid4conf': Is a directory
rm: cannot remove `/usr/share/doc//xvnc4viewer': Is a directory
rm: cannot remove `/usr/share/doc//x-window-system': Is a directory
rm: cannot remove `/usr/share/doc//x-window-system-core': Is a directory
rm: cannot remove `/usr/share/doc//xxgdb': Is a directory
rm: cannot remove `/usr/share/doc//yelp': Is a directory
rm: cannot remove `/usr/share/doc//zenity': Is a directory
rm: cannot remove `/usr/share/doc//zlib1g': Is a directory
rm: cannot remove `/usr/share/doc//zlib1g-dev': Is a directory
dpkg: error processing
/var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I think the // indicates that an empty string which should have been
vim-doc has been lost somewhere. 

I had a look at the prerm script and found that it's only calling
debhelper scripts. So I guess the bug is not really in vim-doc but more
in the debhelper scripts....

BTW, my debhelper version was also upgraded in this upgrade and is now
4.2.24. 

Cheers.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

-- no debconf information