
저는 VNC를 작동시키려고 노력하고 있었는데, 다시 시작한 후 Ubuntu 14.04에 로그인할 수 없다는 사실을 발견했을 때 지금은 기억나지 않는 많은 변경 사항을 적용했습니다. 정상적으로 인증되었다고 생각하는데 로그인 화면으로 돌아갑니다. Alt-F1 콘솔을 통해 게스트로 로그인할 수 있습니다.
나는 오류를 검색하고 많은 것을 시도했지만 성공하지 못했고 이제는 단서가 없습니다. 아래 출력을 참조하세요. XFCE는 정상적으로 로드되지만 lightdm을 다시 가져오고 싶습니다.
나는 여기서 무슨 일이 일어나고 있는지에 대해 몇 가지 조언과 설명을 할 수 있습니다. 감사합니다 마틴
-rwxr-xr-x 1 martin martin 50 Mar 14 22:13 .Xauthority* (만약을 대비해 이 파일에 대한 권한을 부여하는 데 약간 지나친 노력을 기울였습니다.)
martin@thrio:~$ cat .xsession-errors
ibus용 스크립트가 run_im에서 시작되었습니다.
run_im에서 자동 시작을 위한 스크립트입니다.
run_im에서 시작된 기본 스크립트입니다.
init: gnome-session(Unity) 메인 프로세스(2745)가 상태 1로 종료되었습니다.
init: 알림을 받은 D-Bus 버스에서 연결이 끊어졌습니다.
init: logrotate 메인 프로세스(2596)가 TERM 신호에 의해 종료되었습니다.
init: update-notifier-crash (/var/crash /_usr_lib_ibus_ibus-ui-gtk3.1000.crash) 메인 프로세스 > (2645) TERM 신호
init에 의해 종료됨: update-notifier-crash (/var/crash/_usr_lib_unity_unity-panel-service.1000.crash) 메인 > 프로세스(2646) TERM 신호
init에 의해 종료됨: upstart-dbus-session-bridge 메인 프로세스(2697)가 상태 1로 종료됨
init: xsession-init 메인 프로세스(2705) TERM 신호
init에 의해 종료됨: hud 메인 프로세스(2715) TERM 신호
초기화에 의해 종료됨: unity-panel-service 주 프로세스(2753)가 TERM 신호에 의해 종료되었습니다.
init: window-stack-bridge 주 프로세스(2620)가 KILL 신호에 의해 종료되었습니다.martin@thrio:~$ unity --replace
stop: 알 수 없는 작업: unity-panel-service
start: 알 수 없는 작업: unity-panel-service
compiz(core) - 정보: 플러그인 로드 중: core
compiz(core) - 정보: 플러그인 시작 : core
잘못된 MIT-MAGIC-COOKIE-1 keycompiz(core) - 치명적: 디스플레이를 열 수 없습니다:0
compiz(core) - 정보: 플러그인 중지 중: core
compiz(core) - 정보: 플러그인 언로드 중: core
디스플레이 설정과 관련이 있을 수 있습니다. 원래 VNC가 작동하도록 하려고 했으나 작동하지 않는 것처럼 보이는 기본 암호화를 끄려고 했으며, 디스플레이와 관련하여 따르려고 했던 일부 지침도 있었습니다.
/var/log/lightdm/lightdm.log에서
[+522.72s] DEBUG: Session pid=2785: Authenticate result for user martin: Success
[+522.72s] DEBUG: Session pid=2785: User martin authorized
[+522.72s] DEBUG: Session pid=2785: Greeter requests session Ubuntu
522.72s] DEBUG: Seat: Stopping greeter; display server will be re-used for user session
[+522.72s] DEBUG: Session pid=2785: Sending SIGTERM
[+522.73s] DEBUG: Session pid=2785: Exited with return value 0
[+522.73s] DEBUG: Seat: Session stopped
[+522.73s] DEBUG: Seat: Greeter stopped, running session
[+522.73s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+522.73s] DEBUG: Session pid=2845: Running command /usr/sbin/lightdm-session gnome-session --session=Ubuntu
[+522.73s] DEBUG: Creating shared data directory /var/lib/lightdm-data/martin
[+522.73s] DEBUG: Session pid=2845: Logging to .xsession-errors
[+522.74s] DEBUG: Activating VT 7
[+522.74s] DEBUG: Activating login1 session c4
[+524.24s] DEBUG: User /org/freedesktop/Accounts/User1000 changed
[+528.25s] DEBUG: Session pid=2845: Exited with return value 0
[+528.25s] DEBUG: Seat: Session stopped
[+528.25s] DEBUG: Seat: Stopping display server, no sessions require it
[+528.25s] DEBUG: Sending signal 15 to process 2778
[+528.36s] DEBUG: Process 2778 exited with return value 0
[+528.36s] DEBUG: DisplayServer x-0: X server stopped
[+528.36s] DEBUG: Releasing VT 7
[+528.36s] DEBUG: DisplayServer x-0: Removing X server authority /var/run/lightdm/root/:0
[+528.36s] DEBUG: Seat: Display server stopped
[+528.36s] DEBUG: Seat: Active display server stopped, starting greeter
[+528.36s] DEBUG: Seat: Creating greeter session
[+528.36s] DEBUG: Seat: Creating display server of type x
[+528.36s] DEBUG: Using VT 7
[+528.36s] DEBUG: Seat: Starting local X display on VT 7
[+528.36s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+528.36s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+528.36s] DEBUG: DisplayServer x-0: Launching X Server
[+528.36s] DEBUG: Launching process 3516: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+528.36s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+528.43s] DEBUG: Got signal 10 from process 3516
[+528.43s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+528.43s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+528.43s] DEBUG: Seat: Display server ready, starting session authentication
[+528.43s] DEBUG: Session pid=3523: Started with service 'lightdm-greeter', username 'lightdm'
[+528.44s] DEBUG: Session pid=3523: Authentication complete with return value 0: Success
[+528.44s] DEBUG: Seat: Session authenticated, running command
[+528.44s] DEBUG: Session pid=3523: Running command /usr/lib/lightdm/lightdm-greeter- session /usr/sbin/unity-greeter
[+528.44s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+528.44s] DEBUG: Session pid=3523: Logging to /var/log/lightdm/x-0-greeter.log
[+528.45s] DEBUG: Activating VT 7
[+528.45s] DEBUG: Activating login1 session c5
[+528.57s] DEBUG: Session pid=3523: Greeter connected version=1.10.4
[+528.69s] DEBUG: Session pid=3523: Greeter start authentication for martin
[+528.69s] DEBUG: Session pid=3583: Started with service 'lightdm', username 'martin'
[+528.70s] DEBUG: Session pid=3583: Got 1 message(s) from PAM
[+528.70s] DEBUG: Session pid=3523: Prompt greeter with 1 message(s)
[+529.73s] DEBUG: User /org/freedesktop/Accounts/User1000 changed
martin@thrio:~$ uname -r
3.13.0-46-generic
martin@thrio:~$ lsmod|grep fglrx
martin@thrio:~$
martin@thrio:/var/log$ lshw -c video
WARNING: you should run this program as super-user.
*-display
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:48 memory:f7400000-f77fffff memory:e0000000-efffffff ioport:f000 (size=64)
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
martin@thrio:/var/log$ modinfo
modinfo: ERROR: missing module or filename.
검토 후 추가 정보
"드라이버를 설치하셨나요? TTY(Ctrl+Alt+F1..F6)를 통해 어떤 사용자와도 연결할 수 있나요?" 드라이버 없음 - TTY 로그인에 예
"모든 파일을 복사를 위해 /home 디렉토리로 이동하고 kdm을 사용하여 로그인을 시도했습니다(저는 Kubuntu를 사용합니다). kdm을 로그인 화면으로 선택하기 위해 sudo dpkg-reconfigure lightdm을 실행하고 kdm을 선택했습니다. kdm을 사용하면 다음을 수행할 수 있습니다. 이전 세션이나 기본 세션을 선택하세요."
KDM 설치(sudo apt-get install KDM) - 설치 중에 KDM 또는 lightDM을 선택할 수 있는 옵션이 있었고 lightDM을 선택했습니다. 재부팅됨 - 변경 사항 없음
홈 디렉토리 /home/martin을 /home/martinbak로 이동하고 재부팅됨 - 변경 사항 없음
martin@thrio:~$ sudo dpkg-reconfigure kdm and rebooted - entered KDM shell - error "cannot enter home directory. using /." - still would not log in .
martin@thrio:~$ sudo dpkg-reconfigure lightdm and switched back to lightdm - rebooted - same login loop
martin@thrio:/home$ sudo mv martinbak martin and rebooted.
Chown .Xauthority - 이전에 확인되었으며 정확합니다.
Chown /tmp - 이전에 확인되었으며 정확합니다.
"둘 다 아니라면
1.dpkg-reconfigure lightdm
2를 사용하거나 제거하고 다시 설치하는 것이 좋습니다."
dpkg-reconfigure가 시도되었습니다
martin@thrio:~$ sudo apt-get purge lightdm
"lightdm 제거 중(1.10.4-0ubuntu2)...
lightdm(1.10.4-0ubuntu2)에 대한 구성 파일 제거 중...
사용자 lightdm 제거 중' **userdel: 사용자 lightdm은 현재 프로세스 2092에서 사용됩니다. /usr/sbin/deluser: `/usr/sbin/userdel lightdm'이 오류 코드 8을 반환했습니다. dpkg: 패키지 lightdm(--purge 처리 중 오류가 발생했습니다 . ): 제거 후 스크립트가 설치된 하위 프로세스에서 오류 종료 상태 1을 반환했습니다. man-db(2.6.7.1-1ubuntu1)에 대한 처리 트리거... 처리하는 동안 오류가 발생했습니다. lightdm E: 하위 프로세스 /usr/bin/dpkg가 오류를 반환했습니다. 코드 (1)" ** martin@thrio:~$ sudo apt-get install lightdm lightdm' ...
Warning: group
완전히 제거하고 다시 설치하는 것처럼 보이지 않습니다.
"거의 포기할 뻔한 후 .xsession-errors를 살펴보고 내 .profile에 오타가 있음을 발견했습니다."
나는 이 파일을 편집하지 않았지만 문제가 있다면 내가 무엇을 찾고 있는지 알 수 없을 것입니다.
`martin@thrio:~$ cat .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
martin@thrio:~$ `
_sudo mv ~/.Xauthority ~/.Xauthority.backup
sudo service lightdm restart_
martin@thrio:~$ mv ~/.Xauthority ~/.Xauthority.bak
martin@thrio:~$ sudo service lightdm restart
[sudo] password for martin:
lightdm stop/waiting
lightdm start/running, process 3032
martin@thrio:~$
여전히 로그인 루프에 갇혀 있습니다.
"xubuntu-desktop을 다시 설치했는데 이제 수정되었습니다."
martin@thrio:~$ sudo apt-get purge xubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'xubuntu-desktop' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
martin@thrio:~$
_"그런 다음 sudo apt-get install gdm 을 입력하세요. 설치하고 sudo dpkg-reconfigure gdm 을 입력한 후 프롬프트에 따라 로그인 관리자로 설정하세요.
Ctrl + Alt+ F7을 눌러 이제 표시될 로그인 화면으로 돌아갑니다. 로그인이 작동하면 문제가 해결된 것입니다!
그렇지 않은 경우 전체 화면 터미널로 돌아가서 sudo dpkg-reconfigure lightdm을 입력하여 LigthDM을 다시 로그인 관리자로 설정하세요. 이제 이것이 확실히 그래픽 드라이버에 문제가 있다는 것을 알게 되었습니다."_
sudo apt-get install gdm
다시 시작되었습니다 - 로그인 루프. (그래서 이것은 그래픽 드라이버에 문제가 있음을 나타냅니다.
martin@thrio:~$ lsmod|grep fglrx
martin@thrio:~$
이 검색에 대한 결과를 얻어야 합니까?
답변1
귀하의 질문에 답변을 주었지만 기록을 위해 이 글을 작성하십시오. 명령 프롬프트에 사용자 이름을 입력 ctrl + alt + F1
하고 로그인합니다.
user@dell$ ls -l ~/.ICEauthority
-rw------- root root 3668 May 28 09:28 /home/user/.ICEauthority
user@dell$ sudo chmod 777 ~/.ICEauthority
password:
user@dell$ ls -l ~/.ICEauthority
-rwxrwxrwx root root 3668 May 28 09:28 /home/user/.ICEauthority
ctrl + alt + F7
로그인이 작동했습니다.
답변2
내 .xsession-errors에는 원래 질문에 나열된 것과 유사한 오류가 있습니다. 나 역시 @Martin이 시도한 거의 모든 것을 시도했습니다.
마지막으로 나에게 도움이 된 것은 링크의 답변이었습니다.lightdm이 시작되지 않습니다, 여기에는 기본적으로 lightdm 중지, xserver 재구성, lightdm 시작 및 시스템 재부팅이 포함됩니다. 그 후 원래 사용자 계정으로 로그인할 수 있었습니다.
참고: Ubuntu 14.04 LTS(lightdm 사용)를 실행하는 Lenovo T530 시스템이 있고 Cuda 6.5용 nvidia 드라이버가 설치되어 있습니다.
답변3
깨진 패키지가 많이 있습니다. 패키지를 추적해야합니다. 강제 설치를 시도해 보세요. 이 명령을 실행하면 '보통' 손상된 패키지에 대한 피드백을 제공하여 dpkg 하위 프로세스[1]가 발생하는 이유를 알 수 있습니다. lightdm 데이터도 제거되지 않았고 lightdm 그룹 ID가 여전히 존재할 수 있습니다. /etc/group에서 cat을 실행하여 확인하세요.
:~$ cat /etc/group
:~$ sudo apt-get -f install -y
또한 디스플레이 변수에 문제가 있고 /tmp/.x0-lock 키가 이전과 다르기 때문에 계속 잠겨 있습니다. 마법 쿠키를 손상시키면 깊은 구속에 빠지게 됩니다. ubuntu-desktop 등을 제거해야 할 수도 있습니다. 지금은 GDM과 openbox를 설치하세요.
ctl-alt-F6
:~$ sudo apt-get install openbox -y
:~$ sudo apt-get install gdm -y
gdm을 디스플레이 관리자로 만들고 openbox를 창 관리자로 만들려면 옵션을 선택하세요. 이것이 문제에 대한 가장 간단한 해결책일 수 있습니다.
원한다면 피드백과 함께 답장을 보내주세요 ??!!