LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 06:57 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

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

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
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, 08:14 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Note; dist-upgrade is the old term for full-upgrade.
 
Old 02-08-2011, 08:22 AM   #5
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
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 snowday; 02-08-2011 at 08:24 AM.
 
2 members found this post helpful.
Old 02-08-2011, 09:17 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Huh. So I am. I don't ever use apt-get anymore. +helpful
 
1 members found this post helpful.
Old 02-08-2011, 08: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, 09: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, 03: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, 02:18 AM   #10
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
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 02:23 AM.
 
  


Reply

Tags
apt-get, apt-get upgrades, image



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:51 PM.

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
Open Source Consulting | Domain Registration