我也一样
GTX 1050
nvidia-smi提示:NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
卸载重装应用中心的驱动都不行
日志如下:
/tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/common
/tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/service-setup
/tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/service-setup: line 31: syntax error near unexpected token }' /tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/service-setup: line 31: }'
2026/04/26 10:34:04 Begin initialize_variables
2026/04/26 10:34:04 End initialize_variables
2026/04/26 10:34:04 ===> Step install_init. STATUS=INSTALL USER= GROUP= SHARE_PATH=/var/apps/Nvidia-Driver-580/shares/Nvidia-Driver-580
2026/04/26 10:34:04 Begin validate_preinst
2026/04/26 10:34:04 validate_preinst
2026/04/26 10:34:04 End validate_preinst
2026/04/26 10:34:04 Begin service_preinst
2026/04/26 10:34:04 service_preinst
2026/04/26 10:34:04 End service_preinst
/tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/common
/tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/service-setup
/tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/service-setup: line 31: syntax error near unexpected token }' /tmp/appcenter/Nvidia-Driver-580-1.0.33-tpk/cmd/service-setup: line 31: }'
2026/04/26 10:34:07 Begin initialize_variables
2026/04/26 10:34:07 End initialize_variables
2026/04/26 10:34:07 ===> Step install_callback. STATUS=INSTALL USER= GROUP= SHARE_PATH=/var/apps/Nvidia-Driver-580/shares/Nvidia-Driver-580
2026/04/26 10:34:07 Begin save_wizard_variables
2026/04/26 10:34:07 End save_wizard_variables
2026/04/26 10:34:07 Begin service_postinst
2026/04/26 10:34:07 dpkg: warning: ignoring request to remove nvidia-driver-lib-trim which isn't installed
2026/04/26 10:34:07 Verifying archive integrity... OK
2026/04/26 10:34:10 Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 580.142....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
2026/04/26 10:34:10 WARNING: You specified the '--no-kernel-modules' command line option, nvidia-installer will not install any kernel modules as part of this driver installation, and it will not remove existing NVIDIA kernel modules not part of an earlier NVIDIA driver installation. Please ensure that NVIDIA kernel modules matching this driver version are installed separately.
2026/04/26 10:34:10 WARNING: nvidia-installer was forced to guess the X library path '/usr/lib64' and X module path '/usr/lib64/xorg/modules'; these paths were not queryable from the system. If X fails to find the NVIDIA X driver module, please install the pkg-config utility and the X.Org SDK/development package for your distribution and reinstall the driver.
2026/04/26 10:34:10 WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option.
2026/04/26 10:34:21 WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd-egl-config-path.
2026/04/26 10:34:25 depmod: ERROR: fstatat(5, alternatives): No such file or directory
2026/04/26 10:34:25 modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.18.18-trim
2026/04/26 10:34:25 modprobe: FATAL: Module nvidia_modeset not found in directory /lib/modules/6.18.18-trim
2026/04/26 10:34:25 modprobe: FATAL: Module nvidia_uvm not found in directory /lib/modules/6.18.18-trim
2026/04/26 10:34:25 modprobe: FATAL: Module nvidia_drm not found in directory /lib/modules/6.18.18-trim
2026/04/26 10:34:25 End service_postinst
/var/apps/Nvidia-Driver-580/cmd/service-setup: line 31: syntax error near unexpected token }' /var/apps/Nvidia-Driver-580/cmd/service-setup: line 31: }'