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
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)
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).
#
# 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
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.
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.
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...
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.
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... [/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.
Guess I'll wait till I'm home so you can quote the relevant bits and I don't delete/move the wrong ones.
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.
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.