I have a stuck package "glx-diversions'

If none of the more specific forums is the right place to ask

I have a stuck package "glx-diversions'

Postby DragonDon » 2013-07-19 13:43

I can't do an dist-upgrade because of this stuck package.

Code: Select all
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  glx-diversions
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 16.4 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 267394 files and directories currently installed.)
Removing glx-diversions ...
Removing 'diversion of /usr/lib/libGL.so.1.2 to /usr/lib/mesa-diverted/libGL.so.1.2 by glx-diversions'
dpkg-divert: error: rename involves overwriting `/usr/lib/libGL.so.1.2' with
  different file `/usr/lib/mesa-diverted/libGL.so.1.2', not allowed
dpkg: error processing glx-diversions (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 glx-diversions
E: Sub-process /usr/bin/dpkg returned an error code (1)


When I look in Aptitude, I see this:
Image

Not sure what to do here.
User avatar
DragonDon
 
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

Re: I have a stuck package "glx-diversions'

Postby cynwulf » 2013-07-19 14:47

What are you performing a dist-upgrade from and to?

Post your sources.list
cynwulf
 
Posts: 2396
Joined: 2008-09-25 08:49

Re: I have a stuck package "glx-diversions'

Postby DragonDon » 2013-07-19 15:07

I have Squeeze. Trying to go to Wheezy. Actually, just want to kill this bugger and then upgrade. Although, I didn't change anything in my sources.list (but should have for the upgrade).

Code: Select all
#

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 CD Binary-1 20120512-14:34]/ squeeze main

deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 CD Binary-1 20120512-14:34]/ squeeze main

deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates contrib non-free main
deb-src http://security.debian.org/ squeeze/updates contrib non-free main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ squeeze-updates contrib non-free main
deb-src http://ftp.us.debian.org/debian/ squeeze-updates contrib non-free main

#Iceweasel updates
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release

#Enlightenment
# deb http://packages.enlightenment.org/debian squeeze main extras

#VirtualBox
#deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free

#Cairo-dock
deb http://download.tuxfamily.org/glxdock/repository/debian stable cairo-dock ## Cairo-Dock Stable

#for shoutirc radio
# deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
# deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
User avatar
DragonDon
 
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

Re: I have a stuck package "glx-diversions'

Postby cynwulf » 2013-07-19 15:57

Most likely there are dependency problems.

glx-diversions is only available in either wheezy or squeeze-backports, I'm assuming you installed from backports? Try

Code: Select all
# apt-get -f install


If that doesn't provide any solution, lets see which related packages are installed:
Code: Select all
$ apt-cache policy nvidia-installer-cleanup glx-diversions glx-alternative-* nvidia-glx fglrx-driver
cynwulf
 
Posts: 2396
Joined: 2008-09-25 08:49

Re: I have a stuck package "glx-diversions'

Postby DragonDon » 2013-07-19 16:10

Code: Select all
 sudo apt-get -f install
[sudo] password for dragondon:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  glx-diversions
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 16.4 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 267394 files and directories currently installed.)
Removing glx-diversions ...
Removing 'diversion of /usr/lib/libGL.so.1.2 to /usr/lib/mesa-diverted/libGL.so.1.2 by glx-diversions'
dpkg-divert: error: rename involves overwriting `/usr/lib/libGL.so.1.2' with
  different file `/usr/lib/mesa-diverted/libGL.so.1.2', not allowed
dpkg: error processing glx-diversions (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 glx-diversions
E: Sub-process /usr/bin/dpkg returned an error code (1)


I knew this would fail, tried it before but hey, doesn't hurt to try again.

Code: Select all
apt-cache policy nvidia-installer-cleanup glx-diversions glx-alternative-* nvidia-glx fglrx-driver
nvidia-installer-cleanup:
  Installed: (none)
  Candidate: 20111111+1~bpo60+1
  Version table:
     20120630+3 0
        100 /var/lib/dpkg/status
     20111111+1~bpo60+1 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/contrib amd64 Packages
glx-diversions:
  Installed: 0.2.2
  Candidate: 0.2.2
  Version table:
 *** 0.2.2 0
        100 /var/lib/dpkg/status
     0.2.0~bpo60+1 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/contrib amd64 Packages
glx-alternative-mesa:
  Installed: (none)
  Candidate: 0.2.0~bpo60+1
  Version table:
     0.2.0~bpo60+1 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/contrib amd64 Packages
glx-alternative-fglrx:
  Installed: (none)
  Candidate: 0.2.0~bpo60+1
  Version table:
     0.2.0~bpo60+1 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/contrib amd64 Packages
glx-alternative-nvidia:
  Installed: (none)
  Candidate: 0.2.0~bpo60+1
  Version table:
     0.2.0~bpo60+1 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/contrib amd64 Packages
nvidia-glx:
  Installed: (none)
  Candidate: 195.36.31-6squeeze2
  Version table:
     295.59-1~bpo60+2 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/non-free amd64 Packages
     195.36.31-6squeeze2 0
        500 http://ftp.us.debian.org/debian/ squeeze/non-free amd64 Packages
fglrx-driver:
  Installed: (none)
  Candidate: 1:10-9-3squeeze1
  Version table:
     1:12-3-1~bpo60+1 0
        100 http://backports.debian.org/debian-backports/ squeeze-backports/non-free amd64 Packages
     1:10-9-3squeeze1 0
        500 http://ftp.us.debian.org/debian/ squeeze/non-free amd64 Packages
User avatar
DragonDon
 
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

Re: I have a stuck package "glx-diversions'

Postby cynwulf » 2013-07-19 19:48

Based on that, I can't see why you have glx-diversions installed...
Code: Select all
$ aptitude why glx-diversions
cynwulf
 
Posts: 2396
Joined: 2008-09-25 08:49

Re: I have a stuck package "glx-diversions'

Postby dilberts_left_nut » 2013-07-19 19:52

Looks like you have the glx-diversions package from wheezy installed.

I would purge it, along with any dependencies, make sure you are fully up to date with squeeze, read the wheezy release notes, then do the upgrade.

You can remove the cd and deb-src lines from your sources.list.

... and don't mix branches in future. :)
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4658
Joined: 2009-10-05 07:54
Location: enzed

Re: I have a stuck package "glx-diversions'

Postby DragonDon » 2013-07-19 23:03

cynwulf wrote:Based on that, I can't see why you have glx-diversions installed...
Code: Select all
$ aptitude why glx-diversions


Lol:

"unable to find a reason to install glx-diversions"

I just gotta laugh at this. So stupid. Someone on the #debian channel said that it is a "base file" for graphics drivers, or something like that.

Fyi, right now my video driver is running on VESA because it died somehow. So maybe glx-diversions might be raised to the formerly working fglx?
User avatar
DragonDon
 
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

Re: I have a stuck package "glx-diversions'

Postby DragonDon » 2013-07-19 23:24

dilberts_left_nut wrote:Looks like you have the glx-diversions package from wheezy installed.

I would purge it, along with any dependencies, make sure you are fully up to date with squeeze, read the wheezy release notes, then do the upgrade.

You can remove the cd and deb-src lines from your sources.list.

... and don't mix branches in future. :)


Where do you see that ? I certainly don't recall ever doing that. The only non-squeeze stuff in my sources is for a program that I'm not running any more, and that was only recent too.

So, question is, how do I purge? I tried all the normal ways and still get an error.

Image

Image

Image
User avatar
DragonDon
 
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

Re: I have a stuck package "glx-diversions'

Postby dilberts_left_nut » 2013-07-19 23:37

DragonDon wrote:Where do you see that ?

DragonDon wrote:
Code: Select all
glx-diversions:
  Installed: 0.2.2

http://packages.debian.org/search?suite ... diversions

DragonDon wrote: I certainly don't recall ever doing that. The only non-squeeze stuff in my sources is for a program that I'm not running any more, and that was only recent too.
Must have been planted by evil hacker terrorists to disrupt your system then.

DragonDon wrote:So, question is, how do I purge? I tried all the normal ways and still get an error.
Manually.
Delete / move the offending files, then try again.
I'd quote the relavent bits, but you can't quote from screenshots... :roll:
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4658
Joined: 2009-10-05 07:54
Location: enzed

Re: I have a stuck package "glx-diversions'

Postby DragonDon » 2013-07-20 00:23

dilberts_left_nut wrote:
DragonDon wrote:Where do you see that ?

DragonDon wrote:
Code: Select all
glx-diversions:
  Installed: 0.2.2

http://packages.debian.org/search?suite ... diversions

DragonDon wrote: I certainly don't recall ever doing that. The only non-squeeze stuff in my sources is for a program that I'm not running any more, and that was only recent too.
Must have been planted by evil hacker terrorists to disrupt your system then.


Must have been. :roll:

DragonDon wrote:So, question is, how do I purge? I tried all the normal ways and still get an error.
Manually.
Delete / move the offending files, then try again.
I'd quote the relavent bits, but you can't quote from screenshots... :roll:[/quote]

I'd copy paste but can't do that while away from the system and using my Galaxy Tab to remotely fix my system. :roll:

Guess I'll wait till I'm home so you can quote the relevant bits and I don't delete/move the wrong ones.
User avatar
DragonDon
 
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

Re: I have a stuck package "glx-diversions'

Postby dilberts_left_nut » 2013-07-20 01:18

Well, it's already broken, so just have at it :D

Try just renaming the one it says it can't overwrite and see what happens.
Just take note of what you do, so you can get back where you started if necessary.

Or you could read documentaton all about the alternatives system and figure out how it is supposed to work, and apply that newfound knowlege to your borked system.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4658
Joined: 2009-10-05 07:54
Location: enzed

Re: I have a stuck package "glx-diversions'

Postby StefanvK » 2013-08-05 09:01

I just edited the first line of the file
/var/lib/dpkg/info/glx-diversions.postrm
with
exit 0

now apt-get remove glx-diversions works fine.
StefanvK
 
Posts: 1
Joined: 2013-08-05 08:54

Re: I have a stuck package "glx-diversions'

Postby lbm » 2014-06-10 17:26

StefanvK wrote:I just edited the first line of the file
/var/lib/dpkg/info/glx-diversions.postrm
with
exit 0

now apt-get remove glx-diversions works fine.


Aha. That did it for me as well.
User avatar
lbm
 
Posts: 478
Joined: 2009-05-16 09:24
Location: Denmark

Re: I have a stuck package "glx-diversions'

Postby txducker » 2017-07-30 22:17

Thanks for sharing your solution. This worked for me also. I had this problem in Debian 8 after installing non-free nvidia drivers for a gt 240 graphics card.
txducker
 
Posts: 1
Joined: 2017-07-30 22:12


Return to General Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable