web-dev-qa-db-ja.com

Nvidiaドライバーをめちゃくちゃにして修正できない

Operational system: Lubuntu 18.04 // upgraded forcefully from 16.04
    architeture: AMD64 
    Video graphic card: GeForce 7200 GS / 7300 SE

すべてが正常に機能していましたが、時々、YuTube [G. Chromer]でビデオを見ているときに、ビデオの音だけが続いてNum/Caps Lockキーをオン/オフしようとしても画面がフリーズしました。そのため、これが発生したときにコンピューターを再起動する必要がありました。私は問題がドライバーかもしれないと考えたので、私はドライバーを再インストールする必要があると思いました。 nvidiaドライバーを削除し、再インストールしてみましたが、すべてが台無しになりました。現在、私の画面はワイドスクリーンで拡大されており、画像が悪いです。 [apt-get installとaptitude installの両方で]ドライバーを再インストールしようとしましたが、ドライバーをインストールしても何も起こりません。

Nvidia X Serverの設定を開くことができません[メニューにあります。クリックしても何も起こりません]。私が使用したいくつかのコマンドとその出力:

nvidia-settings

 ERROR: Unable to load info from any available system

$ lsmod | grep nvidia
$: command not found

$ Sudo lshw -c display
  *-display UNCLAIMED       
       description: VGA compatible controller
       product: G72 [GeForce 7200 GS / 7300 SE]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:fa000000-faffffff memory:e0000000-efffffff memory:fb000000-fbffffff memory:c0000-dffff

私は何をすべきか?私はこのサイトで多くのソリューションを探しましたが、どれも私のために働きませんでした。

任意の助けをいただければ幸いです。

編集:Terranceのリンク手順を試しました。

$ nvidia-settings

ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system


$ nvidia-smi

Command 'nvidia-smi' not found, but can be installed with:

Sudo apt install nvidia-340      
Sudo apt install nvidia-utils-390

NVidia Server Xの設定を開くことができず、画面サイズなどを変更することもできません。ああ、私のグラフィックカードをサポートする最新のドライバーは304です。したがって、私のグラフィックカードをサポートしていないこれらのドライバーをインストールすると、すべてが混乱する可能性があります。コマンド「lsmod | grep nvidia」は出力を返しません。

edit²:試した

$ Sudo apt install nvidia-304
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  lib32gcc1 libc6-i386
Recommended packages:
  libcuda1-304 nvidia-opencl-icd-304
The following packages will be REMOVED:
  libgl1-mesa-glx libglx-mesa0
The following NEW packages will be installed:
  lib32gcc1 libc6-i386 nvidia-304
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B/38,5 MB of archives.
After this operation, 188 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 171909 files and directories currently installed.)
Removing libgl1-mesa-glx:AMD64 (18.0.0~rc5-1ubuntu1) ...
Removing libglx-mesa0:AMD64 (18.0.0~rc5-1ubuntu1) ...
Selecting previously unselected package libc6-i386.
(Reading database ... 171896 files and directories currently installed.)
Preparing to unpack .../libc6-i386_2.27-3ubuntu1_AMD64.deb ...
Unpacking libc6-i386 (2.27-3ubuntu1) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../lib32gcc1_1%3a8-20180414-1ubuntu2_AMD64.deb ...
Unpacking lib32gcc1 (1:8-20180414-1ubuntu2) ...
Selecting previously unselected package nvidia-304.
Preparing to unpack .../nvidia-304_304.137-0ubuntu2_AMD64.deb ...
Unpacking nvidia-304 (304.137-0ubuntu2) ...
Setting up libc6-i386 (2.27-3ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up lib32gcc1 (1:8-20180414-1ubuntu2) ...
Setting up nvidia-304 (304.137-0ubuntu2) ...
update-alternatives: using /usr/lib/nvidia-304/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-304/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/share/nvidia-304/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode
dpkg: error: version '-' has bad syntax: revision number is empty
dpkg: error: version '-' has bad syntax: revision number is empty
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-304
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/Dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Loading new nvidia-304-304.137 DKMS files...
Building for 4.15.0-20-generic
Building for architecture x86_64
Building initial module for 4.15.0-20-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-304.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-20-generic (x86_64)
Consult /var/lib/dkms/nvidia-304/304.137/build/make.log for more information.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-20-generic
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/i386-linux-gnu_GL.conf: No such file or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with NVIDIA driver. Make sure that latest NVIDIA driver is installed and running.
5
Diego Fernandes

私は問題を修正しました:

Sudo apt install libwayland-egl1 
Sudo dpkg -a --configure
reboot

Libwayland-egl1とlibwayland-egl1-mesaをインストールする2つのファイルに何らかの問題があるようです。 libwayland-egl1-mesaをインストールすると、アイテムが開かないなどの多くの問題に気づきました。これは、これまでアップグレードの状況でしか遭遇しなかったため、おそらくアップグレードの問題です。

1
Rob

nvidia-304ドライバーは、サポートが不足し、カーネル4.15がコンパイルしないため、18.04から削除されました。ここにパッチがありますが、私はそれをテストしていません https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/173775

Nouveauは、ubuntuが提供するオプションですが、たとえば、Kodiはnouveauをサポートしていないなど、問題が発生する可能性があります。詳細:

https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/17480

https://devtalk.nvidia.com/default/topic/1032541/linux/304-137-doesn-t-install-in-ubuntu-18-04-got-removed-from-ubuntu-repositories- /

1
Hans P Möller

Sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx

1
Bart

追加してみてください:

slab_common.usercopy_fallback=y 

カーネルオプションへ。それは私のために働いた、もはや黒い画面が凍結することはなかった。
4.17.0カーネルでNVidiaドライバー304-137を使用しています。

$ Sudo prime-select nvidia

ログアウトして再ログインすると、nvidia-settingsはnvidia-guiを開くことができます

0
takeseem