Nvidia linux driver install error

Nvidia linux driver install error

Помогите пожалуйста решить проблему с установкой драйвера nvidia. Детали по железу ниже. Пробовал устанавливать по разным туториалам. К примеру вот по этому http://compizomania.blogspot.com/2014/0 . -mint.html

Версию определил. Пытаюсь установить, но в конце установки падает ошибка

E: Sub-process /usr/bin/dpkg returned an error code (1)

Вывод сообщений в терминале откуда начинаются ошибки:

Unpacking libnvidia-fbc1-430:amd64 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package libnvidia-gl-430:i386. Preparing to unpack . /10-libnvidia-gl-430_430.50-0ubuntu0.18.04.2_i386.deb . diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-430' found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340' dpkg: error processing archive /tmp/apt-dpkg-install-HrhG8f/10-libnvidia-gl-430_430.50-0ubuntu0.18.04.2_i386.deb (--unpack): new libnvidia-gl-430:i386 package pre-installation script subprocess returned error exit status 2 Selecting previously unselected package libnvidia-gl-430:amd64. Preparing to unpack . /11-libnvidia-gl-430_430.50-0ubuntu0.18.04.2_amd64.deb . diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-430' found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340' dpkg: error processing archive /tmp/apt-dpkg-install-HrhG8f/11-libnvidia-gl-430_430.50-0ubuntu0.18.04.2_amd64.deb (--unpack): new libnvidia-gl-430:amd64 package pre-installation script subprocess returned error exit status 2 Selecting previously unselected package libnvidia-ifr1-430:amd64. Preparing to unpack . /12-libnvidia-ifr1-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking libnvidia-ifr1-430:amd64 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package libnvidia-ifr1-430:i386. Preparing to unpack . /13-libnvidia-ifr1-430_430.50-0ubuntu0.18.04.2_i386.deb . Unpacking libnvidia-ifr1-430:i386 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package nvidia-compute-utils-430. Preparing to unpack . /14-nvidia-compute-utils-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking nvidia-compute-utils-430 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package nvidia-kernel-source-430. Preparing to unpack . /15-nvidia-kernel-source-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking nvidia-kernel-source-430 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package nvidia-kernel-common-430. Preparing to unpack . /16-nvidia-kernel-common-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking nvidia-kernel-common-430 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package nvidia-dkms-430. Preparing to unpack . /17-nvidia-dkms-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking nvidia-dkms-430 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package nvidia-utils-430. Preparing to unpack . /18-nvidia-utils-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking nvidia-utils-430 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package xserver-xorg-video-nvidia-430. Preparing to unpack . /19-xserver-xorg-video-nvidia-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking xserver-xorg-video-nvidia-430 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package nvidia-driver-430. Preparing to unpack . /20-nvidia-driver-430_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking nvidia-driver-430 (430.50-0ubuntu0.18.04.2) . Selecting previously unselected package nvidia-driver-418. Preparing to unpack . /21-nvidia-driver-418_430.50-0ubuntu0.18.04.2_amd64.deb . Unpacking nvidia-driver-418 (430.50-0ubuntu0.18.04.2) . Errors were encountered while processing: /tmp/apt-dpkg-install-HrhG8f/10-libnvidia-gl-430_430.50-0ubuntu0.18.04.2_i386.deb /tmp/apt-dpkg-install-HrhG8f/11-libnvidia-gl-430_430.50-0ubuntu0.18.04.2_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
System: Host: jarvis-Precision-M4700 Kernel: 4.15.0-72-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 Desktop: Cinnamon 4.0.10 Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic Machine: Type: Laptop System: Dell product: Precision M4700 v: 01 serial: Mobo: Dell model: 0DK7DT v: A00 serial: UEFI: Dell v: A08 date: 02/06/2013 Battery: ID-1: BAT0 charge: 73.3 Wh condition: 49.6/73.3 Wh (68%) model: SMP DELL TN1K512 status: Full CPU: Topology: Quad Core model: Intel Core i7-3940XM bits: 64 type: MT MCP arch: Ivy Bridge rev: 9 L2 cache: 8192 KiB flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 51030 Speed: 2890 MHz min/max: 1200/2900 MHz Core speeds (MHz): 1: 2890 2: 2890 3: 2890 4: 2890 5: 2890 6: 2890 7: 2891 8: 2890 Graphics: Device-1: Intel 3rd Gen Core processor Graphics vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 Device-2: NVIDIA GK107GLM [Quadro K2000M] vendor: Dell driver: N/A bus ID: 01:00.0 Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile v: 4.2 Mesa 19.0.8 direct render: Yes Audio: Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1b.0 Device-2: NVIDIA GK107 HDMI Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 01:00.1 Sound Server: ALSA v: k4.15.0-72-generic Network: Device-1: Intel 82579LM Gigabit Network vendor: Dell driver: e1000e v: 3.2.6-k port: f080 bus ID: 00:19.0 IF: eno1 state: down mac: Device-2: Broadcom and subsidiaries BCM4313 802.11bgn Wireless Network Adapter vendor: Dell driver: wl v: kernel port: e000 bus ID: 03:00.0 IF: wlp3s0 state: up mac: Drives: Local Storage: total: 585.00 GiB used: 85.07 GiB (14.5%) ID-1: /dev/sda vendor: Seagate model: ST500LT012-9WS142 size: 465.76 GiB ID-2: /dev/sdb vendor: Micron model: MTFDDAT128MAM-1J2 size: 119.24 GiB RAID: Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 bus ID: 00:1f.2 Partition: ID-1: / size: 116.78 GiB used: 85.06 GiB (72.8%) fs: ext4 dev: /dev/sdb2 ID-2: swap-1 size: 4.77 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda1 Sensors: System Temperatures: cpu: 55.0 C mobo: 48.0 C sodimm: 50.0 C Fan Speeds (RPM): cpu: 2592 Info: Processes: 283 Uptime: 20m Memory: 23.41 GiB used: 2.37 GiB (10.1%) Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 inxi: 3.0.27

