Weblog entry #16 for Grimnar

Things that freak me out everytime.
Posted by Grimnar on Tue 21 Nov 2006 at 11:04
Tags: ,


Kernels. And kernel update

Updating kernels on a remote server is the worst tasks I rarely encounter. But it has to be done. This time I was going to install mrtg on a server and startet with install gcc make g++. Then I saw this:

You might want to run `apt-get -f install'
to correct these.
The following packages have unmet dependencies: 
  kernel-image-2.6.8-1-386: Depends: initrd-tools
 (>= 0.1.63)  but it is not installed
And just a few moments I was faced with this:
 You are running a kernel (version 2.6.8-1-386)
 and attempting to remove the same version. 
 This is a potentially disastrous action. Not only
 will /boot/vmlinuz-2.6.8-1-386 be removed, making
 it impossible to boot it,
 (you will have to take action to change your 
 boot loader to boot a new kernel),
 it will also remove all modules under the directory 
 /lib/modules/2.6.8-1-386. Just having a copy of 
 the kernel image is not
 enough, you will have to replace the modules too.

    I repeat, this is very dangerous. If at all in doubt, 
    answer no. If you know exactly what you are doing,
    and are prepared to hose your system, then answer Yes.

I got very worried and pressed of course 'no'. Then continued to DA for some help on this. Just to make sure my server will boot up again without me traveling 200 metric miles. Or having the hosting company fix it with tremendous costs.

Now, I know I've been a bit lazy with this server and never updating it, (only security) but I was waiting on a hardware update that never happend. So today I have all day with nothing to do so I figured I should fire up the ol'terminal and do some work.

It's a 933mhz P3 with a 2.6.8-1-386 kernel. Wich I guess is getting a bit old theese days. sources.list tells me it uses testing. (OK, I never understand the build names)

So in other words, I need a newer kernel. And making sure the system will boot up again.

Anyone have a few moments to help me out. (Again!)

(Atleast im installing mrtg on my own:D)

 

Comments on this Entry

Posted by Anonymous (85.22.xx.xx) on Wed 22 Nov 2006 at 18:18
APT complains about missing initrd-tools package. To keep your package base consistent, it tries to remove all packages that depend on it, which is the package with the running kernel. Ouch.
The solution is simple: just install the missing package and APT should happily proceed with whatever you were planning to do.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search