Messed up Nvidia drivers and can't fix it












4














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


Everything was functioning normally, but sometimes when i was watching videos on the YOuTube [in G. Chromer] the screen froze with only the sound of the video continuing and even trying to turn on/off Num/Caps Lock keys didn't nothing, so i had to restart the computer when this happened. I figured that the problem may be the drivers, so i thought that i should reinstall the drivers. I purged the nvidia drivers, and tried reinstalling it, and it messed everything. Now my screen is widescreen and stretched and the image is bad. i tried reinstalling again the drivers [both by apt-get install and aptitude install] but nothing really happens after installing the drivers.



I can't open the Nvidia X Server Settings [it is in the menu, if i click on it nothing happens]. Some commands i used and their outputs:



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


What should I do? I looked for many solutions in this site, but none of them worked for me.



Any help would be appreciated.



EDIT: I tried Terrance's link steps, and what i'm getting:



$ 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


I still can't open the NVidia Server X Settings, nor can't i change things like screen size. Oh, and the latest driver that supports my graphic card is the 304, so i think that installing these drivers that doesn't support my graphic card may mess everything up more. The command "lsmod | grep nvidia" returns no output.



edit²: tried



$ 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.









share|improve this question
























  • What exactly have you tried? It can make it harder for us to help you when you leave such a broad range of solutions that might have helped. Have you tried askubuntu.com/a/1030901/231142 ? The NVIDIA driver installation is in the bottom half of the answer. If you want the CUDA toolkit as well, that is in the top half.
    – Terrance
    May 8 '18 at 2:16










  • Tried things like reinstalling X, installing other Nvidia drivers, purging them again, installing all needed dependencies from anything i tried... oh... i tried to follow the steps on the link you provided, but it didn't help at all. I still can't open the NVidia X Server Settings. I'm unable to do simple things like resizing my screen... i could do that before messing up eveything.
    – Diego Fernandes
    May 8 '18 at 2:55












  • Yep, I just looked it up and confirmed that it is the 304 driver. Unfortunately the nvidia-smi is not going to work with that driver as it is not available in that package. Did lsmod | grep nvidia find the driver installed? And are you still having an issue with launching nvidia-settings? I am sorry about the link above, I didn't think about older cards not working with the newer drivers.
    – Terrance
    May 8 '18 at 3:54
















4














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


Everything was functioning normally, but sometimes when i was watching videos on the YOuTube [in G. Chromer] the screen froze with only the sound of the video continuing and even trying to turn on/off Num/Caps Lock keys didn't nothing, so i had to restart the computer when this happened. I figured that the problem may be the drivers, so i thought that i should reinstall the drivers. I purged the nvidia drivers, and tried reinstalling it, and it messed everything. Now my screen is widescreen and stretched and the image is bad. i tried reinstalling again the drivers [both by apt-get install and aptitude install] but nothing really happens after installing the drivers.



I can't open the Nvidia X Server Settings [it is in the menu, if i click on it nothing happens]. Some commands i used and their outputs:



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


What should I do? I looked for many solutions in this site, but none of them worked for me.



Any help would be appreciated.



EDIT: I tried Terrance's link steps, and what i'm getting:



$ 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


I still can't open the NVidia Server X Settings, nor can't i change things like screen size. Oh, and the latest driver that supports my graphic card is the 304, so i think that installing these drivers that doesn't support my graphic card may mess everything up more. The command "lsmod | grep nvidia" returns no output.



edit²: tried



$ 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.









share|improve this question
























  • What exactly have you tried? It can make it harder for us to help you when you leave such a broad range of solutions that might have helped. Have you tried askubuntu.com/a/1030901/231142 ? The NVIDIA driver installation is in the bottom half of the answer. If you want the CUDA toolkit as well, that is in the top half.
    – Terrance
    May 8 '18 at 2:16










  • Tried things like reinstalling X, installing other Nvidia drivers, purging them again, installing all needed dependencies from anything i tried... oh... i tried to follow the steps on the link you provided, but it didn't help at all. I still can't open the NVidia X Server Settings. I'm unable to do simple things like resizing my screen... i could do that before messing up eveything.
    – Diego Fernandes
    May 8 '18 at 2:55












  • Yep, I just looked it up and confirmed that it is the 304 driver. Unfortunately the nvidia-smi is not going to work with that driver as it is not available in that package. Did lsmod | grep nvidia find the driver installed? And are you still having an issue with launching nvidia-settings? I am sorry about the link above, I didn't think about older cards not working with the newer drivers.
    – Terrance
    May 8 '18 at 3:54














4












4








4







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


Everything was functioning normally, but sometimes when i was watching videos on the YOuTube [in G. Chromer] the screen froze with only the sound of the video continuing and even trying to turn on/off Num/Caps Lock keys didn't nothing, so i had to restart the computer when this happened. I figured that the problem may be the drivers, so i thought that i should reinstall the drivers. I purged the nvidia drivers, and tried reinstalling it, and it messed everything. Now my screen is widescreen and stretched and the image is bad. i tried reinstalling again the drivers [both by apt-get install and aptitude install] but nothing really happens after installing the drivers.



I can't open the Nvidia X Server Settings [it is in the menu, if i click on it nothing happens]. Some commands i used and their outputs:



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


What should I do? I looked for many solutions in this site, but none of them worked for me.



Any help would be appreciated.



EDIT: I tried Terrance's link steps, and what i'm getting:



$ 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


I still can't open the NVidia Server X Settings, nor can't i change things like screen size. Oh, and the latest driver that supports my graphic card is the 304, so i think that installing these drivers that doesn't support my graphic card may mess everything up more. The command "lsmod | grep nvidia" returns no output.



edit²: tried



$ 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.









share|improve this question















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


Everything was functioning normally, but sometimes when i was watching videos on the YOuTube [in G. Chromer] the screen froze with only the sound of the video continuing and even trying to turn on/off Num/Caps Lock keys didn't nothing, so i had to restart the computer when this happened. I figured that the problem may be the drivers, so i thought that i should reinstall the drivers. I purged the nvidia drivers, and tried reinstalling it, and it messed everything. Now my screen is widescreen and stretched and the image is bad. i tried reinstalling again the drivers [both by apt-get install and aptitude install] but nothing really happens after installing the drivers.



I can't open the Nvidia X Server Settings [it is in the menu, if i click on it nothing happens]. Some commands i used and their outputs:



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


What should I do? I looked for many solutions in this site, but none of them worked for me.



Any help would be appreciated.



EDIT: I tried Terrance's link steps, and what i'm getting:



$ 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


I still can't open the NVidia Server X Settings, nor can't i change things like screen size. Oh, and the latest driver that supports my graphic card is the 304, so i think that installing these drivers that doesn't support my graphic card may mess everything up more. The command "lsmod | grep nvidia" returns no output.



edit²: tried



$ 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.






drivers nvidia graphics lubuntu xorg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 8 '18 at 3:13

























asked May 8 '18 at 2:04









Diego Fernandes

2113




2113












  • What exactly have you tried? It can make it harder for us to help you when you leave such a broad range of solutions that might have helped. Have you tried askubuntu.com/a/1030901/231142 ? The NVIDIA driver installation is in the bottom half of the answer. If you want the CUDA toolkit as well, that is in the top half.
    – Terrance
    May 8 '18 at 2:16










  • Tried things like reinstalling X, installing other Nvidia drivers, purging them again, installing all needed dependencies from anything i tried... oh... i tried to follow the steps on the link you provided, but it didn't help at all. I still can't open the NVidia X Server Settings. I'm unable to do simple things like resizing my screen... i could do that before messing up eveything.
    – Diego Fernandes
    May 8 '18 at 2:55












  • Yep, I just looked it up and confirmed that it is the 304 driver. Unfortunately the nvidia-smi is not going to work with that driver as it is not available in that package. Did lsmod | grep nvidia find the driver installed? And are you still having an issue with launching nvidia-settings? I am sorry about the link above, I didn't think about older cards not working with the newer drivers.
    – Terrance
    May 8 '18 at 3:54


















  • What exactly have you tried? It can make it harder for us to help you when you leave such a broad range of solutions that might have helped. Have you tried askubuntu.com/a/1030901/231142 ? The NVIDIA driver installation is in the bottom half of the answer. If you want the CUDA toolkit as well, that is in the top half.
    – Terrance
    May 8 '18 at 2:16










  • Tried things like reinstalling X, installing other Nvidia drivers, purging them again, installing all needed dependencies from anything i tried... oh... i tried to follow the steps on the link you provided, but it didn't help at all. I still can't open the NVidia X Server Settings. I'm unable to do simple things like resizing my screen... i could do that before messing up eveything.
    – Diego Fernandes
    May 8 '18 at 2:55












  • Yep, I just looked it up and confirmed that it is the 304 driver. Unfortunately the nvidia-smi is not going to work with that driver as it is not available in that package. Did lsmod | grep nvidia find the driver installed? And are you still having an issue with launching nvidia-settings? I am sorry about the link above, I didn't think about older cards not working with the newer drivers.
    – Terrance
    May 8 '18 at 3:54
















What exactly have you tried? It can make it harder for us to help you when you leave such a broad range of solutions that might have helped. Have you tried askubuntu.com/a/1030901/231142 ? The NVIDIA driver installation is in the bottom half of the answer. If you want the CUDA toolkit as well, that is in the top half.
– Terrance
May 8 '18 at 2:16