Источник

Читайте также:  Узнать свой процессор linux

The problem

Hi, I am having trouble installing the Nvidia drivers on my machine. The goal was to perform these simple commands:

modalias : pci:v000010DEd00001C8Csv00001028sd00000798bc03sc00i00 vendor : NVIDIA Corporation model : GP107M [GeForce GTX 1050 Ti Mobile] driver : nvidia-driver-460 - distro non-free driver : nvidia-driver-418-server - distro non-free driver : nvidia-driver-470 - distro non-free recommended driver : nvidia-driver-450-server - distro non-free driver : nvidia-driver-460-server - distro non-free driver : nvidia-driver-390 - distro non-free driver : xserver-xorg-video-nouveau - distro free builtin 
$ sudo ubuntu-drivers autoinstall 

But I get this as a response inside the output of ubuntu-drivers devices and I can’t do the next step sudo ubuntu-drivers autoinstall :

WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level 

Important note The drivers were working perfectly until today. But after the laptop ran out of battery (and it shut down because of this) the drivers, for some reason, vanished. The driver I had working and also the one I am going to try to install is the 470 from Nvidia, that is, I never installed the 390.

Attempts of solutions I already tried

$ sudo apt update $ sudo apt upgrade $ sudo ubuntu-drivers autoinstall 
$ sudo apt-get remove --purge nvidia* $ sudo ubuntu-drivers autoinstall 
$ sudo apt-get remove --purge "nvidia*" $ sudo ubuntu-drivers autoinstall 

My configs

Ubuntu version

$ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal 

Kernel version

$ uname -a Linux DellInspiron 5.11.0-34-generic #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 

Drivers list

