Find the answer to your Linux question:
Results 1 to 9 of 9
Hi to all this is my first post, but i always read this forum... I got a problem with apt-get and i have no idea how to fix it. I ...
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    4

    Exclamation problem with apt

    Hi to all this is my first post, but i always read this forum... I got a problem with apt-get and i have no idea how to fix it.
    I use testing repos and never got any problem but since some days when i try to instal something apt-get did not do that and just prints
    The following packages have unmet dependencies:
    libc6 : Depends: libc-bin (= 2.11.2-11) but 2.13-21 is to be installed
    locales : Depends: glibc-2.13-1
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    If i type apt-get -f install it just returns

    The following packages have unmet dependencies:
    libc6 : Depends: libc-bin (= 2.11.2-11) but 2.13-21 is installed
    locales : Depends: glibc-2.13-1
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    E: Unable to correct dependencies

    What can i do to fix it? Is it possibile to do something? I never before find this type of errors...
    I really hope that some one can help me with this...
    Thanks to all!

  2. #2
    Guest
    Join Date
    Feb 2005
    Posts
    314
    First try

    Code:
    apt-get clean
    apt-get update
    apt-get dist-upgrade
    apt-get -f install
    If that doesn't resolve it post the output:
    Code:
    cat /etc/apt/sources.list

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    4

    Quote Originally Posted by caravel View Post
    First try

    Code:
    apt-get clean
    apt-get update
    apt-get dist-upgrade
    apt-get -f install
    If that doesn't resolve it post the output:
    Code:
    cat /etc/apt/sources.list
    i tried and got the same error also on dist-upgrade
    my sources is
    Code:
     root@DroidWare:~# cat /etc/apt/sources.list
    deb ftp://ftp.it.debian.org/debian/ testing main contrib non-free
     
    deb-src ftp://ftp.it.debian.org/debian/ testing main contrib non-fr
    root@DroidWare:~#

  4. #4
    Guest
    Join Date
    Feb 2005
    Posts
    314
    See if aptitude does any better:
    Code:
    aptitude full-upgrade
    If that doesn't work, post the full output.

  5. #5
    Just Joined!
    Join Date
    Nov 2011
    Posts
    4
    Quote Originally Posted by caravel View Post
    See if aptitude does any better:
    Code:
    aptitude full-upgrade
    If that doesn't work, post the full output.
    Ok i did it. After saying what it has to download and asked if i want to procced it starts to update many packages and then after the download of all of them just quited with this:
    Code:
    Extracting templates from packages: 100%
    Preconfiguring packages ...
    (Reading database ... 23718 files and directories currently installed.)
    Preparing to replace libc6 2.11.2-11 (using .../libc6_2.13-21_i386.deb) ...
    Checking for services that may need to be restarted...
    Checking init scripts...
    WARNING: this version of the GNU libc requires kernel version
    2.6.26 or later. Please upgrade your kernel before installing
    glibc.
    
    The installation of a 2.6 kernel _could_ ask you to install a new libc
    first, this is NOT a bug, and should *NOT* be reported. In that case,
    please add lenny sources to your /etc/apt/sources.list and run:
      apt-get install -t lenny linux-image-2.6
    Then reboot into this new kernel, and proceed with your upgrade
    dpkg: error processing /var/cache/apt/archives/libc6_2.13-21_i386.deb (--unpack)   :
     subprocess new pre-installation script returned error exit status 1
    configured to not write apport reports
                                          Errors were encountered while processing:
     /var/cache/apt/archives/libc6_2.13-21_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install.  Trying to recover:
    dpkg: dependency problems prevent configuration of locales:
     locales depends on glibc-2.13-1; however:
      Package glibc-2.13-1 is not installed.
    dpkg: error processing locales (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     locales
    Seems kernel/libc issue... Is it possibile to fix? Can i just put instead of testing a stable sources?

  6. #6
    Guest
    Join Date
    Feb 2005
    Posts
    314
    Post output:

    Code:
    uname -r

  7. #7
    Just Joined!
    Join Date
    Nov 2011
    Posts
    4
    Quote Originally Posted by caravel View Post
    Post output:

    Code:
    uname -r
    ok, here we are

    Code:
    2.6.18-194.17.1.el5.028stab070.7

  8. #8
    Guest
    Join Date
    Feb 2005
    Posts
    314
    So there's the problem...

    I take it you don't update often?

    2.6.18 is an old kernel, a few years old in fact, Debian 4 "Etch" used a 2.6.18 kernel, but the one you have there is not a debian kernel as far as I can tell.

    But you're tracking testing (Debian 7 "Wheezy") in your sources which uses a much newer version 3.x kernel, so it's a square peg in a round hole scenario.

    No idea what you have there... when was the system installed? Are there any debian kernels installed on the system and where did you get that kernel from?

    Code:
    apt-cache policy linux-image-*

  9. #9
    Linux Newbie
    Join Date
    Apr 2005
    Location
    CT --> PA
    Posts
    170
    Quote Originally Posted by fox1t View Post
    WARNING: this version of the GNU libc requires kernel version
    2.6.26 or later. Please upgrade your kernel before installing
    glibc.

    The installation of a 2.6 kernel _could_ ask you to install a new libc
    first, this is NOT a bug, and should *NOT* be reported. In that case,
    please add lenny sources to your /etc/apt/sources.list and run:
    apt-get install -t lenny linux-image-2.6
    Then reboot into this new kernel, and proceed with your upgrade
    dpkg: error processing /var/cache/apt/archives/libc6_2.13-21_i386.deb (--unpack) :
    subprocess new pre-installation script returned error exit status 1
    configured to not write apport reports

    [/CODE]
    It tells you what the problem is, and how to fix it!
    Chicks dig giant mechanized war machines

Posting Permissions

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