PDA

View Full Version : KDE won't start after apt-get upgrade



adriang
10-06-2005, 02:34 PM
Hi,

I am a newbie (installed Knoppix/debian on my hdd 2 months ago).

today I ran "apt-get update" and "apt-get upgrade" as a root, and after upgrade I am presented the KDE login manager.
If I try to log in to KDE desktop it starts loading and when it says "initializing peipherals..." it restart KDE login manager.
If I try the IceWM manager or anything else it is okay. What do I have to do to get the KDE desktop working again?

Please help me fix this problem.
Thanks in advance

lotech
10-07-2005, 03:40 AM
Same here too, and after upgrade the startup time is lot longer, lot of unneeded service auto start.

adriang
10-07-2005, 12:02 PM
Indeed, lots of unneeded services.

If I login into console and launch "startx" I get KDE working, but with modified fonts (bigger ones).
How can I fix this? (I mean getting KDE working from KDE login manager, and runiing with original fonst)

tr
10-08-2005, 07:43 PM
If I try to log in to KDE desktop it starts loading and when it says "initializing peipherals..." it restart KDE login manager.
If I try the IceWM manager or anything else it is okay. What do I have to do to get the KDE desktop working again?
e

According to my experience, you have wrong owner of /tmp/.ICE-unix directory.

I'm just wondering this same thing because my remastering installs fine to hd but permissions are overwrited every time after login.

So do this:


chmod 1777 /tmp/.ICE-unix
chown root:root /tmp/.ICE-unix


I don't do why permissions must be set after every login. If you look at yout ~/.xsession-errors file you get more info of this matter.


-tapsa-

Markus
10-08-2005, 10:02 PM
See also with dpkg -l|grep KDE that the whole kde upgraded to 3.4.2 . Otherwise try a dist-upgrade to clean it up. All dependencies might not show by grepping just for KDE though.

adriang
10-11-2005, 01:42 PM
My KDE is still 3.3.2 (as it shows after dpkg -l | grep KE).

I entered in an console and run the instructions from tr and it worked. I didn't restarted yet to see if changes are kept.

Thank you tr and thank you all who posted on this thread.

If anyone have other solutions to this problem, please post them.

Markus
10-12-2005, 09:30 AM
looks like it could be this file /etc/init.d/x11-common

danielsan
10-17-2005, 11:49 AM
If I try to log in to KDE desktop it starts loading and when it says "initializing peipherals..." it restart KDE login manager.
If I try the IceWM manager or anything else it is okay. What do I have to do to get the KDE desktop working again?
e

According to my experience, you have wrong owner of /tmp/.ICE-unix directory.

I'm just wondering this same thing because my remastering installs fine to hd but permissions are overwrited every time after login.

So do this:


chmod 1777 /tmp/.ICE-unix
chown root:root /tmp/.ICE-unix


I don't do why permissions must be set after every login. If you look at yout ~/.xsession-errors file you get more info of this matter.


-tapsa-

tr,

it looks like the reason you need to do this everytime after login is because the file is deleted/recreated upon reboot. If you reboot, and first do a console login, you'll notice that the directories are not there. Once you login with KDE, and get booted, you can go back and the directory will be there.

A permanent fix? I wish I knew. If I find anything, I'll be sure to post it.

Markus
10-17-2005, 12:41 PM
This was also discussed on the kanotix forum. The fix was:
apt-get install x11-common
ln -fs /etc/init.d/x11-common /etc/rcS.d/S70x11-common

and make sure the chown and chmod commands are correct:
#grep ICE_DIR /etc/init.d/x11-common

ICE_DIR=/tmp/.ICE-unix
#log_begin_msg "Setting up ICE socket directory $ICE_DIR..."
echo -n "Setting up ICE socket directory $ICE_DIR..."
if [ -e $ICE_DIR ] && [ ! -d $ICE_DIR ]; then
mv $ICE_DIR $ICE_DIR.$$
mkdir -p $ICE_DIR
chown 0:0 $ICE_DIR
chmod 1777 $ICE_DIR
do_restorecon $ICE_DIR

danielsan
10-17-2005, 10:26 PM
Thanks Markus, works great now. I didn't realize the Kanotix forum was there. I'll be sure to visit both in the future.

syngin
10-26-2005, 08:09 AM
Is this a bug with the kernal or should it be fixed in the next version of knoppix. ie. 4.0.3?