$ ubuntu-drivers list WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level nvidia-driver-450-server, (kernel modules provided by linux-modules-nvidia-450-server-generic-hwe-20.04) nvidia-driver-460-server, (kernel modules provided by linux-modules-nvidia-460-server-generic-hwe-20.04) nvidia-driver-390, (kernel modules provided by linux-modules-nvidia-390-generic-hwe-20.04) nvidia-driver-418-server, (kernel modules provided by linux-modules-nvidia-418-server-generic-hwe-20.04) nvidia-driver-470, (kernel modules provided by linux-modules-nvidia-470-generic-hwe-20.04) nvidia-driver-460, (kernel modules provided by linux-modules-nvidia-460-generic-hwe-20.04) 

Devices list

$ ubuntu-drivers devices WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00001C8Csv00001028sd00000798bc03sc00i00 vendor : NVIDIA Corporation model : GP107M [GeForce GTX 1050 Ti Mobile] driver : nvidia-driver-460 - distro non-free driver : nvidia-driver-418-server - distro non-free driver : nvidia-driver-470 - distro non-free recommended driver : nvidia-driver-450-server - distro non-free driver : nvidia-driver-460-server - distro non-free driver : nvidia-driver-390 - distro non-free driver : xserver-xorg-video-nouveau - distro free builtin 

Источник

Читайте также:  Iperf linux to windows

Nvidia driver installs but does not load on ubuntu 18.04

Nvidia driver 384 ran well on Ubuntu 17.04 and 17.10. I switched to Ubuntu 18.04 (clean fresh install) and installed nvidia-driver-396 following this great answer Then I installed cuda toolkit 9.2 using .run file. It failed to install with and without choosing to install nvidia driver along with it. Rebooted and tried again, then cuda was installed succesfully. But nvidia isn’t running.

$ nvidia-settings ERROR: NVIDIA driver is not loaded ERROR: Unable to load info from any available system $ 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. $ lspci -v | grep VGA 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) (prog-if 00 [VGA controller]) 
  1. Uninstalled nvidia ( nvidia-uninstall ) Successful but with warning: «Some symlinks could not be removed. The I removed cuda with rm -rf /usr/local/cuda* and installed nvidia-driver-396 but still the same error
  2. Removed nvidia-396, installed 396 from nvidia’s website (.run file). It started with a warning «Distribution provided pre-script failed». I proceeded and installation was successful. It also added nouveau to blacklist automatically. Still same result as 1.
  3. Uninstalled previous one, removed blacklist entry, installed nvidia-390 Still same result
  4. Uninstalled previous one, installed it from «Additional drivers» from GUI. No change.
  5. Went to console mode. Stopped gdm. Then installed 396. No change. Installed 390 likewise. No change.
  6. Tried using xorg-edgers ppa (Yes its is said they are same as graphics-drivers ppa but I am desperate now) Unmet dependency problems. So reverted to removed everything.
  7. Uninstalled everything, went to recovery mode then installed nvidia-driver-390. No luck.
  8. I felt nvidia driver from official website made some irrevesible changes. So tried installing it again so that I can uninstall it properly from recovery mode as suggested in the great answer using —unistall option. But now it fails to install. Error message says nouveau is running despite being blacklisted. I removed the blacklist entry later
Читайте также:  Linux учу on windows

I have Intel i5 with Intel HD graphics along with Nvidia GeForce 940M. Yes nvidia-prime was installed. Dual booted with Windows 10, Secure Boot is disabled

During all these steps, once I was able to start the nvidia x server app, though the nvidia-smi gave the same error. Once there was a resolution issue when cuda ran nvidia-xconfig. I removed the xorg.conf to fix it. Right now my pc has nouveau running, no other drivers installed, no blacklisting nvidia, no xorg.conf.

Can someone help. I don’t see any reason why it should not work. nvidia driver 390.12 is reported to work well with kernel 4.15 but still it is not working on mine.

Источник

Оцените статью
Adblock
detector