failed to install

Bug #612296 reported by Haithamoon
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
approx (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: approx

This happens with me with ubuntu 10.04 32bit as well as 64 bit also

sudo aptitude install approx

When i try to install this package using the previous command, it gives me the following :

******************************************************
Preconfiguring packages ...
Selecting previously deselected package libcurl3.
(Reading database ... 42477 files and directories currently installed.)
Unpacking libcurl3 (from .../libcurl3_7.19.7-1ubuntu1_i386.deb) ...
Selecting previously deselected package curl.
Unpacking curl (from .../curl_7.19.7-1ubuntu1_i386.deb) ...
Selecting previously deselected package libfile-copy-recursive-perl.
Unpacking libfile-copy-recursive-perl (from .../libfile-copy-recursive-perl_0.38-1_all.deb) ...
Selecting previously deselected package update-inetd.
Unpacking update-inetd (from .../update-inetd_4.35_all.deb) ...
Selecting previously deselected package openbsd-inetd.
Unpacking openbsd-inetd (from .../openbsd-inetd_0.20080125-4ubuntu2_i386.deb) ...
Selecting previously deselected package approx.
Unpacking approx (from .../approx_4.1-1build1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libcurl3 (7.19.7-1ubuntu1) ...

Setting up curl (7.19.7-1ubuntu1) ...
Setting up libfile-copy-recursive-perl (0.38-1) ...
Setting up update-inetd (4.35) ...

Setting up openbsd-inetd (0.20080125-4ubuntu2) ...
 * Stopping internet superserver inetd [ OK ]
 * Not starting internet superserver: no services enabled

Setting up approx (4.1-1build1) ...
*************************************************
it stops on the line " Setting up approx (4.1-1build1) ... " for ever till i terminate the installation process

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: approx (not installed)
ProcVersionSignature: Ubuntu 2.6.32-24.38-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
Architecture: amd64
Date: Sun Aug 1 19:38:29 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: approx

Revision history for this message
Haithamoon (haitham-ahmed-a) wrote :

this occurs with both ubuntu desktop and server both arch. 32/64 bit

tags: added: i386
Revision history for this message
Haithamoon (haitham-ahmed-a) wrote :

I tried to install it again after killing the installation process and this is what i got:

sudo aptitude install approx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following partially installed packages will be configured:
  approx
0 packages upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up approx (4.1-1build1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing approx (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 approx
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up approx (4.1-1build1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing approx (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 approx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

Same problem, approx fails to install (and remove) on Ubuntu 10.04 LTS Desktop amd64, approx 4.1-1build1.

After manually killing 'sudo apt-get install approx' and fixing with 'sudo dpkg --configure -a', approx refused to remove with apt. This could be fixed by some more killing of installation processes.

Haithamoon: Your second installation attempt looks like you have the locking problem (side effect of the bug):
"debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable". You might want to kill the rest of the dpkg processes, see below.

$ sudo apt-get -y remove approx
...
Removing approx ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing approx (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 approx

$ sudo dpkg --remove --force-all approx
...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing approx (--remove):
 subprocess installed post-removal script returned error exit status 1

$ ps waux|grep -i dpkg
root 15013 0.0 0.1 54036 11580 ? S 11:45 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/approx.postinst configure
[..]
$ sudo kill 15013

$ sudo apt-get -y remove approx
...
Removing approx ...

And finally it was removed successfully.

Revision history for this message
Walter Feddern (wfeddern) wrote :

I was able to resolve this by installing the following missing dependancies, which are not checked by the package install:

libocamlnet-ocaml
libpcre-ocaml
libsha-ocaml
libsyslog-ocaml
ocaml-base-nox

Revision history for this message
Stéphane Glondu (glondu) wrote :

> This happens with me with ubuntu 10.04 32bit as well as 64 bit also
>
> sudo aptitude install approx

In a clean lucid chroot (I am running Debian testing), this works for me.

> Same problem, approx fails to install (and remove) on Ubuntu 10.04 LTS
> Desktop amd64, approx 4.1-1build1.

I have no problem purging approx either. Maybe there is some bad interaction with another installed package...

> I was able to resolve this by installing the following missing
> dependancies, which are not checked by the package install:
>
> libocamlnet-ocaml
> libpcre-ocaml
> libsha-ocaml
> libsyslog-ocaml
> ocaml-base-nox

What makes you think these are dependencies? They shouldn't be on amd64 and i386.

Revision history for this message
Evan Broder (broder) wrote :

I'm going to mark this bug as a duplicate of bug #601732.

Even though they are different packages, the underlying cause is the same, and I'd like to have one bug where I can address that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.