LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2008, 08:04 PM   #1
Toecutter
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
Unable to upgrade kernel


Sorry guys, I'm a noob....

Debian 4
I'm having a problem with updateing my kernel

I added

deb http://http.us.debian.org/debian/ lenny main
deb-src http://http.us.debian.org/debian/ lenny main

to my sources.list

When I do a apt-get update I get the following error:

E: Dynamic MMap ran out of room
E: Error occurred while processing tumiki-fighters (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/http.us.debian.org_debian_dists_lenny_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

Can anyone help.

I did a clean server restore in case my previous manual attempt to upgrade had screwed something up so I'm running a plain Debian 4 with nothing else on it (clean).
 
Old 08-09-2008, 08:10 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Debian 4 is Etch, not Lenny. Try replacing lenny with stable.

Last edited by jay73; 08-09-2008 at 08:12 PM.
 
Old 08-09-2008, 08:13 PM   #3
Toecutter
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
so I can't upgrade my kernel from that source?

I am aware that debian 4 is etch, but surely the kernel is independent?

If not what repository should I use to get 2.6.26 kernel.

Thanks
 
Old 08-09-2008, 08:20 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I would imagine sid, although 2.6.26 seems extremely new even for that one. I have not really kept up with Debian of late so I can't tell for sure. Just be VERY careful mixing branches. Before you know, you can end up with a dead puppy. If you want to play safe and the kernel is all that you need, it may be time to learn how to compile your own kernels.
 
Old 08-09-2008, 08:26 PM   #5
Toecutter
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Jay, thanks for the prompt response.

I've actually tried twice to compile the kernel following the instructions given here http://www.howtoforge.com/kernel_com...debian_etch_p2
(except that I changed to 2.6.26 not the one in scripts)

Everything seems to work perfectly until the dreaded rebooted when the server refuses to come back to life.

Unfortunately I've not got the server 'in my hands' so to speak as it's at a hosting company.

Wish I could see what's on the console.......

BTW.
I changed the repository details to etch instead of lenny and aptitude update runs clean now, but i don't know what to do next????

My current kernel is 2.6.18-6-k7

Thanks
 
Old 08-09-2008, 08:37 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Yes, kernel compilation takes some learning and not having the hardware nearby only makes things more complicated. You should use the lspci, lsusb, lshw and lsmod commands to get information about the hardware / modules that you need.

Just to see what etch has left in store, run
aptitude search kernel | less
to explore the available options. If 2.6.18 is as high as it goes, then you are out of luck using the stable repository. You could upgrade to lenny, which was at 2.6.24 some time ago (as I said, not really keeping up with it at this time). Running sid on a server is not really recommended.
 
Old 08-09-2008, 09:00 PM   #7
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
You're obviously not qualified to use Debian, but since you're trying to do so anyway, you'd better do some studying if you want to avoid making a royal mess. I think that's what you're going to do anyway.

You can get newer kernels for Etch from backports.org ... Look for an "Instruction" page.

Also, by the error you're getting, I'd guess that your sources.list is a disaster.
 
Old 08-10-2008, 10:40 AM   #8
Toecutter
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Guys,

Thanks for the advice so far....

Rick, yes you're right I'm a noob :-)

My sources.list is fine now. I was taking advice from elswhere but managed to work out that trying to get the lenny repository was screwing my aptitude update.

Once I changed the line to read etch instead of lenny all seems fine.
I took your advice re backports and have done an apt-get install on the 2.6.25 kernel.

It downloads and finishes fine, but it doesn't actually update the kernel which remains at 2.6.18-6-k7

Is there another process step I am missing???

Oh btw, I HAVE downloaded the manual and I WILL read it so I don't ask so many stupid questions :-)

Ta
 
Old 08-10-2008, 10:48 AM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
Quote:
I took your advice re backports and have done an apt-get install on the 2.6.25 kernel.

It downloads and finishes fine, but it doesn't actually update the kernel which remains at 2.6.18-6-k7
Did you reboot?
 
Old 08-10-2008, 11:02 AM   #10
Toecutter
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Of course....

If I repeat the command I get the following:

air139:~# apt-get -t etch-backports install linux-source-2.6.25
Reading package lists... Done
Building dependency tree... Done
linux-source-2.6.25 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.

It's the '36 not upgraded' I don't understand.

If I execute as normal apt-get without -t and etch-backports I get:

air139:~# apt-get install linux-source-2.6.25
Reading package lists... Done
Building dependency tree... Done
linux-source-2.6.25 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Thanks
 
Old 08-10-2008, 11:12 AM   #11
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
Why are you installing linux-source? Are you going to build the kernel yourself? Most people would install linux-image.

The "36 not upgraded" means that you have 36 available updates. That's an awful lot for Etch. I suspect, you have already messed up your system to the point that it's no longer Etch.

What is the output of ...
$ apt-cache policy libc6

Last edited by rickh; 08-10-2008 at 11:15 AM.
 
Old 08-10-2008, 11:19 AM   #12
Toecutter
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Output is as follows:

air139:~# apt-cache policy libc6
libc6:
Installed: 2.3.6.ds1-13etch7
Candidate: 2.3.6.ds1-13etch7
Version table:
*** 2.3.6.ds1-13etch7 0
500 http://debian.mirror.server4you.net etch/main Packages
500 http://http.us.debian.org etch/main Packages
100 /var/lib/dpkg/status

thanks
 
Old 08-10-2008, 11:24 AM   #13
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
OK. That doesn't look bad. Maybe there are 36 legitimate security updates, if the system hasn't been maintained. You should be using aptitude rather than apt-get.

# aptitude keep-all
# aptitude update
# aptitude upgrade
...should get you up-to-date, then from now on just substitute "aptitude" for "apt-get" at the command line.
 
Old 11-18-2008, 09:21 PM   #14
addux
Member
 
Registered: Dec 2006
Location: In the middle of the ocean.
Distribution: Ubuntu 12.04, Debian Squeeze, Windows 7
Posts: 67

Rep: Reputation: 16
I found this thread useful, I was able to install a newer kernel through backports.org. I used the same how-to to compile the latest 'custom' kernel for debian etch and everything worked flawlessly until I rebooted as well. I'm not sure why and any help with that would be greatly appreciated, I can post the error messages I received after I reboot again. But any other suggestions, for reading or whatever would be greatly appreciated. Thanks in advance,
kim
 
Old 11-18-2008, 10:12 PM   #15
addux
Member
 
Registered: Dec 2006
Location: In the middle of the ocean.
Distribution: Ubuntu 12.04, Debian Squeeze, Windows 7
Posts: 67

Rep: Reputation: 16
Rebooted successfully into the etchandahalf kernel from backports. I feel incredibly stupid, I spent hours trying to compile my custom kernel, for the sole purpose of using my built in sd card reader. and all i needed was apt-get -t etch-backports install linux-2.6.24-etchnhalf.1-686.....my card reader works though and I think the issue I had with my 'custom' kernel is simple. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Build ELDK3.1 for kernel 2.4.25. On Booting Unable to mount root fs.. kannath Debian 0 05-11-2006 10:26 AM
Unable to open tun device after kernel upgrade. EOHooligan Linux - Software 4 02-06-2005 10:31 AM
Kernel upgrade: Unable to handle kernel paging request deviantintegral Debian 4 07-14-2004 05:59 PM
unable to mount floppy after kernel upgrade andrew001 Linux - Hardware 1 12-07-2003 07:51 PM
EXT3-fs: unable to read superblock after kernel upgrade rolandbreedveld Linux - General 2 06-23-2003 05:00 PM


All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration