LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Apt-get update question on Linux headers (https://www.linuxquestions.org/questions/ubuntu-63/apt-get-update-question-on-linux-headers-861353/)

jraz 02-08-2011 04:11 AM

Apt-get update question on Linux headers
 
Mostly just curious since everything works but in the essence of learning I'd like to know what this means.

Code:

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


It is easy to see what is held back, so the question is why? I'm running Linux Mint 10 Gnome edition.
Code:

uname -a
Linux 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux


AlucardZero 02-08-2011 06:57 AM

Probably because upgrading one of those packages would require installing or removing a new package. Try "apt-get full-upgrade".

snowday 02-08-2011 08:08 AM

Try:

Code:

sudo apt-get dist-upgrade
or for more information:

Code:

man apt-get

AlucardZero 02-08-2011 08:14 AM

Note; dist-upgrade is the old term for full-upgrade.

snowday 02-08-2011 08:22 AM

Quote:

Originally Posted by AlucardZero (Post 4251884)
Note; dist-upgrade is the old term for full-upgrade.

I think you are mixing up apt-get and aptitude. It's "apt-get dist-upgrade" and "aptitude full-upgrade" (as you can verify by reading the man pages). :)

AlucardZero 02-08-2011 09:17 AM

Huh. So I am. I don't ever use apt-get anymore. +helpful

jraz 02-08-2011 08:53 PM

Thanks I'll try that later tonight.
 
So if I understand correctly an image file is awaiting but since this is a major update it requires the other commands. I regularly use apt-get update and upgrade but only a once on a Ubuntu box upstairs did I ever use the dist-upgrade command. I will post the results later.

jraz 02-08-2011 09:32 PM

That was exactly it. Using apt-get dist-upgrade installed the following header.

Code:

Linux 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
Thanks for the help.

jayboe 11-19-2011 03:53 PM

A little late but...
 
Ubuntu 10.04.02 i386

...The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
dude@computer:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-2.6.32-35 linux-headers-2.6.32-35-generic
linux-image-2.6.32-35-generic
The following packages will be upgraded:
linux-generic linux-headers-generic linux-image-generic
3 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.3MB of archives.
After this operation, 185MB of additional disk space will be used.
Do you want to continue [Y/n]?...

tommcd 11-22-2011 02:18 AM

Quote:

Originally Posted by jayboe (Post 4528507)
Ubuntu 10.04.02 i386
A little late but...

...The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
...

If you open a terminal and read the apt-get manual (man apt-get) you will see that
Code:

apt-get upgrade
will install newer versions of packages that are already installed.
Using
Code:

apt-get dist-upgrade
will also install new packages that are not already installed, or remove packages that are currently installed in order to handle dependencies.
http://manpages.ubuntu.com/manpages/...apt-get.8.html
Note that using Ubuntu's update manager is the same as running:
Code:

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

I always use dist-upgrade when upgrading Ubuntu via the terminal.
Write back if you need more help.
And welcome to the LQ forums!


All times are GMT -5. The time now is 05:02 AM.