URGENTE: errore stranissimo di X che si ferma sul login

5 risposte [Ultimo contenuto]
Ritratto di iammyr
iammyr
(Junior)
Offline
Junior
Iscritto: 29/03/2008
Messaggi: 17

dopo aver inserito i dati di login (nell'interfaccia grafica, quindi con X già partito)
compare il seguente errore:

"Impossibile aprire o creare il file "(null)"; questo indica che ci potrebbe essere un problema con la propria configurazione poichè molti programmi devono poter creare file nella directory home.
Errore "failed to create file '/gconf-test-locking-file-VT1QFU': "Permission denied" (errno = 13)"

poi dà la possibilità di visualizzare il contenuto di ~/.xsession-errors che risulta essere:
"/etc/gdm/Xsession: Beginning session setup...
/etc/profile: line 4: id: command not found
/etc/profile: line4: [: : integer expression expected
Impossibile rimuovere il file (null): indirizzo non valido
gconf-sanity-check-2 did not pass, logging back out"

poi premendo 'ok' esce un attimo da X e poi rientra e riappare la schermata di login...e così via all'infinito...

P.S.
scusate se ho scritto 'URGENTE' nel titolo della discussione, non voglio fare torto alle altre discussioni ma...è che mi serve per studio accedere a Debian e ho una consegna abbastanza vicina....

grazie in anticipo a tutti colo che cercheranno di aiutarmi....e speriamo di non dover reinstallare tutto (è già la terza volta che X mi dà problemi e le precedenti volte mi è toccato reinstallare tutto debian data la mia ignoranza nell'affrontare sti problemi assurdi..)

P.P.S.
ieri prima di spegnerlo mentre funzionava tutto, non ho nemmeno installato niente...ho dato il comando di installare tomcat, tomcat-admin etc ma ha trovato che erano già installati e quindi niente di fatto PUNTO.
non ho fatto altro...e non ho cambiato i permessi a niente nè fatto aggiornamenti....assurdo... :cry: Sad

"The further we go And older we grow The more we know The less we show"(primary)

Ritratto di iammyr
iammyr
(Junior)
Offline
Junior
Iscritto: 29/03/2008
Messaggi: 17

dietro consiglio:
1 - ho sostituito il file /etc/profile con uno di un altro utente, funzionante
ma in ~/xsession-errors continua a comparire
/etc/profile: line 4: id: command not found
etc identico a prima
inoltre con
sh /etc/profile
in $? c'è 0 -> nessun errore

2 - ho controllato se è installato coreutils: è installato

3 - ho lenny (con alcuni pacchetti non-free) che non ho installato da zero: ho aggiornato etch

"The further we go And older we grow The more we know The less we show"(primary)

Ritratto di gabry
gabry
(Monster)
Offline
Monster
Iscritto: 29/10/2006
Messaggi: 395

prova a dare tutti i permessi possibili a /tmp:
chmod -R a+rwx /tmp
(soluzione presa da qui).

se il login non ripartisse, può anche essere un errore dovuto agli smanettamenti che hai detto di aver fatto, ma spero per te di no Laughing

ciao ciao

"Non e' la legge che decide cosa e' giusto e cosa e' sbagliato"
R. Stallman

Ritratto di iammyr
iammyr
(Junior)
Offline
Junior
Iscritto: 29/03/2008
Messaggi: 17

gabry: grazie moltissimo per la tua risposta

purtroppo non ha funzionato, ma ci sono degli aggiornamenti:

dietro consiglio sostituendo in /etc/profile id con /usr/bin/id nella riga 4, sono scomparsi gli errori dalla riga 4 in .xsession-errors, che adesso cmq contiene acnora errori ovvero:
""/etc/gdm/Xsession: Beginning session setup...
Impossibile rimuovere il file (null): indirizzo non valido
gconf-sanity-check-2 did not pass, logging back out"

- ho rinominato i file ~/.gconf*
- ho inserito 'set -x' all'inzio del file /etc/gdm/Xsession
e adesso in xsession.-errors ho questo (in pastezone: http://paste.debian.net/15363/):

+ PROGNAME=Xsession
+ OPTIONFILE=/etc/X11/Xsession.options
+ SYSRESOURCES=/etc/X11/Xresources
+ USRRESOURCES=/home/myr/.Xresources
+ SYSSESSIONDIR=/etc/X11/Xsession.d
+ USERXSESSION=/home/myr/.xsession
+ USERXSESSIONRC=/home/myr/.xsessionrc
+ ALTUSERXSESSION=/home/myr/.Xsession
+ echo '/etc/gdm/Xsession: Beginning session setup...'
/etc/gdm/Xsession: Beginning session setup...
+ test -f /etc/profile
+ . /etc/profile
+++ /usr/bin/id -u
++ '[' 1000 -eq 0 ']'
++ PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
++ '[' '' ']'
++ export PATH
++ umask 022
+ test -f /home/myr/.profile
+ test -f /etc/xprofile
+ test -f /home/myr/.xprofile
+ '[' -x /usr/lib/gdm/gdmtranslate ']'
+ gdmtranslate=/usr/lib/gdm/gdmtranslate
++ which zenity
+ zenity=/usr/bin/zenity
++ which xmessage
+ xmessage=/usr/bin/xmessage
+ command=default
+ '[' -z default ']'
+ '[' xdefault = xfailsafe ']'
++ which freetemp
+ freetemp=
+ '[' -n '' ']'
+ usermodmap=/home/myr/.Xmodmap
+ userxkbmap=/home/myr/.Xkbmap
+ '[' -f /home/myr/.Xkbmap ']'
+ '[' -z '' ']'
+ '[' -f /home/myr/.Xmodmap ']'
+ unset XKB_IN_USE
+ '[' -n it_IT.UTF-8 ']'
+ '[' -n '' ']'
+ '[' xdefault = xcustom ']'
++ run_parts /etc/X11/Xsession.d
++ '[' -z /etc/X11/Xsession.d ']'
++ '[' '!' -d /etc/X11/Xsession.d ']'
+++ /bin/ls /etc/X11/Xsession.d
++ for F in '$(/bin/ls $1)'
++ expr 20x11-common_process-args : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/20x11-common_process-args ']'
++ echo /etc/X11/Xsession.d/20x11-common_process-args
++ for F in '$(/bin/ls $1)'
++ expr 30x11-common_xresources : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/30x11-common_xresources ']'
++ echo /etc/X11/Xsession.d/30x11-common_xresources
++ for F in '$(/bin/ls $1)'
++ expr 40x11-common_xsessionrc : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/40x11-common_xsessionrc ']'
++ echo /etc/X11/Xsession.d/40x11-common_xsessionrc
++ for F in '$(/bin/ls $1)'
++ expr 50x11-common_determine-startup : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/50x11-common_determine-startup ']'
++ echo /etc/X11/Xsession.d/50x11-common_determine-startup
++ for F in '$(/bin/ls $1)'
++ expr 55gnome-session_gnomerc : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/55gnome-session_gnomerc ']'
++ echo /etc/X11/Xsession.d/55gnome-session_gnomerc
++ for F in '$(/bin/ls $1)'
++ expr 75dbus_dbus-launch : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/75dbus_dbus-launch ']'
++ echo /etc/X11/Xsession.d/75dbus_dbus-launch
++ for F in '$(/bin/ls $1)'
++ expr 90x11-common_ssh-agent : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/90x11-common_ssh-agent ']'
++ echo /etc/X11/Xsession.d/90x11-common_ssh-agent
++ for F in '$(/bin/ls $1)'
++ expr 99x11-common_start : '[[:alnum:]_-]\+$'
++ '[' -f /etc/X11/Xsession.d/99x11-common_start ']'
++ echo /etc/X11/Xsession.d/99x11-common_start
+ SESSIONFILES='/etc/X11/Xsession.d/20x11-common_process-args
/etc/X11/Xsession.d/30x11-common_xresources
/etc/X11/Xsession.d/40x11-common_xsessionrc
/etc/X11/Xsession.d/50x11-common_determine-startup
/etc/X11/Xsession.d/55gnome-session_gnomerc
/etc/X11/Xsession.d/75dbus_dbus-launch
/etc/X11/Xsession.d/90x11-common_ssh-agent
/etc/X11/Xsession.d/99x11-common_start'
+ '[' -n '/etc/X11/Xsession.d/20x11-common_process-args
/etc/X11/Xsession.d/30x11-common_xresources
/etc/X11/Xsession.d/40x11-common_xsessionrc
/etc/X11/Xsession.d/50x11-common_determine-startup
/etc/X11/Xsession.d/55gnome-session_gnomerc
/etc/X11/Xsession.d/75dbus_dbus-launch
/etc/X11/Xsession.d/90x11-common_ssh-agent
/etc/X11/Xsession.d/99x11-common_start' ']'
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/20x11-common_process-args
++ case $# in
++ case "$1" in
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/30x11-common_xresources
++ /usr/bin/which xrdb
++ '[' -d /etc/X11/Xresources ']'
+++ run-parts --list /etc/X11/Xresources
++ RESOURCEFILES=/etc/X11/Xresources/x11-common
++ '[' -n /etc/X11/Xresources/x11-common ']'
++ for RESOURCEFILE in '$RESOURCEFILES'
++ xrdb -merge /etc/X11/Xresources/x11-common
++ grep -qs '^allow-user-resources' /etc/X11/Xsession.options
++ '[' -f /home/myr/.Xresources ']'
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/40x11-common_xsessionrc
++ '[' -r /home/myr/.xsessionrc ']'
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/50x11-common_determine-startup
++ '[' -z '' ']'
++ grep -qs '^allow-user-xsession' /etc/X11/Xsession.options
++ for STARTUPFILE in '"$USERXSESSION"' '"$ALTUSERXSESSION"'
++ '[' -e /home/myr/.xsession ']'
++ for STARTUPFILE in '"$USERXSESSION"' '"$ALTUSERXSESSION"'
++ '[' -e /home/myr/.Xsession ']'
++ '[' -z '' ']'
++ '[' -x /usr/bin/x-session-manager ']'
++ STARTUP=x-session-manager
++ '[' -z x-session-manager ']'
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/55gnome-session_gnomerc
+++ basename x-session-manager
+++ cut '-d ' -f1
++ BASESTARTUP=x-session-manager
+++ readlink /etc/alternatives/x-session-manager
++ '[' x-session-manager = gnome-session -o '(' x-session-manager = x-session-manager -a /usr/bin/gnome-session = /usr/bin/gnome-session ')' ']'
++ GNOMERC=/home/myr/.gnomerc
++ '[' -r /home/myr/.gnomerc ']'
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/75dbus_dbus-launch
++ STARTDBUS=
++ DBUSLAUNCH=/usr/bin/dbus-launch
++ grep -qs '^use-session-dbus' /etc/X11/Xsession.options
++ '[' -x /usr/bin/dbus-launch ']'
++ STARTDBUS=yes
++ '[' -n yes ']'
++ STARTUP='/usr/bin/dbus-launch --exit-with-session x-session-manager'
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/90x11-common_ssh-agent
++ STARTSSH=
++ SSHAGENT=/usr/bin/ssh-agent
++ SSHAGENTARGS=
++ grep -qs '^use-ssh-agent' /etc/X11/Xsession.options
++ '[' -x /usr/bin/ssh-agent ']'
++ '[' -z '' ']'
++ '[' -z '' ']'
++ STARTSSH=yes
++ '[' -f /usr/bin/ssh-add1 ']'
++ '[' -n yes ']'
++ STARTUP='/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager'
+ for SESSIONFILE in '$SESSIONFILES'
+ . /etc/X11/Xsession.d/99x11-common_start
++ exec /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager
Impossibile rimuovere il file (null): Indirizzo non valido
gconf-sanity-check-2 did not pass, logging back out

"The further we go And older we grow The more we know The less we show"(primary)

Ritratto di gabry
gabry
(Monster)
Offline
Monster
Iscritto: 29/10/2006
Messaggi: 395

prova a disinstallare con l'opzione --purge tutta la parte di grafica:
apt-get remove --purge gnome* x-window-system*
riavvia il pc e prova a reinstallare.

ciao ciao

"Non e' la legge che decide cosa e' giusto e cosa e' sbagliato"
R. Stallman

Ritratto di giucam
giucam
(Geek)
Offline
Geek
Iscritto: 29/03/2005
Messaggi: 140

sembrerebbe come un problema di permessi. non è che magari smanettando per sbaglio ti sei tolto i permessi di scrittura sulla tua home? prova magari anche a creare un nuovo utente e vedi se va

coldplink:idea: