LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-25-2006, 11:46 AM   #1
soltrain
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
Kernel image set as deinstall


I made a mistake in attempting to install ytalk - apparantly, my kernel isn't new enough for the version of ytalk I wanted, and apt-get attempted to remove the kernel image. I aborted the installation, but noticed that the kernel image was still marked for removal.

I used aptitude to uncheck the remove flag on the package, but dpkg status still lists it as deinstall. Should I be worried? How can I get rid of the deinstall flag? dselect scares me!

Here's the ytalk install log:
<code>
trogdor:/home/soltrain# apt-get install ytalk
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libc6 libc6-dev locales talkd tzdata
Suggested packages:
glibc-doc
The following packages will be REMOVED:
base-config initrd-tools kernel-image-2.4.27-1-386
The following NEW packages will be installed:
talkd tzdata ytalk
The following packages will be upgraded:
libc6 libc6-dev locales
3 upgraded, 3 newly installed, 3 to remove and 212 not upgraded.
Need to get 11.7MB of archives.
After unpacking 27.6MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 ftp://mirrors.kernel.org testing/main tzdata 2006l-1 [311kB]
Get:2 ftp://mirrors.kernel.org testing/main libc6-dev 2.3.6.ds1-4 [2715kB]
Get:3 ftp://mirrors.kernel.org testing/main locales 2.3.6.ds1-4 [3953kB]
Get:4 ftp://mirrors.kernel.org testing/main libc6 2.3.6.ds1-4 [4697kB]
Get:5 ftp://mirrors.kernel.org testing/main talkd 0.17-11 [17.4kB]
Get:6 ftp://mirrors.kernel.org testing/main ytalk 3.3.0-2 [44.9kB]
Fetched 11.7MB in 1m15s (155kB/s)
Preconfiguring packages ...
(Reading database ... 21424 files and directories currently installed.)
Removing base-config ...
Removing kernel-image-2.4.27-1-386 ...

You are running a kernel (version 2.4.27-1-386) and attempting to remove
the same version. This is a potentially disastrous action. Not only
will /boot/vmlinuz-2.4.27-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.4.27-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.
Remove the running kernel image (not recommended) [No]?
dpkg: error processing kernel-image-2.4.27-1-386 (--remove):
subprocess pre-removal script returned error exit status 1
dpkg: initrd-tools: dependency problems, but removing anyway as you request:
kernel-image-2.4.27-1-386 depends on initrd-tools (>= 0.1.48).
Removing initrd-tools ...
Errors were encountered while processing:
kernel-image-2.4.27-1-386
E: Sub-process /usr/bin/dpkg returned an error code (1)
</code>

Here's dpkg status
<code>
soltrain@trogdor:~$ dpkg --status kernel-image-2.4.27-1-386
Package: kernel-image-2.4.27-1-386
Status: deinstall ok installed
Priority: optional
Section: base
Installed-Size: 27722
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: i386
Source: kernel-image-2.4.27-i386
Version: 2.4.27-2
Provides: kernel-image, kernel-image-2.4
Depends: initrd-tools (>= 0.1.48), coreutils | fileutils (>= 4.0), modutils (>= 2.4.19)
Suggests: lilo (>= 19.1) | grub, fdutils, kernel-doc-2.4.27 | kernel-source-2.4.27, kernel-pcmcia-modules-2.4.27-1-386 | pcmcia-modules-2.4.27-1-386
Description: Linux kernel image for version 2.4.27 on 386
This package contains the Linux kernel image for version 2.4.27 on
386,
the corresponding System.map file, and the modules built by the packager.
It also contains scripts that try to ensure that the system is not left in
a unbootable state after an update.
.
If you wish to update a bootdisk, or to use a bootloader to make
installing and using the image easier, we suggest you install the latest
fdutils (for formatting a floppy to be used as boot disk), and LILO, for a
powerful bootloader. Of course, both these are optional.
.
Kernel image packages are generally produced using kernel-package,
and it is suggested that you install that package if you wish to
create a custom kernel from the sources.
</code>

More dpkg status

<code>
soltrain@trogdor:~$ dpkg -l |grep kernel
ii iptables 1.3.1-2 Linux kernel 2.4+ iptables administration to
ri kernel-image-2.4.27-1-386 2.4.27-2 Linux kernel image for version 2.4.27 on 386
ii linux-kernel-headers 2.5.999-test7-bk-17 Linux Kernel Headers for development
ii mbmon 2.05-3 Hardware monitoring without kernel dependenc
ii module-init-tools 3.2-pre1-2 tools for managing Linux kernel modules
</code>
 
Old 10-26-2006, 10:57 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Well, if you're really worried about it, you can probably just aptitude install kernel-image-2.4.27-1-386 which should then mark it for install.

I suspect it won't matter unless you boot into a different kernel sometime and then run aptitude upgrade because you can't remove a running kernel anyway.
 
  


Reply



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
How can I deinstall software on Kubuntu 5.10 secret_force Linux - Newbie 2 12-11-2006 05:11 AM
difference netween linux-image and kernel image? mariogarcia Linux - Software 2 06-19-2006 08:01 AM
How to set the login background image when using KDM PTrenholme Fedora 0 04-15-2006 09:20 AM
Kernel-image renamed to linux-image? powadha Debian 2 08-02-2005 05:07 AM
Can't set desktop background image in Gnome TruckStuff Linux - General 1 07-18-2005 03:15 PM

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

All times are GMT -5. The time now is 06:26 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