can't reinstall util-linux

Asked by Kenneth Roy Cabrera Torres

The problem is that I cannot install new update, because
always shows a problem with util-linux.

Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: error to process util-linux (--configure)

I try to reinstall util-linux with
sudo dpkg -i --force-overwrite util-linux_2.13.1-5bubuntu2_amd64.deb

but still shows and erro in the "pre-removal" code error 1.

I am in a trapped loop!!!

Thank you for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kenneth Roy Cabrera Torres
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Try
sudo dpkg --configure -a

Revision history for this message
Kenneth Roy Cabrera Torres (realknight) said :
#2

Hi Bhavani Shankar:

When I try your recommentation it show:

dpkg: error al procesar util-linux (--configure):
 El paquete está en un estado grave de inconsistencia - debe reinstalarlo
 antes de intentar su configuración.
Se encontraron errores al procesar:
 util-linux

It says that there is a big inconsistency....
Must reinstall....
I try, but there is the same problem.

I type:

sudo aptitude reinstall util-linux

And stills the problem, with this message.

dpkg: error al reorganizar:
 el subproceso post-installation script devolvió el código de salida de error 1
Se encontraron errores al procesar:
 /var/cache/apt/archives/util-linux_2.13.1-5ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Un paquete no se pudo instalar. Intentado recuperarse:
dpkg: error al procesar util-linux (--configure):
 El paquete está en un estado grave de inconsistencia - debe reinstalarlo
 antes de intentar su configuración.
Se encontraron errores al procesar:
 util-linux

What else can I do?

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

okay do

sudo apt-get clean and try

Revision history for this message
Kenneth Roy Cabrera Torres (realknight) said :
#4

I do:

sudo apt-get clean

And then again:

sudo dpkg --configure -a

But, it shows:

dpkg: error al procesar util-linux (--configure):
 El paquete está en un estado grave de inconsistencia - debe reinstalarlo
 antes de intentar su configuración.
Se encontraron errores al procesar:
 util-linux

The worst part is that it don't let me install any thing else...neither update.

Revision history for this message
Kenneth Roy Cabrera Torres (realknight) said :
#5

Solved:

First I had to remove all the files util-linux*
from:

/var/lib/dpkg/info/

with sudo command.

Then I remove it with:

dpkg –remove –force-remove-essential util-linux

Then I reinstall it with aptitude

And then the synaptic works fine.

Any way, thank you for your help.

Revision history for this message
ABCdatos (abcdatos) said :
#6

Too much thanks, I confirm your solution also worked for me on, at least, one machine.

sudo rm /var/lib/dpkg/info/util-linux*
sudo dpkg --remove --force-remove-essential util-linux
sudo aptitude install util-linux