
저는 Debian 8을 사용했는데 오늘 Debian 9로 업그레이드하기로 결정했습니다. 다음을 실행하여 업그레이드했습니다.
sed 's/jessie/stretch/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade
나는 그 이후에 꽤 이상한 일이 벌어지고 있음을 발견했습니다. 첫째, GRUB 부트로더가 어떤 면에서는 손상되었습니다. 시스템을 재부팅하면 화살표 키가 작동하지 않지만(단, 화살표 키를 사용하면 카운트다운이 중지됨) 시스템을 종료했다가 다시 켜면 화살표 키가 작동합니다.
또한 시스템은 이제 GUI 로그인으로 부팅하는 데 실패하고 대신 tty로 부팅됩니다. 부팅하는 동안 tty를 로드하기 전에 나타나는 내용은 다음과 같습니다.
startx를 수동으로 실행해 보았지만 작동하지 않았고 다음과 같은 오류 1이 발생했습니다.
Failed to load module fglrx (Module does not exist 0)
나는 달렸다
sudo apt-get install fglrx
그런데 설치 후보가 없다고 하더군요. 이 문제를 어떻게 해결할 수 있나요?
편집: 내가 실행한 일부 명령의 추가 출력입니다. systemctl status lightdm.service
준:
lightdm.service - Light Display Manager
Loaded: loaded (/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-07-06 19:17:26 IST; 2min 18s ago
Docs: man:lightdm(1)
Process: 864 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
Process: 860 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] (code=exited, status=0/SUCCESS)
Main PID: 864 (code=exited, status=1/FAILURE)
출력은 다음과 같습니다 sudo startx
.
X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
Current Operating System: Linux rahul-pc 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-3-amd64 root=UUID=4fb31b35-931b-4790-8dff-f0b97dd35154 ro quiet
Build Date: 03 March 2017 03:14:41PM
xorg-server 2:1.19.2-1 (https://www.debian.org/support)
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 6 19:13:40 2017
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
sudo startx
댓글에서 언급했듯이 업그레이드로 인해 커널도 3.16에서 4.9로 변경되었으며 이러한 커널 및 OS 버전을 보여주는 것이 흥미로웠습니다 .
내 그래픽 카드는 다음과 같습니다.
$ lspci -vnn | grep VGA – Vlastimil 16 hours ago
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] [1002:9851] (rev 45) (prog-if 00 [VGA controller])
답변1
내가 옳다면 이것이 트릭을 수행할 수 있습니다.
이 파일을 생성합니다:
xorg.conf.new2
편집기로 복사하여 붙여넣으세요. 예를 들어 nano
다음과 같습니다.
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Card0"
Driver "amdgpu"
BusID "PCI:0:1:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
다음과 같이 어디에든 파일을 저장합니다.
/root/xorg.conf.new2
그리고 다음을 실행하세요:
X -config /root/xorg.conf.new2
그 다음에:
sudo cp /root/xorg.conf.new2 /etc/X11/xorg.conf
그리고 다음으로 다시 시작하세요:
sudo reboot
답변2
나는 똑같은 문제가있었습니다.
실수로 3.16에서 4.9로 업그레이드되었습니다. 업그레이드 후 새 버전으로 부팅하면 다음과 같이 표시됩니다.
[실패] 조명 디스플레이 관리자를 시작하지 못했습니다.
하지만 이전 버전은 잘 돌아가더군요.
NVIDIA GeForce GTX 750 Ti 그래픽 카드가 있습니다. 따라서 문제가 전용 그래픽 카드와 관련이 있다고 의심됩니다.
그런 의심을 품고 공식 페이지에서 최신 NVIDIA 드라이버를 다운로드하여 설치했는데 모든 것이 잘 작동했습니다. AMD 드라이버에서도 동일한 작업을 수행할 수 있습니다. 드라이버를 설치하려면 새 헤더를 설치해야 했습니다.
apt-get install linux-headers-$(uname -r)