UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
...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]?...
...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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.