What exactly have you tried? It can make it harder for us to help you when you leave such a broad range of solutions that might have helped. Have you tried askubuntu.com/a/1030901/231142 ? The NVIDIA driver installation is in the bottom half of the answer. If you want the CUDA toolkit as well, that is in the top half.
– Terrance
May 8 '18 at 2:16












Tried things like reinstalling X, installing other Nvidia drivers, purging them again, installing all needed dependencies from anything i tried... oh... i tried to follow the steps on the link you provided, but it didn't help at all. I still can't open the NVidia X Server Settings. I'm unable to do simple things like resizing my screen... i could do that before messing up eveything.
– Diego Fernandes
May 8 '18 at 2:55






Tried things like reinstalling X, installing other Nvidia drivers, purging them again, installing all needed dependencies from anything i tried... oh... i tried to follow the steps on the link you provided, but it didn't help at all. I still can't open the NVidia X Server Settings. I'm unable to do simple things like resizing my screen... i could do that before messing up eveything.
– Diego Fernandes
May 8 '18 at 2:55














Yep, I just looked it up and confirmed that it is the 304 driver. Unfortunately the nvidia-smi is not going to work with that driver as it is not available in that package. Did lsmod | grep nvidia find the driver installed? And are you still having an issue with launching nvidia-settings? I am sorry about the link above, I didn't think about older cards not working with the newer drivers.
– Terrance
May 8 '18 at 3:54




Yep, I just looked it up and confirmed that it is the 304 driver. Unfortunately the nvidia-smi is not going to work with that driver as it is not available in that package. Did lsmod | grep nvidia find the driver installed? And are you still having an issue with launching nvidia-settings? I am sorry about the link above, I didn't think about older cards not working with the newer drivers.
– Terrance
May 8 '18 at 3:54










5 Answers
5






active

oldest

votes


















1














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






share|improve this answer





















  • I did that command, i installed everything, but... still... I can't open the Nvidia settings, and i can't do things like resizing my screen.
    – Diego Fernandes
    May 8 '18 at 2:54



















1














nvidia-304 driver has been removed from 18.04 because it run out of support and Kernel 4.15 doesn't compile it.
Here is a patch, but I haven't tested it
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750



Nouveau is the option that ubuntu gives but i might have some problem, for example Kodi doesn't support nouveau.
more info:



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



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






share|improve this answer































    1














    I fixed the problem with:



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


    Seems to be some kind of issue with the 2 files libwayland-egl1 and the one which installs libwayland-egl1-mesa. Have noticed that with the libwayland-egl1-mesa installed lots of problems items won't open etc. Perhaps this is an upgrade issue since I have only come across this in upgrade situations so far.






    share|improve this answer































      1














      Try adding:



      slab_common.usercopy_fallback=y 


      to kernel options. It worked for me, no more frozen black screens.

      I am using the NVidia driver 304-137 with a 4.17.0 kernel.






      share|improve this answer































        0














        $ sudo prime-select nvidia


        logout and re login, nvidia-settings will can open the nvidia-gui






        share|improve this answer





















          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033378%2fmessed-up-nvidia-drivers-and-cant-fix-it%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          5 Answers
          5






          active

          oldest

          votes








          5 Answers
          5






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














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






          share|improve this answer





















          • I did that command, i installed everything, but... still... I can't open the Nvidia settings, and i can't do things like resizing my screen.
            – Diego Fernandes
            May 8 '18 at 2:54
















          1














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






          share|improve this answer





















          • I did that command, i installed everything, but... still... I can't open the Nvidia settings, and i can't do things like resizing my screen.
            – Diego Fernandes
            May 8 '18 at 2:54














          1












          1








          1






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






          share|improve this answer












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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 8 '18 at 2:14









          Bart

          111




          111












          • I did that command, i installed everything, but... still... I can't open the Nvidia settings, and i can't do things like resizing my screen.
            – Diego Fernandes
            May 8 '18 at 2:54


















          • I did that command, i installed everything, but... still... I can't open the Nvidia settings, and i can't do things like resizing my screen.
            – Diego Fernandes
            May 8 '18 at 2:54
















          I did that command, i installed everything, but... still... I can't open the Nvidia settings, and i can't do things like resizing my screen.
          – Diego Fernandes
          May 8 '18 at 2:54




          I did that command, i installed everything, but... still... I can't open the Nvidia settings, and i can't do things like resizing my screen.
          – Diego Fernandes
          May 8 '18 at 2:54













          1














          nvidia-304 driver has been removed from 18.04 because it run out of support and Kernel 4.15 doesn't compile it.
          Here is a patch, but I haven't tested it
          https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750



          Nouveau is the option that ubuntu gives but i might have some problem, for example Kodi doesn't support nouveau.
          more info:



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



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






          share|improve this answer




























            1














            nvidia-304 driver has been removed from 18.04 because it run out of support and Kernel 4.15 doesn't compile it.
            Here is a patch, but I haven't tested it
            https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750



            Nouveau is the option that ubuntu gives but i might have some problem, for example Kodi doesn't support nouveau.
            more info:



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



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






            share|improve this answer


























              1












              1








              1






              nvidia-304 driver has been removed from 18.04 because it run out of support and Kernel 4.15 doesn't compile it.
              Here is a patch, but I haven't tested it
              https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750



              Nouveau is the option that ubuntu gives but i might have some problem, for example Kodi doesn't support nouveau.
              more info:



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



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






              share|improve this answer














              nvidia-304 driver has been removed from 18.04 because it run out of support and Kernel 4.15 doesn't compile it.
              Here is a patch, but I haven't tested it
              https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750



              Nouveau is the option that ubuntu gives but i might have some problem, for example Kodi doesn't support nouveau.
              more info:



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



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







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited May 9 '18 at 13:54

























              answered May 9 '18 at 13:48









              Hans P Möller

              112




              112























                  1














                  I fixed the problem with:



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


                  Seems to be some kind of issue with the 2 files libwayland-egl1 and the one which installs libwayland-egl1-mesa. Have noticed that with the libwayland-egl1-mesa installed lots of problems items won't open etc. Perhaps this is an upgrade issue since I have only come across this in upgrade situations so far.






                  share|improve this answer




























                    1














                    I fixed the problem with:



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


                    Seems to be some kind of issue with the 2 files libwayland-egl1 and the one which installs libwayland-egl1-mesa. Have noticed that with the libwayland-egl1-mesa installed lots of problems items won't open etc. Perhaps this is an upgrade issue since I have only come across this in upgrade situations so far.






                    share|improve this answer


























                      1












                      1








                      1






                      I fixed the problem with:



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


                      Seems to be some kind of issue with the 2 files libwayland-egl1 and the one which installs libwayland-egl1-mesa. Have noticed that with the libwayland-egl1-mesa installed lots of problems items won't open etc. Perhaps this is an upgrade issue since I have only come across this in upgrade situations so far.






                      share|improve this answer














                      I fixed the problem with:



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


                      Seems to be some kind of issue with the 2 files libwayland-egl1 and the one which installs libwayland-egl1-mesa. Have noticed that with the libwayland-egl1-mesa installed lots of problems items won't open etc. Perhaps this is an upgrade issue since I have only come across this in upgrade situations so far.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jun 18 '18 at 21:07









                      Stephen Rauch

                      1,1546716




                      1,1546716










                      answered Jun 18 '18 at 13:29









                      Rob

                      112




                      112























                          1














                          Try adding:



                          slab_common.usercopy_fallback=y 


                          to kernel options. It worked for me, no more frozen black screens.

                          I am using the NVidia driver 304-137 with a 4.17.0 kernel.






                          share|improve this answer




























                            1














                            Try adding:



                            slab_common.usercopy_fallback=y 


                            to kernel options. It worked for me, no more frozen black screens.

                            I am using the NVidia driver 304-137 with a 4.17.0 kernel.






                            share|improve this answer


























                              1












                              1








                              1






                              Try adding:



                              slab_common.usercopy_fallback=y 


                              to kernel options. It worked for me, no more frozen black screens.

                              I am using the NVidia driver 304-137 with a 4.17.0 kernel.






                              share|improve this answer














                              Try adding:



                              slab_common.usercopy_fallback=y 


                              to kernel options. It worked for me, no more frozen black screens.

                              I am using the NVidia driver 304-137 with a 4.17.0 kernel.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Aug 28 '18 at 7:14









                              zx485

                              1,45231114




                              1,45231114










                              answered Aug 27 '18 at 21:58









                              Jaun Mauro Fernandez

                              111




                              111























                                  0














                                  $ sudo prime-select nvidia


                                  logout and re login, nvidia-settings will can open the nvidia-gui






                                  share|improve this answer


























                                    0














                                    $ sudo prime-select nvidia


                                    logout and re login, nvidia-settings will can open the nvidia-gui






                                    share|improve this answer
























                                      0












                                      0








                                      0






                                      $ sudo prime-select nvidia


                                      logout and re login, nvidia-settings will can open the nvidia-gui






                                      share|improve this answer












                                      $ sudo prime-select nvidia


                                      logout and re login, nvidia-settings will can open the nvidia-gui







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Dec 1 '18 at 14:33









                                      takeseem

                                      212




                                      212






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.





                                          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                          Please pay close attention to the following guidance:


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033378%2fmessed-up-nvidia-drivers-and-cant-fix-it%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          How to change which sound is reproduced for terminal bell?

                                          Can I use Tabulator js library in my java Spring + Thymeleaf project?

                                          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents