Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Ubuntu 9.10 new kernel
PostPosted: Sat Nov 28, 2009 9:35 am 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
Aptitude on my ubuntu 9.10 linode is offering to install "linux-image-2.6.31-15-generic" and upgrade " linux-firmware linux-generic linux-image-generic". I suppose I should not install this as linode is using a custom kernel, right? So should I block aptitude from installing this and if so, how to do that exactly? Thanks.


Top
   
 Post subject:
PostPosted: Sat Nov 28, 2009 10:30 am 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
Yes, as long as you are not usign pv_grub.

You can safely uninstall any installed kernels, Xen/Linode ignores them.


Top
   
 Post subject:
PostPosted: Sat Nov 28, 2009 6:49 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
To clarify, any kernels you have installed or configured in /boot will be completely ignored by our system unless pv-grub is in use. You can allow your distribution's packaging system to upgrade and keep the kernels fresh, but they won't be used to boot.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Sun Nov 29, 2009 6:03 pm 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
Well, it says a new package "linux-image-2.6.31-15-generic{a}" will be installed and 113MB will be used. Since I don't need this, how can I tell aptitude to ignore this package and any possible future updates?


Top
   
 Post subject:
PostPosted: Mon Nov 30, 2009 3:14 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
man aptitude :)

I see there's a hold option:

Quote:
remove, purge, hold, unhold, keep, reinstall
These commands are the same as "install", but apply the named
action to all packages given on the command line for which it is
not overridden. The difference between hold and keep is that hold
will cause a package to be ignored by future safe-upgrade or
full-upgrade commands, while keep merely cancels any scheduled
actions on the package. unhold will allow a package to be upgraded
by future safe-upgrade or full-upgrade commands, without otherwise
altering its state.


http://www.google.com/search?q=aptitude+hold

I've never used that option or the keep option, but those are the places I'd start looking at.


Top
   
 Post subject:
PostPosted: Tue Dec 01, 2009 5:10 am 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
Thanks for your help. The thing is, aptitude is offering to install new package "linux-image-2.6.31-15-generic{a}", not to upgrade existing one. So what is it exactly I am supposed to put on hold?

What would happen normally? I am supposed to install new "linux-image-2.6.31-15-generic" and then uninstall old "linux-image-2.6.31-14-generic" package?

Thanks again.


Top
   
 Post subject:
PostPosted: Tue Dec 01, 2009 9:58 am 
Offline
Senior Newbie

Joined: Sun Nov 22, 2009 12:16 pm
Posts: 15
Yes - normally you would install and boot to the new kernel. Once you determined that it was running OK you could remove the old kernel. If Linode is ignoring the distro installed kernels, seems install / uninstall is the cleanest way to do this.


Top
   
 Post subject:
PostPosted: Tue Dec 01, 2009 1:27 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
neo wrote:
The thing is, aptitude is offering to install new package "linux-image-2.6.31-15-generic{a}"

That's because the "linux-image-generic" package, which acts as a kind of shortcut to the latest version is going to be upgraded, and the new versions specified the new kernel as a required package.
Actually, you should uninstall all of the linux-image-* things, cause they're not used at all (unless you have custom pv_grub boot setup) and thus only waste disk space and your nerves during upgrades.
If any headers or modules package will complain, it should be safe to remove them too.


Top
   
 Post subject:
PostPosted: Wed Dec 02, 2009 7:13 pm 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
Thanks every one for great help.
In case anyone wonders, this is the command I ran:

aptitude remove linux-generic linux-firmware linux-image-generic linux-image-2.6.31-14-generic

This removed current kernel, freed up 126MB and I am no longer prompted to install new kernels. Yes, I did try reboot and everything is fine.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group