Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Unable to Uninstall Nvidia Drivers

  1. #1
    Join Date
    Oct 2012
    Beans
    18

    Unable to Uninstall Nvidia Drivers

    So I'm currently having issues with my current Nvidia drivers (get a black screen when the computer comes up, but if I enter the password, it will log in). When I try to run "sudo apt-get purge nvidia*" I get the following:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package nvidia-install.txt
    E: Couldn't find any package by regex 'nvidia-install.txt'

    Any idea why it thinks that the nvidia-install.txt is a package? I'm guessing this file is somewhere it shouldn't be, just not too sure where exactly...

  2. #2
    Join Date
    Jun 2008
    Location
    Vancouver Canada
    Beans
    3,139
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Unable to Uninstall Nvidia Drivers

    Hi jmarsz.

    Is this a virtual install?
    I learn something ubuntu everyday.
    dell precision T7500 1Tb hdd x 2
    2.67 Ghz intel xeon X5550 cpu
    nvidia quadro fx 4800-1.5 Gb video card

  3. #3
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: Unable to Uninstall Nvidia Drivers

    Which nvidia driver package do you have installed now. In other words what do you get for:
    Code:
    dpkg-query -l nvidia* | grep ii
    Although, I got strange or no results for that when I had some file with nvidia in its name in my home directory. So maybe such a file in your home directory is tripping up apt-get with nvidia* wildcard.
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  4. #4
    Join Date
    Oct 2012
    Beans
    18

    Re: Unable to Uninstall Nvidia Drivers

    This is not a virtual install, and this is what I got when I ran that command:

    jmarsz@Sager:~$ dpkg-query -l nvidia* | grep ii
    dpkg-query: no packages found matching nvidia-install.txt

  5. #5
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Unable to Uninstall Nvidia Drivers

    efflandt & OP-- I think you might have hit it.

    I know in the past (about 3 years ago or so) , for about a 3-month period, where using an "nvidia*" wildcard when trying to remove the nvidia packages didn't work as expected. During that period, we had to list the nvidia packages that were installed, then manually remove each package that was installed (use the name from that list). Don't remember why that was, but removing them individually by package_name worked back then, so...

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  6. #6
    Join Date
    Aug 2006
    Location
    Geelong, Victoria, Aust.
    Beans
    229
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Unable to Uninstall Nvidia Drivers

    As explained elsewhere, I have returned as an Ubuntu user, and when I tried to install restricted drivers, as instructed, all I got in return was a black screen; no cursor, no way of knowing what was happening. All I could do was turn off the laptop, so I decided to reinstall from scratch. I upgraded until I was current, but there is now no need to install restricted drivers as the replacement has been installed instead.

    I have missed so much in the three years I have been away!
    Why buy a 3D TV when all you need to do is step outside?

  7. #7
    Join Date
    Oct 2012
    Beans
    18

    Re: Unable to Uninstall Nvidia Drivers

    Even after removing all the Nvidia drivers, and installing them from the additional drivers section, I still get a black screen when I try to log in. If I have the Noveau drivers loaded, I can see the login screen. It's only when I'm running the nvidia drivers do I have this issue. Any suggestions?

  8. #8
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Unable to Uninstall Nvidia Drivers

    You started this out with "I can't purge nvidia drivers." You skipped a few step in letting us know what your main complaint is (that is in your last post)... and what you are working on (make & model, so we can look up the specs).

    Please post the results of (from recovery root prompt):
    Code:
    lspci -vnn : grep -i VGA && lshw -n -c video
    That would show us what the hardware is ID'ed by via linux.

    Next is post your /etc/X11/xorg.conf file and your /var/logs/Xorg.0.log file that is where you tried to load the nvidia drivers. The "0" in that denotes current. "1" would be 1 times past. Xorg.2.log would be 2 times before current. For instance, if load the nvidia driver and it frags, then reboot to recovery... copy over from a root prompt... or if you can boot it on another (via renaming the xorg.conf to anything else, then rebooting again... then it would be 1 past...

    Do you need any more info to be able to get those for us?

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  9. #9
    Join Date
    Oct 2012
    Beans
    18

    Re: Unable to Uninstall Nvidia Drivers

    I kind of wrote the last post in a bit of a hurry, so let me give everyone and update:

    Originally I wasn't unable to uninstall the Nvidia drivers due to it trying to uninstall the "nvidia-install.txt" file. I found out that when I typed:

    Code:
    sudo apt-get purge nvidia*
    It was trying to run against a file I had in my home directory. Once I got rid of that file, I was able to uninstall and re-install the driver. I am still having the issue though where when the computer (which is a Sager laptop with both an Nvidia card and the Intel graphics) come up to the login screen, I just get a black screen when I'm running the Nvidia card. I can still enter my password and get logged in (and the screen does come back), it's only when I'm at the login screen on the Nvidia card does it display black. When I'm on the Intel graphics, I can see it just fine...

  10. #10
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Unable to Uninstall Nvidia Drivers

    You said you re-installed your nVidia driver, but have not installed nVidia Prime yet? Once you have your nvidia driver installed then:
    Code:
    sudo apt-get install nvidia-prime
    You have hybrid graphics, so you need nVidia Prime to do your GPU and driver switches. Once that is installled, go into the nVidia control panel and configure your driver.
    Last edited by MAFoElffen; September 20th, 2015 at 05:50 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •