Unable to uninstall package db2exc

Bug #373941 reported by Vinit Adhopia
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
db2exc (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: db2exc

Description: Ubuntu 9.04
Release: 9.04

DB2 Express C v9.5, obtained from the DB2 repositories here:
ftp://ftp.software.ibm.com/software/data/db2/express/Ubuntu/debs/x86/db2exc-9.5.0_i386/

When I tried to install, it failed and left the package in an inconsistent state. Now, I can't re-install the package or remove it.

sudo apt-get remove db2exc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  db2exc
0 upgraded, 0 newly installed, 1 to remove and 75 not upgraded.
1 not fully installed or removed.
After this operation, 509MB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing db2exc (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 db2exc
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: Package is in a very bad inconsistent state - you should
NonfreeKernelModules: fglrx
Package: db2exc 9.5.0-1
SourcePackage: db2exc
Title: package db2exc 9.5.0-1 failed to install/upgrade: Package is in a very bad inconsistent state - you should
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Vinit Adhopia (vinitadhopia) wrote :
Revision history for this message
silbermm (silbermm) wrote :

I'm also having this problem. It is effecting my ability to update/install any other packages on my production Database server! Please Help!

Revision history for this message
Brian Thomason (brian-thomason) wrote :

Have you tried a dpkg --purge db2exc

Also, does this occur with the package from the partner repository as well?

Revision history for this message
silbermm (silbermm) wrote :

I have actually figured it out. The post and pre actions were erroring out...

Revision history for this message
JAterren (jaterren) wrote :

I have a Ubuntou 8.04 , Im problems with this:

$sudo apt-get install db2exc
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
db2exc ya está en su versión más reciente.
Se instalaron de forma automática los siguientes paquetes y ya no son necesarios.
  libportaudio2 wireshark liblua5.1-0 wireshark-common libntfs-3g23
Utilice «apt-get autoremove» para eliminarlos.
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Se utilizarán 0B de espacio de disco adicional después de desempaquetar.
Configurando db2exc (9.7.1-3hardy1) ...
 * Setting DB2 library path... dpkg: error al procesar db2exc (--configure):
 el subproceso post-installation script devolvió el código de salida de error 127
Se encontraron errores al procesar:
 db2exc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Helmar Brunn (bru-de) wrote :

Recognized similar problem while installing the package db2exc_9.7.2-10_i386.deb, obtained from http://archive.canonical.com/ubuntu ludid partner.

First, the installation proceeds until Synaptic returns an error: "Sorry, the package db2exc_9.7.2-10 failed to install or upgrade".
But according to attached extract from /var/log/apt/term.log, everything seems to succeed except a last couple of statements:
   'unknown': unknown terminal type.
   dpkg: error processing db2exc (--configure):
   subprocess installed post-installation script returned error exit status 1
And then, db2exc is anyway in place and working properly at this stage.

Someone also suggested to check and modify the script /var/lib/dpkg/info/db2exc.postinst - but I have no clue why and how, or if perhaps the 'clear' statement in row 348 is critical.

The other issue, however, is that with every scheduled pass of Update Manager I'm getting another "Setting up db2exc"-attempt, which finally claims to fail again, but which creates always new "dasusrX" users instead.
And even more strange: this also happens regardless of the package being locked as pinned in Synaptic to prevent any further updates.

Revision history for this message
Akanksha (a-batra16) wrote :

I am having somewhat the same problem..
I installed db2 and it failed saying
 Setting up db2exc (9.7.1-3hardy1) ...
 * Setting DB2 library path... [ OK ]
 * Registering installation in the DB2 global registry... [ OK ]
 * Creating new group and user for Database Administration Server... [ OK ]
 * Creating Database Administration Server... ERROR: Could not create default instances. Aborting Configuration...
dpkg: error processing db2exc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 db2exc
E: Sub-process /usr/bin/dpkg returned an error code (1)

And since then i am not able to install/update anything. It always retrns an error "E: db2exc: subprocess installed post-installation script returned error exit status 1".And I am using ubuntu 10.04 lts..32 bit..
I do not know anything about the postrm or postint files and what to do with them.. But a post suggested to do some changes in the /var/lib/dpkg/info/db2exc.postrm file.
https://bugs.launchpad.net/ubuntu/+source/db2exc/+bug/191656
Patch : http://launchpadlibrarian.net/11930183/db2.ubuntu.patch
But nothing happened even after that.
Please suggest something.

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.