
以前は 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
コメントで述べたように、アップグレードによってカーネルも 3.16 から 4.9 に変更されましたが、sudo startx
これらのカーネルと 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)