Ubuntu 10.10 upgrade woes, part 2

Feeling that I had been through the worst of it at home, I ventured forth to upgrade the office desktop, also a Win7/Ubuntu10.04-64 dual-boot but with a dual-monitor.  Being so much older and wiser, I sailed through the grub nonsense and all appeared just dandy, until …

Could not install 'fglrx'

The upgrade will continue but the 'fglrx' package may not be in a working state.
Please consider submitting a bug report about it.

subprocess installed post-removal script returned error exit status 2


Error during commit

A problem occurred during the clean-up.
Please see the below message for more information. 

installArchives() failed

OK …  Reboot — white screen with nice fine colored pinstripes and a 2cm square of white for a mouse pointer.   Awesome.   Hard power off/on, boot into recovery mode – low graphics mode.  Run “apt-get install -f” as instructed, which results in the removal of the fglrx package:

The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 108MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 179598 files and directories currently installed.)
Removing fglrx ...
dpkg-divert: mismatch on package
  when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by fglrx'
  found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx'
dpkg: error processing fglrx (--remove):
 subprocess installed post-removal script returned error exit status 2
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Only later did I discover that fglrx was related to my ATI video adapter.  Anyway, rebooted, this time getting a totally blank white screen.  Hard power off/on boot into recovery mode again – repair packages.  This seemed to fix things to a reasonable point.  The ATI packages are still not all installed, or not all installed correctly, but at least I have a functional system that looks OK.


  1. #1 by JeremyT on November 5, 2010 - 12:08 am

    I don’t know where the packaging problems came from, but fglrx is ATI’s proprietary driver package for their video cards. ATI has historically not released their drivers under an open source license, which has been a perennial source of woe for Linux distributions.

    This driver probably comes from the “restricted” repository and would’ve been made available through Ubuntu’s restricted hardware wizard… thingy. That stuff usually “just works,” but something must’ve gone south in the upgrade process.

    If all else fails you can usually get a functional X session by completely removing the /etc/X11/xorg.conf file, which will cause your system to fall back on the more basic open source ATI X drivers which should “just work.” xorg.conf itself is deprecated, but due to the unfortunate situation here (with both open and closed drivers available) enabling the non-OSS drivers will cause one to be created to override Xorg’s driver autoselection.

  1. ati graphics card