Re: Can;t fix doc-base installation problem

2012-11-21 Thread Gary Roach

On 11/20/2012 10:49 AM, Gary Roach wrote:

Hi everyone:

I've had to restore one of my systems from cold iron. Aptitude seems 
to be hanging up when trying to install / purge / update doc-base. 
I've tried Aptitude, dpkg and apt-get including the -f switch with no  
joy. Below is a typical example:


root@mycomputer:/home/gary# aptitude purge doc-base
The following packages will be REMOVED:
  doc-base{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not
upgraded.
Need to get 0 B of archives. After unpacking 504 kB will be freed.
Do you want to continue? [Y/n/?]
(Reading database ... 297009 files and directories currently
installed.)
Removing doc-base ...
cannot find install-docs on path
dpkg: error processing doc-base (--purge):
 subprocess installed pre-removal script returned error exit status 1
configured to not write apport reports
  Errors were encountered
while processing:
 doc-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

root@mycomputer:/home/gary#

I have tried cleaning and reloading the archives. That didn't help. 
The whole dpkg process seems to be hung up at this point. If I try to 
process any other packages, the installation process always returns to 
some variation of the above. The package seems to be partially 
installed. The C flag is set in aptitude. A not configured error is 
sometime displayed. Any suggestions?


Thanks in advance

Gary R.



Since there has been no reply to my query, I am including more 
information in hopes that someone will have an idea how to fix this 
problem. I am completely stumped. This is a Debian Squeeze system using 
KDE. When trying to fix the problem, I got the following:


   root@mycomputer:/var/log# dpkg -C
   The following packages are only half configured, probably due to
   problems
   configuring them the first time.  The configuration should be
   retried using
   dpkg --configure package or the configure menu option in dselect:
 doc-base utilities to manage online documentation

   root@mycomputer:/var/log# dpkg --configure doc-base
   Setting up doc-base (0.9.5) ...
   /var/lib/dpkg/info/doc-base.postinst: 45: install-docs: not found
   dpkg: error processing doc-base (--configure):
 subprocess installed post-installation script returned error exit
   status 127
   Errors were encountered while processing:
 doc-base

   root@mycomputer:/var/log# dpkg-query -s doc-base
   Package: doc-base
   Status: purge ok half-configured
   Priority: optional
   Section: doc
   Installed-Size: 492
   Maintainer: Robert Luberda rob...@debian.org
   Architecture: all
   Version: 0.9.5
   Config-Version: 0.9.5
   Depends: perl, libuuid-perl, dpkg (= 1.14.17), libmldbm-perl
   Suggests: dhelp | dwww | doc-central | yelp | khelpcenter4,
   rarian-compat
   Conflicts: dhelp ( 0.6.7), dwww ( 1.10.13~)
   Conffiles:
 /etc/doc-base/documents/README efd9c153645bd3e0653eb5b0fbeda91f
   Description: utilities to manage online documentation
 This package contains utilities to manage documentation installed on
 a Debian system. It generates a database of document metadata, which
 other packages such as dwww, dhelp, doc-central, and rarian-compat
 can use to provide a catalog of available documentation.
 .
 For additional information see the Debian doc-base Manual included in
 this package.


   root@mycomputer:/etc/doc-base# aptitude purge doc-base
   The following packages will be REMOVED:
  doc-base{p}
   0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
   Need to get 0 B of archives. After unpacking 504 kB will be freed.
   Do you want to continue? [Y/n/?]
   (Reading database ... 297009 files and directories currently installed.)
   Removing doc-base ...
   cannot find install-docs on path
   dpkg: error processing doc-base (--purge):
 subprocess installed pre-removal script returned error exit status 1
   configured to not write apport reports
  Errors were encountered while
   processing:
 doc-base
   E: Sub-process /usr/bin/dpkg returned an error code (1)
   A package failed to install.  Trying to recover:

   root@mycomputer:/etc/doc-base# aptitude reinstall doc-base
   The following packages will be REINSTALLED:
  doc-base
   0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove
   and 0 not upgraded.
   Need to get 0 B of archives. After unpacking 0 B will be used.
   Setting up doc-base (0.9.5) ...
   /var/lib/dpkg/info/doc-base.postinst: 45: install-docs: not found
   dpkg: error processing doc-base (--configure):
 subprocess installed post-installation script returned error exit
   status 127
   configured to not write apport reports
  Errors were encountered while
   processing:
  

Re: Can;t fix doc-base installation problem

2012-11-21 Thread Osamu Aoki
On Tue, Nov 20, 2012 at 10:49:03AM -0800, Gary Roach wrote:
 Hi everyone:
 
 I've had to restore one of my systems from cold iron. Aptitude seems

I guerss you are using unstable.

 to be hanging up when trying to install / purge / update doc-base.
 I've tried Aptitude, dpkg and apt-get including the -f switch with
 no  joy. Below is a typical example:
 
root@mycomputer:/home/gary# aptitude purge doc-base
The following packages will be REMOVED:
   doc-base{p}

Did you check our BTS?
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648936
This looks like one you hit.

0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 504 kB will be freed.
Do you want to continue? [Y/n/?]
(Reading database ... 297009 files and directories currently installed.)
Removing doc-base ...


Now calling 
 /var/lib/dpkg/info/doc-base.prerm

cannot find install-docs on path

This is the problem.

If I were you, I will try following as work around.  But before doing
this, check all discussion on the above mentioned BTS.  There may be
better ways.

You should see in /var/lib/dpkg/info/doc-base.prerm:
case $1 in
remove)
remove_all_docs
;;
upgrade)
;;
failed-upgrade)
# Prepare to upgrade from version $2 of this package TO THIS VERSION.
# This is only used if the old version's prerm couldn't handle it,
# and returned non-zero.  (Fix old prerm bugs here.)
;;
esac

Edit this to be:

case $1 in
remove)
true
;;
upgrade)
;;
failed-upgrade)
# Prepare to upgrade from version $2 of this package TO THIS VERSION.
# This is only used if the old version's prerm couldn't handle it,
# and returned non-zero.  (Fix old prerm bugs here.)
;;
esac

and try removing this again.  This is just work around.  If there are
other issues, please work around issues.

I think by installing newer version of doc-base, this should fix this.
...


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121143746.GA23161@goofy.localdomain