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

Thread: The package system is broken

  1. #1
    Join Date
    Oct 2012
    Beans
    7

    Unhappy The package system is broken

    Hello all,

    I installed Ubuntu a month or so ago and it was running quite well until last week. I have a "stop sign" on my task bar and when I click on it the update manager open. I can t do any updates because I get this error :

    The following packages have unmet dependencies:

    libc6: Depends: libc-bin (= 2.15-0ubuntu10) but 2.15-0ubuntu10.2 is installed
    libc6-dev: Depends: libc6 (= 2.15-0ubuntu10.2) but 2.15-0ubuntu10 is installed
    Depends: libc-dev-bin (= 2.15-0ubuntu10.2) but 2.15-0ubuntu10.2 is installed

    It is suggest to do apt-get install - f but I get this

    media@maisonmedia:~$ sudo apt-get install -f
    [sudo] password for media:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
    libc6
    Suggested packages:
    glibc-doc
    The following packages will be upgraded:
    libc6
    1 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/3,935 kB of archives.
    After this operation, 20.5 kB of additional disk space will be used.
    Do you want to continue [Y/n]?

    Should I type yes or no? Is this going to erase data on my computer? Sorry if this seems all super dumb questions! If you can help me figure it out it would be great. I read some things and most of them suggest a Ubuntu re install?

    And... I also went to software manager and tried a repair. I get this :
    installArchives() failed: Preconfiguring packages ...
    Preconfiguring packages ...
    Preconfiguring packages ...
    Preconfiguring packages ...
    (Reading database ...
    dpkg: warning: files list file for package `libc6' missing, assuming package has no files currently installed.
    (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 225575 files and directories currently installed.)
    Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.2_i386.deb) ...

    A copy of the C library was found in an unexpected directory:
    '/lib/i386-linux-gnu/libc-2.15.so'
    It is not safe to upgrade the C library in this situation;
    please remove that copy of the C library or get it out of
    '/lib/i386-linux-gnu' and try again.

    dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu10.2_i386.deb (--unpack):
    subprocess new pre-installation script returned error exit status 1
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
    /var/cache/apt/archives/libc6_2.15-0ubuntu10.2_i386.deb
    Error in function:
    dpkg: dependency problems prevent configuration of libc6-dev:
    libc6-dev depends on libc6 (= 2.15-0ubuntu10.2); however:
    Version of libc6 on system is 2.15-0ubuntu10.
    dpkg: error processing libc6-dev (--configure):
    dependency problems - leaving unconfigured

    Help please!!

    Also, since I am here, I have a problem when watching videos (any type, streaming, cds...). They seem jumpy. Any ideas?

    Thank you

    Rita
    Last edited by ritarebollo; October 11th, 2012 at 04:43 AM. Reason: I got the root to work and tried software manager

  2. #2
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: The package system is broken

    I'm afraid that this one might be a tough one.

    Firstly, run:

    Code:
    sudo apt-get install -f
    again but this time, answer yes "Y" when you are asked if you want to proceed. The -f switch just forces apt to fix broken dependencies and won't do any harm.

    If you still can't upgrade, please post the output to this forum again, just as you have done here.

    If this is coming up in a brand new install, it may make sense to just re-install. However, don't spend the time re-installing until we at least try a few other things first and especially so if you've already done some work and have some data on your machine.

    BTW, my compliments on providing so much info. It really helps us to help you.

  3. #3
    Join Date
    Oct 2006
    Location
    California
    Beans
    Hidden!

    Re: The package system is broken

    Are you running the latest Ubuntu, 12.04?

    I can't really tell because of that 10.2!

    Again, try sudo apt-get -f. If you can't get it to work, here's a list of things you can do:

    1) sudo dpkg --configure -a
    2) sudo dpkg-reconfigure -phigh -a
    3) sudo apt-get install libc6-bin && sudo apt-get install lib6
    4) google your error, see what other people recommend, and try to learn about the commands so that you can know what you're doing BEFORE you execute it, in case it might makes things worse (I don't mean this in an angry way!)

    Also, your error looks like it's anti the 10.2 version of that library. Did you install software from or add any non-official repositories lately? If you did, then you can probably search for those packages in synaptic (libc6 ones) then downgarde them to the ones from the official repos.

  4. #4
    Join Date
    Oct 2012
    Beans
    7

    Re: The package system is broken

    Hi again!

    Thanks for the quick reply. I did the sudo apt-get install -f again and got this :

    media@maisonmedia:~$ sudo apt-get install -f
    [sudo] password for media:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
    libc6
    Suggested packages:
    glibc-doc
    The following packages will be upgraded:
    libc6
    1 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/3,935 kB of archives.
    After this operation, 20.5 kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Preconfiguring packages ...
    (Reading database ...
    dpkg: warning: files list file for package `libc6' missing, assuming package has no files currently installed.
    (Reading database ... 225575 files and directories currently installed.)
    Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.2_i386.deb) ...

    A copy of the C library was found in an unexpected directory:
    '/lib/i386-linux-gnu/libc-2.15.so'
    It is not safe to upgrade the C library in this situation;
    please remove that copy of the C library or get it out of
    '/lib/i386-linux-gnu' and try again.

    dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu10.2_i386.deb (--unpack):
    subprocess new pre-installation script returned error exit status 1
    Errors were encountered while processing:
    /var/cache/apt/archives/libc6_2.15-0ubuntu10.2_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    So it seems the -f really doesn t work right?

    As for the Ubuntu specifications : Ubuntu 12.04 LTS

    1)

    media@maisonmedia:~$ sudo dpkg --configure -a
    [sudo] password for media:
    dpkg: dependency problems prevent configuration of libc6-dev:
    libc6-dev depends on libc6 (= 2.15-0ubuntu10.2); however:
    Version of libc6 on system is 2.15-0ubuntu10.
    dpkg: error processing libc6-dev (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    libc6-dev

    2) the reconfigure command
    I'm trying this now. I guess if the package needs to be reconfigured it may take a while (I googled it). So I'll see what happens later and will keep you posted.

    I don t think I have installed any non official repositories but who knows! I had read that already and tried to install synaptic, which I don t have, but I can't because Software manager doesn t allow me to... gives the same error as I posted before.

    Thanks for the help, I ll try the 2) and 3) and keep you posted
    Rita
    Last edited by ritarebollo; October 11th, 2012 at 07:09 AM. Reason: orthograph!

  5. #5
    Join Date
    Oct 2006
    Location
    California
    Beans
    Hidden!

    Re: The package system is broken

    Let's try to do what the apt-get -f error is telling us to do: remove that file.

    First back it up in case of anything:
    Code:
    sudo cp /lib/i386-linux-gnu/libc-2.15.so ~/libc-2.15.so
    Remove it with:
    Code:
    sudo rm /lib/i386-linux-gnu/libc-2.15.so
    Then re-run sudo apt-get -f. If you get the same error about another file, repeat this process (but change the name of the file of course)

  6. #6
    Join Date
    Oct 2012
    Beans
    7

    Re: The package system is broken

    Ok, weird :

    media@maisonmedia:~$ sudo cp /lib/i386-linux-gnu/libc-2.15.so ~/libc-2.15.so
    [sudo] password for media:
    media@maisonmedia:~$ sudo rm /lib/i386-linux-gnu/libc-2.15.so
    media@maisonmedia:~$ sudo apt-get -f
    sudo: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    media@maisonmedia:~$ sudo apt-get install -f
    sudo: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    media@maisonmedia:~$

    for info the 2) didn t give me anything

    Should I try 3) or get that libc-2.15.so file back?

  7. #7
    Join Date
    Oct 2006
    Location
    California
    Beans
    Hidden!

    Re: The package system is broken

    Try 3) and see if you can get it back via apt-get

    If it fails, then that's why we backed it up, so you can restore it like this:

    Code:
    sudo cp ~/libc-2.15.so /lib/i386-linux-gnu/libc-2.15.so
    By the way, try the last thing I mentioned afterwards(I should have said 5! lol). Oh, and can you also post the output of cat /etc/apt/sources.list (run sudo cat /etc/apt/sources.list if it's anti displaying it)

  8. #8
    Join Date
    Oct 2012
    Beans
    7

    Re: The package system is broken

    So, the computer crashed! Just after posting the last message. I turned on and I m in a recovery screen where I can chose the OS to boot. If I chose ubuntu, with Linux 3.2.0-31-generic pae I get a screen with an error : error while loading shared libraries: libc.so.6: cannot open shared object file: no such file or directory
    Followed by plenty of command lines

    I m going to bed so I ll try to take care of this tomorrow night! Thanks for the help and hopefully we ll figure it out!

    Rita

  9. #9
    Join Date
    Oct 2006
    Location
    California
    Beans
    Hidden!

    Re: The package system is broken

    Quote Originally Posted by ritarebollo View Post
    So, the computer crashed! Just after posting the last message. I turned on and I m in a recovery screen where I can chose the OS to boot. If I chose ubuntu, with Linux 3.2.0-31-generic pae I get a screen with an error : error while loading shared libraries: libc.so.6: cannot open shared object file: no such file or directory
    Followed by plenty of command lines

    I m going to bed so I ll try to take care of this tomorrow night! Thanks for the help and hopefully we ll figure it out!

    Rita
    Luckily we backed up the file, so we can restore it easily. If you get dropped to command line, let me know exactly what it says. Assuming you mount your root partition, see if you can run the command from my previous post. Otherwise, you be dropped to a terminal where it tells you to mount the root file system. For now, keep this goal in mind: you want to restore that libc6 file you backed up. This can either be done via the command line you're given or pretty easily through a livecd or usb (graphically by running the file manager, mounting your Ubuntu install, then running gksudo nautilus). I'm probably going to be busy due to school tomorrow, so if I don't get back to you in time, keep that goal in mind

  10. #10
    Join Date
    Oct 2012
    Beans
    7

    Re: The package system is broken

    Hello hello,

    Ok, it worked! I'll try to fix the initial problem now!


    Also, I couldn t try the "last thing you mentioned" on your first post because I couldn t find synaptic on my ubuntu version (and I can t install it since ubuntu is not working!).

    for 3)
    media@maisonmedia:~$ sudo apt-get install libc6_bin && sudo apt-get install lib6[sudo] password for media:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package libc6_bin

    Thanks again!
    Last edited by ritarebollo; October 12th, 2012 at 04:42 AM.

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
  •