Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOVLED]Unable to uninstall xserver-xorg-video-nvidia

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Shaheer
Posts: 5
Joined: 2014-03-28 15:51

[SOVLED]Unable to uninstall xserver-xorg-video-nvidia

#1 Post by Shaheer »

Hello Folks,
I am running Debian 7.0 Wheezy amd64

I installed Debian's nvidia driver earlier but I was having a few issues with OpenGL. So I removed those drivers using "apt-get remove nvidia*" and installed proprietry NVIDIA's driver from their website.
Now the issue is, my apt-get/synaptic does not work anymore because it is trying to remove xserver-xorg-video-nvidia and failing to do so.

Code: Select all

The following packages will be REMOVED:
  xserver-xorg-video-nvidia
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 17.8 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 194280 files and directories currently installed.)
Removing xserver-xorg-video-nvidia ...
dpkg: error processing xserver-xorg-video-nvidia (--remove):
 subprocess installed post-removal script returned error exit status 128
Errors were encountered while processing:
 xserver-xorg-video-nvidia
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried apt-get install -f to no avail.
Any suggestion would help.
Thanks.
Last edited by Shaheer on 2014-04-02 14:04, edited 1 time in total.

Shaheer
Posts: 5
Joined: 2014-03-28 15:51

Re: Unable to uninstall xserver-xorg-video-nvidia

#2 Post by Shaheer »

I solved the issue on my own. Posting the solution so it might be useful to somebody whose apt-get gets locked.

After I tried every possible way to remove it using apt-get and dpkg.
I just did

locate xserver-xorg-video-nvidia

it gave me a bunch of files here:
/var/lib/dpkg/info/xserver-xorg-video-nvidia.*

I moved all of those files to my home directory(just being prudent).
and this way apt-get got fooled saying the files are missing, maybe the package has been removed. I am able to use apt-get now.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: [SOVLED]Unable to uninstall xserver-xorg-video-nvidia

#3 Post by dasein »

For the record, the optimal solution is to read and follow the Wiki instructions for installing nVidia using DKMS.

Installing binary blobs from nVidia's Web site works only until the next kernel upgrade.

Shaheer
Posts: 5
Joined: 2014-03-28 15:51

Re: [SOVLED]Unable to uninstall xserver-xorg-video-nvidia

#4 Post by Shaheer »

Yes, however, as I mentioned earlier, I was running into issues with OpenGL. It was a requirement here to build it from Nvidia's website.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: [SOVLED]Unable to uninstall xserver-xorg-video-nvidia

#5 Post by dasein »

PEBKAC. The driver in the repos is the nVidia blob.

Shaheer
Posts: 5
Joined: 2014-03-28 15:51

Re: [SOVLED]Unable to uninstall xserver-xorg-video-nvidia

#6 Post by Shaheer »

Wow you're rude. Thank you for nothing.

alext
Posts: 1
Joined: 2015-09-30 18:09

Re: Unable to uninstall xserver-xorg-video-nvidia

#7 Post by alext »

Shaheer wrote:I solved the issue on my own. Posting the solution so it might be useful to somebody whose apt-get gets locked.

After I tried every possible way to remove it using apt-get and dpkg.
I just did

locate xserver-xorg-video-nvidia

it gave me a bunch of files here:
/var/lib/dpkg/info/xserver-xorg-video-nvidia.*

I moved all of those files to my home directory(just being prudent).
and this way apt-get got fooled saying the files are missing, maybe the package has been removed. I am able to use apt-get now.
Oh man! this helped a lot, it fixed the same problem for me as well. Thanks again.

pqkhanh561@gmail.com
Posts: 1
Joined: 2022-11-24 10:28

Re: Unable to uninstall xserver-xorg-video-nvidia

#8 Post by pqkhanh561@gmail.com »

Shaheer wrote: 2014-04-02 14:03 I solved the issue on my own. Posting the solution so it might be useful to somebody whose apt-get gets locked.

After I tried every possible way to remove it using apt-get and dpkg.
I just did

locate xserver-xorg-video-nvidia

it gave me a bunch of files here:
/var/lib/dpkg/info/xserver-xorg-video-nvidia.*

I moved all of those files to my home directory(just being prudent).
and this way apt-get got fooled saying the files are missing, maybe the package has been removed. I am able to use apt-get now.
It's work. Thanks man.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: [SOVLED]Unable to uninstall xserver-xorg-video-nvidia

#9 Post by sunrat »

@pqkhanh561@gmail.com It's a very bad idea to use your email address as your user name as spammers and hackers can see it. I suggest you register again with a safer name and ask admin to remove this one. Let us know and we can delete this post too.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply