package lxdm 0.2.0-0ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 2

Bug #616188 reported by Ben
90
This bug affects 11 people
Affects Status Importance Assigned to Milestone
LXDE
New
Undecided
Unassigned
lxdm (Ubuntu)
Fix Released
Medium
Julien Lavergne

Bug Description

Binary package hint: lxdm

lxdm 0.2.0-0ubuntu1 failed to upgrade

ProblemType: Package
DistroRelease: Ubuntu 10.10
Package: lxdm 0.2.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
Architecture: i386
Date: Wed Aug 11 17:25:11 2010
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Lubuntu 10.04 "Lucid Lynx" - i386 (20100429)
SourcePackage: lxdm
Title: package lxdm 0.2.0-0ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 2

Revision history for this message
Ben (mcdonald-ben) wrote :
Julien Lavergne (gilir)
Changed in lxdm (Ubuntu):
status: New → In Progress
assignee: nobody → Julien Lavergne (gilir)
importance: Undecided → Medium
Revision history for this message
Julien Lavergne (gilir) wrote :

I uploaded a possible fix in my PPA : https://launchpad.net/~gilir/+archive/unstable/ (lxdm version 0.2.0-0ubuntu2~ppa1). Could someone test with an upgrade to see if the bug is gone with this PPA ? Thanks.

Revision history for this message
harvest316 (harvest316) wrote :

I sorted my 404 errors with the PPA, but I'm afraid your new version doesnt change things...

$ sudo dpkg-reconfigure lxdm
[sudo] password for harvest:
/usr/sbin/dpkg-reconfigure: lxdm is broken or not fully installed

$ sudo apt-get remove lxdm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libmodplug0c2
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  lxdm
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 926kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 347583 files and directories currently installed.)
Removing lxdm ...
update-alternatives: error: readlink(/etc/alternatives/lxdm.conf) failed: Invalid argument
dpkg: error processing lxdm (--remove):
 subprocess installed pre-removal script returned error exit status 2
Errors were encountered while processing:
 lxdm
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
morais.anderso@yahoo.com.br (morais-anderso) wrote :

If you make "/etc/alternatives/lxdm.conf" a simbolic link of "/etc/lxdm/default.conf" it will work:

- sudo ln -s /etc/lxdm/default.conf /etc/alternatives/lxdm.conf

Revision history for this message
glenn opdycke-hansen (glenn.op) wrote :

Hi, if someone could provide additional information on how to test the PPA, I could try it.

Revision history for this message
glenn opdycke-hansen (glenn.op) wrote :

I think i was able to add the ppa. Updated and got these messages. (hmm)

Ign http://ppa.launchpad.net/gilir/unstable/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/gilir/unstable/ubuntu/ maverick/main Translation-en_US

Upgrade messages include this:

Setting up lxdm (0.2.0-0ubuntu2~ppa1) ...
update-alternatives: error: readlink(/etc/alternatives/lxdm.conf) failed: Invalid argument
dpkg: error processing lxdm (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up libimobiledevice1 (1.0.2-1~ppa1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 lxdm
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks for the tests, I also tested again and have the same result. For now, no need to test more, I'll try to find another fix.

Revision history for this message
Oliver Schonrock (oliver-realtsp) wrote :

i followed the tip from
<email address hidden>

sudo ln -s /etc/lxdm/default.conf /etc/alternatives/lxdm.conf

but I had to

sudo /etc/alternatives/lxdm.conf

first

then worked fine

Revision history for this message
Oliver Schonrock (oliver-realtsp) wrote :

sorry i meant
sudo rm /etc/alternatives/lxdm.conf

Revision history for this message
glenn opdycke-hansen (glenn.op) wrote : Re: [Bug 616188] Re: package lxdm 0.2.0-0ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 2

A way to combine the rm and ln is to execute:
sudo ln -s -f /etc/lxdm/default.conf /etc/alternatives/lxdm.conf
I tried this.

How can I tell if the problem is resolved. I see that the latest problem
report mentioned that lxdm is not a ubuntu package.

--glenn

On Sat, Oct 2, 2010 at 00:22, Oliver Schonrock <email address hidden>wrote:

> i followed the tip from
> <email address hidden>
>
> sudo ln -s /etc/lxdm/default.conf /etc/alternatives/lxdm.conf
>
> but I had to
>
> sudo /etc/alternatives/lxdm.conf
>
> first
>
> then worked fine
>
> --
> package lxdm 0.2.0-0ubuntu1 failed to install/upgrade: ErrorMessage:
> subprocess installed post-installation script returned error exit status 2
> https://bugs.launchpad.net/bugs/616188
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
glenn opdycke-hansen (glenn.op) wrote :

removed lxdm package from system. Perhaps this problem should be resolved/closed.

Revision history for this message
Julien Lavergne (gilir) wrote :

Another update from my PPA (my PPA : https://launchpad.net/~gilir/+archive/unstable/ , lxdm version 0.2.0-0ubuntu2~ppa2) should fix the problem. Can someone upgrade and see if it's still an issue ?

Revision history for this message
harvest316 (harvest316) wrote :

Your PPA version works, Julien, you're a legend! Very glad to have this finally fixed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxdm - 0.2.0-0ubuntu2

---------------
lxdm (0.2.0-0ubuntu2) maverick; urgency=low

  * debian/lxdm.prerm:
   - Don't remove alternative on upgrade.
  * debian/lxdm.postinst:
   - Remove alternatives file if it's not a symlink (LP: #616188).
 -- Julien Lavergne <email address hidden> Sun, 03 Oct 2010 16:16:36 +0200

Changed in lxdm (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
alexelprogramador (alexvideos) wrote :

when i tried to uninstall it, shows that bug:

root@ibm:~# apt-get remove lxdm
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
  lxdm
0 actualizados, 0 se instalarán, 1 para eliminar y 0 no actualizados.
Se liberarán 909kB después de esta operación.
¿Desea continuar [S/n]? s
(Leyendo la base de datos ... 00%
111593 ficheros y directorios instalados actualmente.)
Desinstalando lxdm ...
stop: Unknown instance:
update-alternatives: error: readlink(/etc/alternatives/lxdm.conf) falló: Argumento inválido
dpkg: error al procesar lxdm (--remove):
 el subproceso script pre-removal instalado devolvió el código de salida de error 2
Se encontraron errores al procesar:
 lxdm
E: Sub-process /usr/bin/dpkg returned an error code (1)

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.