Harry Kuhman
10-26-2005, 09:10 AM
Is this a bug with the kernal or should it be fixed in the next version of knoppix. ie. 4.0.3?
If a Knoppix CD breaks when you use it to scrape ice off of your windshild, is it a software error or was the media made wrong?

I believe the answer to your question may turn out to be neither. This does not seem to be a kernel issue, and the Knoppix disc works as intended, as a live disc.

adriang
10-27-2005, 01:53 PM
This was also discussed on the kanotix forum. The fix was:
apt-get install x11-common
ln -fs /etc/init.d/x11-common /etc/rcS.d/S70x11-common

and make sure the chown and chmod commands are correct:
#grep ICE_DIR /etc/init.d/x11-common

ICE_DIR=/tmp/.ICE-unix
#log_begin_msg "Setting up ICE socket directory $ICE_DIR..."
echo -n "Setting up ICE socket directory $ICE_DIR..."
if [ -e $ICE_DIR ] && [ ! -d $ICE_DIR ]; then
mv $ICE_DIR $ICE_DIR.$$
mkdir -p $ICE_DIR
chown 0:0 $ICE_DIR
chmod 1777 $ICE_DIR
do_restorecon $ICE_DIR

Thank you Markus for reply.

I did
apt-get install -s x11-common to simulate and it want to remove the xfree86-common package. Is this ok for Knoppix 3.8.2?

Markus
10-27-2005, 07:36 PM
Probably it can be removed
~$ apt-cache show xfree86-common
Package: xfree86-common
Priority: optional
Section: x11
Installed-Size: 360
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Architecture: all
Source: xorg-x11
Version: 6.8.99.901.dfsg.1-1
Depends: x11-common
Filename: pool/main/x/xorg-x11/xfree86-common_6.8.99.901.dfsg.1-1_all.deb
Size: 186014
MD5sum: c0c9ee33afd2102ebbf9571999371a37
Description: X Window System infrastructure transitional package
This package smooths upgrades from Debian 3.1 by depending on x11-common.
This transitional package is only depended upon by packages that install
files into /usr/X11R6 but have not yet corrected their dependencies.

I use xorg though and have these:
ii x11-common 6.8.2.dfsg.1-9 X Window System (X.Org) infrastructure
ii xfree86-common 6.8.2.dfsg.1-9 X Window System infrastructure transitional package
ii xserver-common 6.8.2.dfsg.1-9 files and utilities common to all X servers
So they can both be installed. Which version of xfree86-common do you have and which version of x11-common did you try to install?

adriang
10-28-2005, 06:07 AM
when I run apt-cache I get several packages and versions:

xfree86-common 6.8.99.801.dfsg.1-1
xfree86-common 6.8.2.dfsg.1-9
xfree86-common 6.8.2.dfsg.1-7
xfree86-common 4.3.0.dfsg.1-14sarge1 (conflicts xbase)
xfree86-common 4.3.0.dfsg.1-14 (conflicts xbase)
xfree86-common 4.3.0.dfsg.1-12 (conflicts xbase)

something seems to be wrong with my system.

Markus
10-28-2005, 06:26 AM
Which xserver do you have installed? dpkg -l |grep xserver

adriang
10-28-2005, 07:55 AM
I have:

ii xserver-common 4.3.0.dfsg.1-12.0.1
ii xserver-xfree86 4.3.0.dfsg.1-14sarge1
ii xserver-common-v3 3.3.6-44

What do you recommend me?

Markus
10-28-2005, 08:12 AM
That xserver-xfree86 is from stable. Problem is that x11-common doesn't exist on the same version. Do you have x11-common installed and it just wanted to upgrade it? In that case you would only need to symlink: ln -fs /etc/init.d/x11-common /etc/rcS.d/S70x11-common
If the package is missing now, either you can add the following lines to the end of /etc/init.d/bootmisc.sh
chmod 1777 /tmp/.ICE-unix
chown 0:0 /tmp/.ICE-unix

or you could dist-upgrade again and choose xorg as xserver since that's what debian is going towards. Note that this might well need some tinkering to get running again.

If you want my recommendation though, install debian with http://www.debianpure.com/

adriang
10-28-2005, 09:50 AM
I'll go for the variant with /etc/init.d/bootmisc.sh

Thanks alot for your help Markus.