Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Cannot Repair Package Catalog

  1. #11
    Join Date
    Sep 2012
    Location
    Virginia, USA
    Beans
    209
    Distro
    Ubuntu Development Release

    Re: Cannot Repair Package Catalog

    Here's another option for you to try out, but it's a bit more drastic than the stuff we've tried so far (in case you're losing patience).

    At the command line:

    Code:
    sudo rm -f /var/lib/apt/lists/*
    sudo mv /var/lib/dpkg/{status,status-bad}
    sudo cp /var/lib/dpkg/{status-old,status}
    sudo apt-get update
    sudo apt-get dist-upgrade
    This will delete any package lists you have stored on the system, and it will revert dpkg's package status list back to an old version. You may then be able to get things back on track.

    A next step, if that still doesn't work, is to manually go through /var/lib/dpkg/status and delete the sections for the broken packages, then update and dist-upgrade again. But hopefully it won't come to that, as editing that file is a bit dangerous.
    Asus K55A (Core i5-3210M @ 2.5GHz/8GB RAM/120GB SSD/Intel HD 4000) with Ubuntu 12.10 Beta 2
    Compaq Presario C700 (Pentium Dual-Core @ 1.6GHz/2.5GB RAM/500GB HDD/Intel GM965) with Arch Linux and Linux Mint Debian Edition

  2. #12
    Join Date
    Sep 2011
    Beans
    20

    Re: Cannot Repair Package Catalog

    Thanks for the response. Naw, I'm not losing patience here, just worried that y'all are going to leave me in the dust!

    For the
    Code:
    sudo rm -f /var/lib/apt/lists/*
    I get
    Code:
    rm: cannot remove `/var/lib/apt/lists/partial': Is a directory
    Don't know what I'm doing wrong.

    As far as the other questions go, I'm not trying to compile anything with kerberos. I didn't even know what the heck it was until it started acting a fool...

  3. #13
    Join Date
    Sep 2012
    Location
    Virginia, USA
    Beans
    209
    Distro
    Ubuntu Development Release

    Re: Cannot Repair Package Catalog

    Quote Originally Posted by TDalton View Post
    Thanks for the response. Naw, I'm not losing patience here, just worried that y'all are going to leave me in the dust!

    For the
    Code:
    sudo rm -f /var/lib/apt/lists/*
    I get
    Code:
    rm: cannot remove `/var/lib/apt/lists/partial': Is a directory
    Don't know what I'm doing wrong.

    As far as the other questions go, I'm not trying to compile anything with kerberos. I didn't even know what the heck it was until it started acting a fool...
    The error with 'var/lib/apt/lists/partial' shouldn't matter; continue with the rest of the commands.
    Asus K55A (Core i5-3210M @ 2.5GHz/8GB RAM/120GB SSD/Intel HD 4000) with Ubuntu 12.10 Beta 2
    Compaq Presario C700 (Pentium Dual-Core @ 1.6GHz/2.5GB RAM/500GB HDD/Intel GM965) with Arch Linux and Linux Mint Debian Edition

  4. #14
    Join Date
    Sep 2011
    Beans
    20

    Re: Cannot Repair Package Catalog

    Code:
    krb5-multidev
    Is still ******* with me. All other dependency problems are handled
    Code:
    The following packages have unmet dependencies:
     libkrb5-dev : Depends: krb5-multidev (= 1.10+dfsg~beta1-2ubuntu0.2) but 1.10+dfsg~beta1-2ubuntu0.3 is installed
    E: Unmet dependencies. Try using -f.

  5. #15
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: Cannot Repair Package Catalog

    libkrb5-dev : Depends: krb5-multidev (= 1.10+dfsg~beta1-2ubuntu0.2) but 1.10+dfsg~beta1-2ubuntu0.3 is installed
    the problem is that it depends on a specific version of that package, not a version greater than. download and install the specific version and it should work

  6. #16
    Join Date
    Sep 2012
    Location
    Virginia, USA
    Beans
    209
    Distro
    Ubuntu Development Release

    Re: Cannot Repair Package Catalog

    Quote Originally Posted by TDalton View Post
    Code:
    krb5-multidev
    Is still ******* with me. All other dependency problems are handled
    Code:
    The following packages have unmet dependencies:
     libkrb5-dev : Depends: krb5-multidev (= 1.10+dfsg~beta1-2ubuntu0.2) but 1.10+dfsg~beta1-2ubuntu0.3 is installed
    E: Unmet dependencies. Try using -f.
    Well, it's great that we're making progress! What HilmTye suggested above may work (that is, you may be able to download the specific version it is requesting after the '=' sign and install it to fix the problem), but there are other things you might try first. Remember the earlier commands that we tried to remove various packages? They are much more likely to work now that only one package is having problems, so you might try them again. To be thorough, here's what I'd try (stopping if one of the earlier ones in this list seems to work, and continuing through them all even if an earlier one fails):

    Code:
    sudo apt-get update
    sudo apt-get clean
    sudo dpkg --configure -a
    sudo apt-get install -f
    sudo apt-get purge libkrb5-dev
    sudo dpkg --remove --force-remove-reinstreq libkrb5-dev
    sudo apt-get install libkrb5-dev=1.10+dfsg~beta1-2ubuntu0.2
    After this, try to 'sudo apt-get update' and 'sudo apt-get dist-upgrade' (both without quotes). If none of that works, then you may have to try manually downloading the specific .deb and installing it. That might bring problems of its own, so we'll see -- I think it should be a resort after trying the above.
    Asus K55A (Core i5-3210M @ 2.5GHz/8GB RAM/120GB SSD/Intel HD 4000) with Ubuntu 12.10 Beta 2
    Compaq Presario C700 (Pentium Dual-Core @ 1.6GHz/2.5GB RAM/500GB HDD/Intel GM965) with Arch Linux and Linux Mint Debian Edition

  7. #17
    Join Date
    Sep 2011
    Beans
    20

    Re: Cannot Repair Package Catalog

    I have tried all the above commands.

    Code:
    sudo apt-get purge libkrb5-dev
    So, I can't purge libkrb5-dev.

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
     libcups2-dev : Depends: libkrb5-dev but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    So libcups2-dev depends on libkrb5-dev?

    Same problem arises with
    Code:
    sudo dpkg --remove --force-remove-reinstreq libkrb5-dev
    Code:
    dpkg: dependency problems prevent removal of libkrb5-dev:
     libcups2-dev depends on libkrb5-dev.
    dpkg: error processing libkrb5-dev (--remove):
     dependency problems - not removing
    Errors were encountered while processing:
     libkrb5-dev
    Code:
     sudo apt-get install libkrb5-dev=1.10+dfsg~beta1-2ubuntu0.2
    output:

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    libkrb5-dev is already the newest version.
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
     libkrb5-dev : Depends: krb5-multidev (= 1.10+dfsg~beta1-2ubuntu0.2) but 1.10+dfsg~beta1-2ubuntu0.3 is to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

  8. #18
    Join Date
    Sep 2012
    Location
    Virginia, USA
    Beans
    209
    Distro
    Ubuntu Development Release

    Re: Cannot Repair Package Catalog

    Quote Originally Posted by TDalton View Post
    I have tried all the above commands.

    Code:
    sudo apt-get purge libkrb5-dev
    So, I can't purge libkrb5-dev.

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
     libcups2-dev : Depends: libkrb5-dev but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    So libcups2-dev depends on libkrb5-dev?
    Code:
    sudo apt-get purge libcups2-dev libkrb5-dev
    Asus K55A (Core i5-3210M @ 2.5GHz/8GB RAM/120GB SSD/Intel HD 4000) with Ubuntu 12.10 Beta 2
    Compaq Presario C700 (Pentium Dual-Core @ 1.6GHz/2.5GB RAM/500GB HDD/Intel GM965) with Arch Linux and Linux Mint Debian Edition

  9. #19
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: Cannot Repair Package Catalog

    Quote Originally Posted by TDalton View Post
    libkrb5-dev : Depends: krb5-multidev (= 1.10+dfsg~beta1-2ubuntu0.2) but 1.10+dfsg~beta1-2ubuntu0.3 is to be installed
    [/CODE]
    install that package first, repeat with any new packages that pop up.

  10. #20
    Join Date
    Sep 2012
    Location
    Virginia, USA
    Beans
    209
    Distro
    Ubuntu Development Release

    Re: Cannot Repair Package Catalog

    Quote Originally Posted by HiImTye View Post
    install that package first, repeat with any new packages that pop up.
    As I mentioned before, this remains an option for you, OP. However, the -dev packages probably should not be on your system in the first place (unless you are compiling/building software yourself), in which case it is probably best to simply remove them (see my above suggestion about purging both libcups2-dev and libkrb5-dev). If that doesn't work for some reason, though, then trying to install the specific package listed in the error message would likely fix the problem (assuming that this specific package doesn't have dependency issues of its own! -- that's perhaps another reason to avoid trying to install it manually as the first option).
    Asus K55A (Core i5-3210M @ 2.5GHz/8GB RAM/120GB SSD/Intel HD 4000) with Ubuntu 12.10 Beta 2
    Compaq Presario C700 (Pentium Dual-Core @ 1.6GHz/2.5GB RAM/500GB HDD/Intel GM965) with Arch Linux and Linux Mint Debian Edition

Page 2 of 3 FirstFirst 123 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
  •