LinuxQuestions.org
Review your favorite Linux distribution.
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 12-12-2006, 02:20 PM   #1
paket
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
aptitude wants to remove my kernel


Hello everyone.

I have a group of packages that have been held back on my test box for a while, and I found some time to try to figure it out. They are:
libc6 libdb4.3 libglib2.0-0 libglib2.0-data libxrender1 locales

When I try to install a more recent version of one of these packages, I get:

The following packages are unused and will be REMOVED:
cramfsprogs dash
The following packages will be automatically REMOVED:
initrd-tools kernel-image-2.6.8-3-686

The held packages all seem to want to remove cramfsprogs and dash, which results in kernel-image being removed as well. However the kernel-image package listed above is the one that I'm currently using, so I can't remove it.

1. How can I upgrade the held packages?
2. Why isn't aptitude smart enough to realize that I need a kernel?

BTW:
~# aptitude dist-upgrade
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are unused and will be REMOVED:
cramfsprogs dash
The following packages will be automatically REMOVED:
initrd-tools kernel-image-2.6.8-3-686
The following packages will be REMOVED:
initrd-tools kernel-image-2.6.8-3-686
The following packages will be upgraded:
libc6 libdb4.3 libglib2.0-0 libglib2.0-data libxrender1 locales
6 packages upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
Need to get 0B/9895kB of archives. After unpacking 50.7MB will be freed.
Do you want to continue? [Y/n/?] n
Abort.

Last edited by paket; 12-12-2006 at 02:23 PM.
 
Old 12-12-2006, 03:12 PM   #2
eerok
Member
 
Registered: Nov 2005
Location: Canada
Distribution: Mint, Debian
Posts: 168

Rep: Reputation: 32
That kernel is too old for the testing branch. You need at least 2.6.17, and the testing kernel is now 2.6.18. Also, you need to understand how aptitude works with respect to the concepts of "requested" vs "unrequested" packages. Check the man page for that.

But first things first: upgrade your kernel

Code:
# apt-get install linux-image-686
Then see how things are.
 
Old 12-12-2006, 04:01 PM   #3
paket
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
That worked fine - thank you very much.
 
Old 12-12-2006, 09:48 PM   #4
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
You can stop Aptitude from removeing unused packages on an upgrade in it's options for future reference.
 
  


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
Aptitude has crazy aggressive REMOVE policy sixerjman Linux - Software 3 09-20-2006 05:03 PM
aptitude upgrade and kernel security mikieboy Debian 4 06-23-2006 11:41 AM
aptitude remove portmap question mikieboy Debian 1 03-31-2006 04:10 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
How to remove old kernel? Qebex Linux - Distributions 3 09-07-2002 11:19 AM

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

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