Java Mailing List Archive

http://www.redhatconfig.com/

Home » Ubuntu Technical Support »

Re: problem removing package (Fixed)

Sergio Belkin

2008-07-30


Author LoginPost Reply
2008/7/30 Sergio Belkin <sebelk@(protected)>:
> 2008/7/29 Derek Broughton <news@(protected)>:
>> Please don't top-post. It makes it difficult to have a conversation.
>>
>> Mario Spinthiras wrote:
>>
>>> just do a dpkg -P --force package-name
>>>
>>> On Tue, Jul 29, 2008 at 10:28 AM, Amichai Rotman
>>> <amichai@(protected):
>>>
>>>> I'd try using Aptitude. It has a more intuitive and friendly way to
>>>> resolve conflics / problems and gives you a few leads to follow...
>>>>
>>>> On Tue, Jul 29, 2008 at 06:23, Sergio Belkin <sebelk@(protected):
>>>>
>>>>> I tried to remove a package in Ubuntu Hardy Heron with no sucess, look
>>>>> at as follows:
>>>>>
>>>>> root@(protected)
>>
>> Obviously elvis and coldplay are incompatible :-)
>
> LOL
>
>>
>>>>> dpkg: error processing elvis (--remove):
>>>>> subprocess pre-removal script returned error exit status 2
>>>>> Errors were encountered while processing:
>>>>> elvis
>>>>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>
>> Please, these are completely unhelpful suggestions. Neither aptitude nor
>> dpkg are going to be any better at this, as dpkg _still_ has to run the
>> prerm script before it can work.
>>
>> First, you really shouldn't be running _as_ root, out of your home
>> directory. You'll be really unhappy when root writes something in there
>> that prevents applications running as you, later.
>>
>> You could remove /var/lib/dpkg/info/elvis.prerm, which would fix the
>> immediate issue, but I suspect you'd still have the same problem with every
>> other package, as it seems to be that the "editor" alternatives are messed
>> up, and nothing to do with elvis itself.
>>
>> Try:
>> # sudo update-alternatives --config editor
>>
>> and set "editor" to some other editor (you can change it back if that's not
>> your preference).
>> --
>> derek
>>
>>
>
> Thanks derek , I haven't here that machine to test it, but I'm agree
> with you, if simply running dpkg/aptitude with some flags (aka read
> the man page first) fixed the problem I hadn't asked help to mailing
> list ;)
>
> Thanks!
>

Well I have to say that last suggestion didn't work, but the first one did:

sergio@(protected)
[sudo] password for sergio:
I don't wish to know that.
[sudo] password for sergio:

Hay 5 alternativas que proveen `editor'.

Selección   Alternativa
-----------------------------------------------
      1   /usr/bin/vim.tiny
      2   /bin/ed
      3   /bin/nano
*+     4   /usr/bin/vim.gnome
      5   /usr/bin/mcedit-debian

Pulse <Intro> para mantener el valor por omisión [*] o pulse un número
de selección: 1
Se utiliza `/usr/bin/vim.tiny' para proporcionar `editor'.
update-alternatives: no se puede hace que
/usr/share/man/pl.ISO8859-2/man1/editor.1.gz.dpkg-tmp sea un enlace
simbólico para a /etc/alternatives/editor.pl.ISO8859-2.1.gz: No existe
el fichero ó directorio
sergio@(protected)
Contraseña:
root@(protected)
root@(protected)
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
elvis
0 actualizados, 0 se instalarán, 1 para eliminar y 0 no actualizados.
Se liberarán 750kB después de desempaquetar.
¿Desea continuar [S/n]?
(Leyendo la base de datos ...
188825 ficheros y directorios instalados actualmente.)
Desinstalando elvis ...

root@(protected)
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son
necesarios.
elvis-common
Utilice «apt-get autoremove» para eliminarlos.
Los siguientes paquetes se ELIMINARÁN:
vim-gtk
0 actualizados, 0 se instalarán, 1 para eliminar y 0 no actualizados.
Se liberarán 1909kB después de desempaquetar.
¿Desea continuar [S/n]?
(Leyendo la base de datos ...
188821 ficheros y directorios instalados actualmente.)
Desinstalando vim-gtk ...
root@(protected)
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son
necesarios.
elvis-common
Utilice «apt-get autoremove» para eliminarlos.
Los siguientes paquetes se ELIMINARÁN:
vim-nox
0 actualizados, 0 se instalarán, 1 para eliminar y 0 no actualizados.
Se liberarán 1634kB después de desempaquetar.
¿Desea continuar [S/n]?
(Leyendo la base de datos ...
188818 ficheros y directorios instalados actualmente.)
Desinstalando vim-nox ...
root@(protected)
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son
necesarios.
elvis-common
Los siguientes paquetes se ELIMINARÁN:
elvis-common
0 actualizados, 0 se instalarán, 1 para eliminar y 0 no actualizados.
Se liberarán 3170kB después de desempaquetar.
¿Desea continuar [S/n]?
(Leyendo la base de datos ...
188815 ficheros y directorios instalados actualmente.)
Desinstalando elvis-common ...

Thanks again!
--
--
Open Kairos http://www.openkairos.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -

--
ubuntu-users mailing list
ubuntu-users@(protected)
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.