Results 1 to 8 of 8

Thread: [SOLVED] xorg-driver-fglrx preventing updates

  1. #1
    Join Date
    Jun 2007
    Beans
    14,793

    [SOLVED] xorg-driver-fglrx preventing updates

    I'm stumped. Been searching around and can't find anything. I've also tried aptitude and no luck there either. The files it refers to don't even exist.

    Code:
    dan@harvest:/dev$ sudo apt-get install -f
    [sudo] password for dan: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libbrlapi0.5 python-pyatspi libx11-xcb1 php5-gd python-brlapi libt1-5 php5-cli php5-common
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      xorg-driver-fglrx
    0 upgraded, 0 newly installed, 1 to remove and 87 not upgraded.
    1 not fully installed or removed.
    After this operation, 44.0MB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 146644 files and directories currently installed.)
    Removing xorg-driver-fglrx ...
    dpkg-divert: mismatch on divert-to
      when removing `diversion of /usr/X11R6/lib32/libGL.so.1 to /usr/X11R6/lib32/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx'
      found `diversion of /usr/X11R6/lib32/libGL.so.1 to /usr/X11R6/lib32/fglrx/libGL.so.1.xlibmesa by xorg-driver-fglrx'
    dpkg: error processing xorg-driver-fglrx (--remove):
     subprocess post-removal script returned error exit status 2
    Errors were encountered while processing:
     xorg-driver-fglrx
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Last edited by Yellow Pasque; June 27th, 2008 at 07:39 AM.

  2. #2
    Join Date
    Jun 2008
    Location
    Madison, WI
    Beans
    2
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: xorg-driver-fglrx preventing updates

    I'm having the same problem.

    Code:
    (Reading database ... 119369 files and directories currently installed.)
    Removing xorg-driver-fglrx ...
    dpkg-divert: mismatch on divert-to
      when removing `diversion of /usr/X11R6/lib32/libGL.so.1 to /usr/X11R6/lib32/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx'
      found `diversion of /usr/X11R6/lib32/libGL.so.1 to /usr/X11R6/lib32/fglrx/libGL.so.1.xlibmesa by xorg-driver-fglrx'
    dpkg: error processing xorg-driver-fglrx (--remove):
     subprocess post-removal script returned error exit status 2
    Removing xserver-xorg-video-all ...
    Removing xserver-xorg-video-ati ...
    Errors were encountered while processing:
     xorg-driver-fglrx
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install.  Trying to recover:
    When trying to remove all the fglrx stuff so I can try again.

    -stefan

  3. #3
    Join Date
    Jun 2007
    Beans
    14,793

    Re: xorg-driver-fglrx preventing updates

    Bump

  4. #4
    Join Date
    Jun 2007
    Beans
    14,793

    Re: xorg-driver-fglrx preventing updates

    bump

  5. #5
    Join Date
    Sep 2007
    Location
    Surrey, UK
    Beans
    1,903
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: xorg-driver-fglrx preventing updates

    You can manually remove the dpkg diversions as they are stored in a file.
    I renamed the diversions to make it work.

    Open the file up with root privalages:
    Code:
    sudo gedit /var/lib/dpkg/diversions
    Then you want to look for the diversions that the error speaks of, in my diversions file I have something like this:
    Code:
    /usr/X11R6/lib/libGL.so.1
    /usr/X11R6/lib/fglrx/libGL.so.1.xlibmesa
    xorg-driver-fglrx
    Modify the second line so it matches what its expecting in the error, so I would change it to:
    Code:
    /usr/X11R6/lib/libGL.so.1
    /usr/X11R6/lib/fglrx/libGL.so.1.2.xlibmesa
    xorg-driver-fglrx
    Then try the sudo apt-get install -f again, it will probably throw up another error as the package has several diversions.
    Keep repeating the process until it finishes the install force.
    Last edited by danwood76; June 28th, 2008 at 07:19 PM. Reason: Slight typo

  6. #6
    Join Date
    Jun 2007
    Beans
    14,793

    Re: xorg-driver-fglrx preventing updates

    That did the trick. The sad thing is that I did an ls on that directory looking for the status file and didn't see the diversions file (sigh).

    Thank you.

  7. #7
    Join Date
    Jan 2010
    Location
    Netherlands, Ureterp
    Beans
    13
    Distro
    Ubuntu Development Release

    Re: [SOLVED] xorg-driver-fglrx preventing updates

    Thank you for explaining the diversion error
    I spend hours trying to figure it out

  8. #8
    Join Date
    Mar 2010
    Beans
    13

    Re: [SOLVED] xorg-driver-fglrx preventing updates

    didnt get it? what do you mean by what it expects?

    my file already has the line as you suggested!?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •