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 ...
- 11-09-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
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!
- 11-09-2011 #2Guest
- Join Date
- Feb 2005
- Posts
- 314
First try
If that doesn't resolve it post the output:Code:apt-get clean apt-get update apt-get dist-upgrade apt-get -f install
Code:cat /etc/apt/sources.list
- 11-09-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
- 11-10-2011 #4Guest
- Join Date
- Feb 2005
- Posts
- 314
See if aptitude does any better:
If that doesn't work, post the full output.Code:aptitude full-upgrade
- 11-10-2011 #5Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
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:
Seems kernel/libc issue... Is it possibile to fix? Can i just put instead of testing a stable sources?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
- 11-10-2011 #6Guest
- Join Date
- Feb 2005
- Posts
- 314
Post output:
Code:uname -r
- 11-10-2011 #7Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
- 11-10-2011 #8Guest
- 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-*
- 11-12-2011 #9Linux Newbie
- Join Date
- Apr 2005
- Location
- CT --> PA
- Posts
- 170


Reply With Quote

