Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I want to update my Ubuntu 14.04 system from the terminal and I know that sudo apt-get update && sudo apt-get upgrade are the commands but when I check the update manager kernel updates are still there. Why is that ? and what can I do to update the kernel from terminal.

share|improve this question

marked as duplicate by i08in, waltinator, BuZZ-dEE, belacqua, Avinash Raj May 8 '14 at 4:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

@bain: It might be a dupe, but not of those, the answers are pretty much the same but not the sense of the question. – i08in May 7 '14 at 17:47
@Jobin how about… or… – bain May 7 '14 at 18:13
@bain: They are still specific to one package(the kernel) and this is a general concern. I wouldn't flag it as a dupe of those. – i08in May 7 '14 at 18:24
@Jobin Is this question not also specific to the kernel.. " but when I check the update manager kernel updates are still there. Why is that ?" – bain May 7 '14 at 18:34
up vote 9 down vote accepted

You need to perform dist-upgrade inorder to install/remove all dependencies related to the packages upgraded using upgrade. From the manual page of apt-get:

       dist-upgrade in addition to performing the function of
       upgrade, also intelligently handles changing dependencies
       with new versions of packages; apt-get has a "smart"
       conflict resolution system, and it will attempt to upgrade
       the most important packages at the expense of less
       important ones if necessary. The dist-upgrade command may
       therefore remove some packages. The /etc/apt/sources.list
       file contains a list of locations from which to retrieve
       desired package files. See also apt_preferences(5) for a
       mechanism for overriding the general settings for
       individual packages.

So, the better way of upgrading would be:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

However, be careful while using dist-upgrade as it might also remove packages to satisfy dependencies.

share|improve this answer

apt-get upgrade won't install new software or remove software, something you must when installing a new kernel... See the thread.

A thing you can do (taken from this thread, read full for more):

Use aptitude:

sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude full-upgrade

You could also use sudo apt-get dist-upgrade instead of sudo apt-get upgrade

share|improve this answer

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