User avatar
mike632t
Posts: 83
Joined: Sat May 19, 2012 7:56 pm
Location: UK
Contact: Website

Unable to install gdm

Sun May 27, 2012 8:22 pm

OK - I know there are some very good reasons why the Debian image doesn't use gdm, however I thought I might use my Pi to allow me to discover how to access a remote x-window session.

I've removed LXDE and installed a very mimimal XFCE desktop which I prefer and that is all working fine, however when I try to install gdm I get an error
root@unknown:~# apt-get install gdm --no-install-recommends
:
Unpacking gdm (from .../gdm_2.20.11-4_armel.deb) ...
:
Setting up gdm (2.20.11-4) ...
Adding group `gdm' (GID 103) ...
Done.
Warning: The home dir /var/lib/gdm you specified already exists.
Adding system user `gdm' (UID 101) ...
Adding new user `gdm' (UID 101) with group `gdm' ...
The home directory `/var/lib/gdm' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/gdm' does not belong to the user you are currently creating.
usermod: no changes
usermod: no changes
usermod: no changes
dpkg: error processing gdm (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
gdm
E: Sub-process /usr/bin/dpkg returned an error code (1)
Anyone know how to resolve this? I've tried removing and reinstalling gdm without success.

Thanks - Mike632T.

david3x3x3
Posts: 1
Joined: Sat Jun 02, 2012 2:57 am

Re: Unable to install gdm

Tue Jun 05, 2012 1:33 am

I think GDM is already installed by default. Just edit /etc/inittab to change the default runlevel to 5, and gdm will start automatically every time you boot.

User avatar
mike632t
Posts: 83
Joined: Sat May 19, 2012 7:56 pm
Location: UK
Contact: Website

Re: Unable to install gdm

Thu Jun 14, 2012 11:37 pm

It isn't that gdm won't start - it won't install properly. Interestingly I get the same error message the first time I try to install on x86 hardware but on that platform a --reinstall resolved the problem. I've also found that gdm3 installs without a hitch but would rather not use it as it has many more dependancies..

If anyone has any ideas how to solve this one let me know - as I'd like to get it working is possible..

Thanks

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Unable to install gdm

Fri Jun 15, 2012 8:14 am

It will not install properly because it is already installed.

gdm is part of the Debian image by default. To run it, use the command
sudo gdm
instead of startx

nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

Re: Unable to install gdm

Fri Jun 15, 2012 8:20 am

Try

Code: Select all

aptitude purge ~c
to remove orphaned configuration files
Perhaps look at the output of

Code: Select all

deborphan
too

Renaming /var/lib/gdm might be worth a try too (thouhg in my humble opinion such manual fiddling should not be necessary).

I did the same, replacing lxde with xfce, and simulated the installation of gdm, which worked fine:

Code: Select all

apt-get install -s gdm
gave no errors. The only thing i can think of that i run "aptitude purge ~c" and "deborphan" regulary (especially after bigger operations of installation/removal )

User avatar
mike632t
Posts: 83
Joined: Sat May 19, 2012 7:56 pm
Location: UK
Contact: Website

Re: Unable to install gdm

Sun Jun 17, 2012 7:48 pm

bredman wrote:It will not install properly because it is already installed.

gdm is part of the Debian image by default. To run it, use the command
sudo gdm
instead of startx
No I removed it using apt-get purge when trimmng down the 'standard' image to give me something more like a minimal install. I'm then using this a a starting point for several different builds.

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Unable to install gdm

Sun Jun 17, 2012 7:56 pm

mike632t wrote:I removed it using apt-get purge when trimmng down the 'standard' image to give me something more like a minimal install.
It would have been helpful to tell us this and not waste our time.

User avatar
mike632t
Posts: 83
Joined: Sat May 19, 2012 7:56 pm
Location: UK
Contact: Website

Re: Unable to install gdm

Sun Jun 17, 2012 10:03 pm

nadir wrote:Try

Code: Select all

aptitude purge ~c
to remove orphaned configuration files
Perhaps look at the output of

Code: Select all

deborphan
too

Renaming /var/lib/gdm might be worth a try too (thouhg in my humble opinion such manual fiddling should not be necessary).

I did the same, replacing lxde with xfce, and simulated the installation of gdm, which worked fine:

Code: Select all

apt-get install -s gdm
gave no errors. The only thing i can think of that i run "aptitude purge ~c" and "deborphan" regulary (especially after bigger operations of installation/removal )
I ran the following to tidy up as you sugested
# apt-get purge gdm
# aptitude purge ~c
# apt-get install gdm -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
pm-utils libpam-gnome-keyring
Recommended packages:
gdm-themes
The following NEW packages will be installed:
gdm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst gdm (2.20.11-4 Debian:6.0.5/stable [armel])
Conf gdm (2.20.11-4 Debian:6.0.5/stable [armel])
Although 'apt-get install gdm -s' succeeds, when I try to reinstall gdm using 'apt-get install gdm' it still fails with the same error message as above.

rocketero
Posts: 64
Joined: Wed Jul 11, 2012 5:45 pm

Re: Unable to install gdm

Thu Jul 12, 2012 1:49 am

GDM is already installed.
just edit the file:

/etc/inittab

change the line:

id:2:initdefault:

for:

id:5:initdefault:

After that run gdm setup and make it login automatically.

Return to “Debian”