LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-06-2009, 09:03 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Installing a Kernel Already in Use?


I checked today if I had any updates that can be applied to my server running Debian Lenny & I noticed that one of the updates was a kernel however the kernel was exactly the same as the one I was booted into /using. Why is it trying to install a kernel I already have on my system? Is this a different revision of the kernel or am I missing something here?

Code:
mail:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  acpid apt apt-utils clamav clamav-base clamav-daemon clamav-freshclam
  linux-image-2.6.18-6-amd64
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.5MB of archives.
After unpacking 3568kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
Code:
mail:~# uname -r
2.6.18-6-amd64
Thanks for any explanation on this.
 
Old 05-07-2009, 02:28 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
This is just one more example of how messed-up the "auto updating" paradigm is as a concept.

IMO this is a Windows gimmick evolved in that crippled environment so that Microsoft can retroactively fix all the thousands of mistakes they make when they build their operating systems. Often, at work, I have had customers who have had severe crashes, lockups and incompatibilities suddenly emerge in their Windows installations due to having auto-updates turned on. They receive an update, reboot and hey-presto! Something stops working - or the system doesn't boot at all.

Due to the thousands and thousands of types of configurations and sofware out there, it is notoriously difficult to have "auto updates" that are safe, and that actually work. This seems to be just as true of the Linux world as of the Windows world.

An example is what has happened to you - and your confusion is legitimate. But this is also typical of what happens when you "auto update" - you'll get nonsensical stuff happening (like "upgrading" your kernel to the, golly, same VERSION!) but also less benign stuff that could also potentially break your system.

Auto updating IMO is a gimmick that several Linux distros have started taking up to be more "Windows like" - while this is a manifestation of the very worst aspect of the Windows way of doing things! No wonder it has a detrimental impact, even on the notoriously stable and solid Linux software architecture.

From my experience of using Linux and several packages (LAMP mostly) and developing on it, BE CAREFUL WITH UPDATES OR UPGRADES. The very first thing I do whenever I install a new Linux distro is to turn ANY form of auto updating OFF - at once! If you do not have a compelling reason to upgrade or update something that is working just fine, DON'T. Why attempt to fix something that is not broken?

If you do have to upgrade or update, do it manually - YOU are often smarter and know more about your system than someone who lodges an update on an update service, that, once automatically pulled through to your system, might break your setup.
 
Old 05-07-2009, 02:44 AM   #3
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
I also don't really like automatic updates, but I like to be notified, pretty much the way modern distros actually do it by default. They tell you there's something to upgrade and you can then decide what you want to do about it.

In general though I have to disagree with your philosophy of not updating if everything works. Often updates are security-related and thus surely are worth installing.
Also, as for the Debian-kernel. It may not display it, but there surely are changes. It may still be the same kernel-version, but that's how Debian does it. They once choose a kernel and then stick with it, and just provide patches that fix bugs and security-holes.

In my experience, especially concerning Debian, it is usually pretty safe to do updates on a Linux-system.
 
Old 05-07-2009, 06:39 AM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Seems strange you are using Lenny with the 2.6.18 kernel,that was the original kernel for Etch.
What does cat /etc/debian_version show?
 
Old 05-07-2009, 07:01 AM   #5
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
@ rylan76: I have no idea who put the bee in your bonnet, but this is not and auto-update situation. The administrator of the machine (Carlwill) explicitly asked for updates (apt-get dist-upgrade).

More generally, as Reptiler suggests, a kernel upgrade - even to the (allegedly) same version - is often a perfectly valid thing to want to do. It almost certainly means that the kernel has received security patches, and so the kernel number is the same, but if you check carefully, the version number of the .deb will not be.

@ Trooper: Unless you have installed one of the virtual kernel packages (eg, linux-image-2.6-amd64), then even when you upgrade your kernel won't get bumped up to a newer version. Most server admins I know prefer decide for themselves whether or not they want to upgrade a kernel anyhow. So my guess is that Carlwill originally installed the server when it was Etch and then upgraded it to Lenny at some point, but he never upgraded the kernel.
 
Old 05-07-2009, 07:13 AM   #6
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
@ Trooper: Unless you have installed one of the virtual kernel packages (eg, linux-image-2.6-amd64), then even when you upgrade your kernel won't get bumped up to a newer version. Most server admins I know prefer decide for themselves whether or not they want to upgrade a kernel anyhow. So my guess is that Carlwill originally installed the server when it was Etch and then upgraded it to Lenny at some point, but he never upgraded the kernel.
Personally i don't use the virtual package either.
That would explain the 2.6.18 kernel.
I'd still check the version though if it was me.
 
Old 05-07-2009, 07:28 AM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Same kernel, same revision, different minor revision, most likely a security patch.
 
Old 05-07-2009, 09:58 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Yep a minor revision to your current kernel, check with apt-cache policy to see current revision and proposed/available update

Code:
user@it-Debian:~$ uname -r 
2.6.18-6-686


user@it-Debian:~$ apt-cache policy linux-image-2.6.18-6-686
linux-image-2.6.18-6-686:
  Installed: 2.6.18.dfsg.1-23
  Candidate: 2.6.18.dfsg.1-24etch2
Version table:
     2.6.18.dfsg.1-24etch2 0
        500 http://security.debian.org etch/updates/main Packages
     2.6.18.dfsg.1-24 0
        500 http://ftp.uwsg.indiana.edu etch/main Packages
 *** 2.6.18.dfsg.1-23 0
        100 /var/lib/dpkg/status
 
  


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
USB kernel problem installing Debian testing on HP Proliant ML310 G3 - kernel freeze sjust Linux - Hardware 11 01-27-2009 02:17 PM
installing older kernel inside VMWare on top of new kernel suhail_yousaf Linux - Newbie 2 01-19-2009 04:59 AM
Error in installing kernel image for kernel upgrade in Knoppix-------Help East Debian 1 03-28-2008 02:50 AM
Installing latest kernel ( 2.6.23) in Fedora 6 - kernel panic!!! p.arun Fedora 7 01-23-2008 01:17 AM
Installing NVIDIA kernel module for newly installed kernel philippeP Linux - General 1 07-13-2006 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:14 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
Open Source Consulting | Domain Registration