LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 02-08-2011, 05:11 AM   #1
jraz
Member
 
Registered: Feb 2011
Location: TEMPE, AZ
Distribution: Linux Mint LMDE
Posts: 52

Rep: Reputation: 5
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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-08-2011, 07:57 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Probably because upgrading one of those packages would require installing or removing a new package. Try "apt-get full-upgrade".
 
Old 02-08-2011, 09:08 AM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,921

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Try:

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

Code:
man apt-get
 
1 members found this post helpful.
Old 02-08-2011, 09:14 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Note; dist-upgrade is the old term for full-upgrade.
 
Old 02-08-2011, 09:22 AM   #5
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,921

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by AlucardZero View Post
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).

Last edited by snowpine; 02-08-2011 at 09:24 AM.
 
2 members found this post helpful.
Old 02-08-2011, 10:17 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Huh. So I am. I don't ever use apt-get anymore. +helpful
 
1 members found this post helpful.
Old 02-08-2011, 09:53 PM   #7
jraz
Member
 
Registered: Feb 2011
Location: TEMPE, AZ
Distribution: Linux Mint LMDE
Posts: 52

Original Poster
Rep: Reputation: 5
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.
 
Old 02-08-2011, 10:32 PM   #8
jraz
Member
 
Registered: Feb 2011
Location: TEMPE, AZ
Distribution: Linux Mint LMDE
Posts: 52

Original Poster
Rep: Reputation: 5
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.
 
Old 11-19-2011, 04:53 PM   #9
jayboe
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Rep: Reputation: Disabled
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]?...
 
Old 11-22-2011, 03:18 AM   #10
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 288Reputation: 288Reputation: 288
Quote:
Originally Posted by jayboe View Post
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!

Last edited by tommcd; 11-22-2011 at 03:23 AM.
 
  


Reply

Tags
apt-get, apt-get upgrades, image


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
linux-headers == troubles during update-manager processing SaintDanBert Linux - Software 6 08-11-2010 04:11 PM
apt-get update hang on "64% [Waiting for headers]" renuaseri Linux - Newbie 1 05-28-2009 06:58 PM
Apt-get update question justanewbie Debian 3 04-17-2005 09:00 AM
A question about apt-get update sb73542 Debian 6 12-28-2003 01:21 PM
apt - failed dependancy: linux-kernel-headers shack Linux - Software 0 12-19-2003 09:09 AM


All times are GMT -5. The time now is 08:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration