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

 

 

 

I have a stuck package "glx-diversions'

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
DragonDon
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

I have a stuck package "glx-diversions'

#1 Post by DragonDon »

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.
DragonDon
http://dragondon.net
Twitter: @DragnDon

cynwulf

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

#2 Post by cynwulf »

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

Post your sources.list

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

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

#3 Post by DragonDon »

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
DragonDon
http://dragondon.net
Twitter: @DragnDon

cynwulf

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

#4 Post by cynwulf »

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

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

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

#5 Post by DragonDon »

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
DragonDon
http://dragondon.net
Twitter: @DragnDon

cynwulf

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

#6 Post by cynwulf »

Based on that, I can't see why you have glx-diversions installed...

Code: Select all

$ aptitude why glx-diversions

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#7 Post by dilberts_left_nut »

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
DragonDon
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

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

#8 Post by DragonDon »

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?
DragonDon
http://dragondon.net
Twitter: @DragnDon

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

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

#9 Post by DragonDon »

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
DragonDon
http://dragondon.net
Twitter: @DragnDon

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#10 Post by dilberts_left_nut »

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
DragonDon
Posts: 16
Joined: 2012-03-15 03:30
Location: Uijeongbu, South Korea

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

#11 Post by DragonDon »

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.
DragonDon
http://dragondon.net
Twitter: @DragnDon

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#12 Post by dilberts_left_nut »

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

StefanvK
Posts: 1
Joined: 2013-08-05 08:54

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

#13 Post by StefanvK »

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.

User avatar
lbm
Posts: 494
Joined: 2009-05-16 09:24
Location: Denmark

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

#14 Post by lbm »

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.

txducker
Posts: 1
Joined: 2017-07-30 22:12

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

#15 Post by txducker »

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.

Post Reply