Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: nothing helps to fix broken package manager.

  1. #1
    Join Date
    Apr 2012
    Beans
    45

    Exclamation nothing helps to fix broken package manager.

    If I want to remove/install update a package apt gives this error
    Code:
    libdrm-dev : Requires: libdrm-nouveau1a (= 2.4.42+git1302070925.20c560~gd~p) but 2.4.39-0ubuntu1 is installed.
    and If I use sudo apt-get -f install it 'works' untill it gives this error:
    Code:
    dpkg: fout bij afhandelen van /var/cache/apt/archives/libdrm-nouveau1a_2.4.42+git1302070925.20c560~gd~p_amd64.deb (--unpack):
     trying to overwrite '/usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0', which is also in package libdrm-nouveau2 2.4.39-0ubuntu1
    Fouten gevonden tijdens behandelen van:
     /var/cache/apt/archives/libdrm-nouveau1a_2.4.42+git1302070925.20c560~gd~p_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    ^^"fouten" is dutch for "errors", for some reason apt is not 100% translated to the nl-NL locale.

    I tried everything I was able to find on the internet! -but nothing helped.
    And yes I have added some PPAs, but this 'broken' package is build succesfully according to https://launchpad.net/~oibaf/+archiv...vers/+packages
    ^^the .deb file from /var/cache/apt/archives/ is included as an attachment, it looks like a normal archive with no errors...

    what's the (best) working fix I haven't found?
    ^^most apt/dpkg commands don't work, especially the ones I need; removing any PPA won't help. (even with the --force option)
    most probably I have to manually edit something to make apt work again...
    ^^something like reverse enginering the .deb file or so.

    info about my laptop:
    ubuntu 12.04 64-bit (I am considering an upgrade, to quantal, raring or just keep using precise)
    to install the mesa 9.0.2 with gallium I added the mesa9 and the optimized-drivers PPAs, probably it was a mistake to add the new ppa before removing the other one, now I have only the optim-drv one left.
    the ppa: oibaf / Updated and Optimized Graphics Drivers
    Attached Files Attached Files
    Last edited by U202E; February 11th, 2013 at 05:02 PM. Reason: solved, thanks to comment #15!

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: nothing helps to fix broken package manager.

    Try to remove libdrm-nouveau2 first

  3. #3
    Join Date
    Apr 2012
    Beans
    45

    Re: nothing helps to fix broken package manager.

    Quote Originally Posted by schragge View Post
    Try to remove libdrm-nouveau2 first
    I can't use dpkg...
    do you think deleting this with nautilus will help?
    /usr/share/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0

    ^there is a libdrm_nouveau.so pointing at this file.

  4. #4
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: nothing helps to fix broken package manager.

    sudo rm /var/cache/apt/archives/*

    then try again

    note: have you some ppa or extra repo activated ?

  5. #5
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: nothing helps to fix broken package manager.

    Quote Originally Posted by U202E View Post
    I can't use dpkg...
    Even with --force-* options? Something like
    Code:
    sudo dpkg --force-remove-reinstreq -r libdrm-nouveau2
    Or at least,
    Code:
    echo libdrm-nouveau2 deinstall|sudo dpkg --set-selections
    sudo apt-get upgrade
    Quote Originally Posted by U202E View Post
    do you think deleting this with nautilus will help?
    /usr/share/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0

    ^there is a libdrm_nouveau.so pointing at this file.
    I wouldn't try it before all other options are exhausted.

  6. #6
    Join Date
    Apr 2012
    Beans
    45

    Cool Re: nothing helps to fix broken package manager.

    Quote Originally Posted by dino99 View Post
    sudo rm /var/cache/apt/archives/*
    ^^thanks for your reply, but it just removes a cache file; It doesn't help.
    (Rm gave me an error because it can't delete an folder)
    the deb file looks good, I can just open it with archive manager and view it's content.

    note: have you some ppa or extra repo activated ?
    as I mentioned before: yes, I added the optimized-drv and mesa9 ppa, then removed ppa:mesa9.

  7. #7
    Join Date
    Apr 2012
    Beans
    45

    Re: nothing helps to fix broken package manager.

    Quote Originally Posted by schragge View Post
    Even with --force-* options? Something like
    Code:
    sudo dpkg --force-remove-reinstreq -r libdrm-nouveau2
    Or at least,
    Code:
    echo libdrm-nouveau2 deinstall|sudo dpkg --set-selections
    sudo apt-get upgrade
    I wouldn't try it before all other options are exhausted.
    thanks for the options, I have tried all your commands and nothing helped.
    when saying not able to use dpkg I meaned even with force...

    and removing the /usr/lib... well I tried it it: I didn't remove it but I just moved it to desktop, and because nothing happened I moved it back.

    do you think upgrading to quantal will fix this? or will it make things worse?
    Last edited by U202E; February 10th, 2013 at 08:01 PM.

  8. #8
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: nothing helps to fix broken package manager.

    What does sudo dpkg -C show?

  9. #9
    Join Date
    Apr 2012
    Beans
    45

    Re: nothing helps to fix broken package manager.

    Quote Originally Posted by schragge View Post
    What does sudo dpkg -C show?
    It looks like at least someone can help me...

    this is the result:
    Code:
    De volgende pakketten zijn uitgepakt maar nog niet geconfigureerd.  Ze
    moeten geconfigureerd worden met dpkg --configure of de menu optie
    Configureren in dselect om ze te laten werken:
     libosmesa6-dev       Mesa Off-screen rendering extension -- development files
     libgl1-mesa-dev      free implementation of the OpenGL API -- GLX development 
     mesa-common-dev      Developer documentation for Mesa
     libdrm-dev           Userspace interface to kernel DRM services -- development
    in case you're not dutch, it says ' these packages are unpacked but not configured, they have to be configured with --configure'

  10. #10
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: nothing helps to fix broken package manager.

    First, try to configure them one by one
    Code:
    sudo dpkg --configure libosmesa6-dev
    sudo dpkg --configure libgl1-mesa-dev
    sudo dpkg --configure mesa-common-dev
    sudo dpkg --configure libdrm-dev
    Then look again at the output of 'sudo dpkg -C'

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •