Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

To update my server I use apt-get upgrade.

But when there are kernel updates I always need to do apt-get install linux-.... because apt-get update does not install them.

Is there a way I can tell it to install those too? I tried -f but it does not work.

share|improve this question
1  
apt-get upgrade installs new kernels for me if there is one. What Ubuntu version are you using? The only thing I have up to check right now is 10.04... –  Nicholas Knight Jul 28 '10 at 23:53
1  
10.04 also, it tells me "These updates are kept from being upgraded" (translated from French). and it lists the linux updates. –  Weboide Jul 28 '10 at 23:57
    
spotted this in xubuntu 13.04 safe-upgrade worked :D –  Jim Ford Oct 9 '13 at 15:51

2 Answers 2

up vote 13 down vote accepted

So, with regard to the comments: Sorry, you were right, I was completely mis-reading what apt-get was telling me (and I'm using the English version! :)).

After a little research, what you probably want to use is aptitude safe-upgrade, which does install new kernels. Really! I double checked! :)

You should probably prefer aptitude in general to apt-get anyway, unless you specifically need something in apt-get.

nknight@nkubuntu1004:~$ sudo aptitude safe-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Resolving dependencies...
Resolving dependencies...
The following NEW packages will be installed:
  linux-headers-2.6.32-24{a} linux-headers-2.6.32-24-generic{a} linux-image-2.6.32-24-generic{a} 
The following packages will be upgraded:
  apt apt-transport-https apt-utils base-files firefox firefox-branding firefox-gnome-support gdm google-chrome-stable 
  icedtea-6-jre-cacao linux-generic linux-headers-generic linux-image-generic linux-libc-dev openjdk-6-jre openjdk-6-jre-headless 
  openjdk-6-jre-lib software-center thunderbird ureadahead xulrunner-1.9.2 
21 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 129MB of archives. After unpacking 188MB will be used.
Do you want to continue? [Y/n/?] 
share|improve this answer
1  
Also cite the man page: It is sometimes necessary to remove one package in order to upgrade another; this command is not able to upgrade packages in such situations. Use the full-upgrade command to upgrade as many packages as possible. –  Weboide Jul 29 '10 at 10:48
3  
aptitude will be removed from the default installation of future versions of both debian and ubuntu. Apt-get is again the preferred tool for installing packages –  Ralf Sep 6 '10 at 23:08
    
Yes, I didn't find aptitude in 12.04. So I installed aptitude and ran aptitude safe-upgrade, it's also doing the same thing as apt-get upgrade. No kernel version are installed!(but I could see new kernel version available in synaptic package manager(gui)). –  user3215 Nov 4 '13 at 5:49

you're looking for

sudo apt-get dist-upgrade
share|improve this answer
4  
Using dist-upgrade can add or remove other packages, it's not limited to just the kernel. This can be an issue on a server if you're hosting for others. However in such a a case you probably want to use apt-pin anyways to prevent unintentional upgrades. –  jbowtie Jul 29 '10 at 1:50
2  
dist-upgrade will install new packages while trying to resolve an upgrade, which is needed to get kernel updates when the kernel ABI changes (since it resolves to a different binary package name). –  Kees Cook Oct 27 '10 at 6:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.