I have tried to upgrade from Ubuntu 10-04 to 10-10 and it seems to crash when it gets to:
Calculating upgrade... Failed
The following packages have unmet dependencies:
libdrm-nouveau1: Breaks: xserver-xorg-video-nouveau (< 1:0.0.16) but 1:0.0.15+git20100219+9b4118d-0ubuntu5 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I tried the upgrade from the command line as suggested but it also failed.
Any suggestions what I need to install and how>
apt-get clean then redo your command. Do you have the same error?
Thanks for the thread and the QA. I was just wondering whats the difference between apt-get update and apt-get upgrade?
When I use apt-get update it seems it only downloads the update files but it does not install them? Is that true?
I really want to stay away from (GUI) Update Manager since I have had few bad experiences with it before in fact this is a fresh install because the update manager crashed my ubuntu install 3 or 4 times & the last time I used it, I could not boot at all and lost a lot of files.
So basically I want to do the same thing in the command line.
Well, depends on what you mean by "update files". In fact, what apt-get update does is downloading lists of new available packages from all repos (set in /etc/apt/sources.list) to find out whether any of the packages installed on your computer needs update or not. It does not 'download' anything apart from that lists.
When you do apt-get upgrade, that is the moment when you download actual packages, and install them. It asks you if you want to download & install before it does anything, so if you short of fast connection, you can just see the list and exit.
regards
I know this is an old thread - but I have a question about using "apt-get update" and "apt-get upgrade" -
What if I have compiled some apps from source?
Prior to compiling them, I ran "apt-get update" and "apt-get upgrade", but in the time since there are new packages that have updates.
Will updating them break my compiled applications?
Thanks.
There is no simple way to answer this. Depending on how the app was compiled, it may or may not.
'apt-get upgrade' upgrades packages from the repos listed in your /etc/apt/sources.list files. These packages are by default built with 'prefix=/usr'. Most packages you build from source will by default have prefix set to /usr/local. In this case, installing your newly built app will not remove any existing versions and issuing an apt-get upgrade will upgrade only a previously installed version leaving the version you built intact.
If you specified 'prefix=/usr' when you built your app, then if it's older than the one in the repo, it will be upgraded when you issue the apt-get upgrade command.
There may be a little more to it than that, nut that's it in a nutshell.
Remember also, there is a difference between apt-get upgrade and apt-get dist-upgrade, see the apt-get man pages for details.
To prevent a package from being upgraded, you can place a 'hold' on it. You can place a 'hold' on packages with the dpkg --set-selections command:
And to remove the hold:Code:echo "pkg-name hold" | sudo dpkg --set-selections
To see the status of all packages:Code:echo "pkg-name install" | sudo dpkg --set-selections
Code:dpkg --get-selections
The Definitive Guide to Theming GRUB2 is here.
Hi Towheedm,
Thank you very much for your help.
OK so if I compiled Wireshark from source....and used a prefix of /usr/local....
And then later on there was an update for one of Wireshark's dependencies - like libpcap - I would be ok doing "apt-get update" and "apt-get upgrade".....(I know "apt-get dist-upgrade is a different animal).
But if I installed Wireshark into /usr, then I better put a hold on libpcap and any other wireshark dependencies????
Mike
I'm not familiar with Wireshark, but keep in mind, it may have dependencies that are also dependencies of other applications. So placing a hold on those, may also prevent those other apps from being updated.But if I installed Wireshark into /usr, then I better put a hold on libpcap and any other wireshark dependencies????
The Definitive Guide to Theming GRUB2 is here.
I don't know if this has been added to the documentation yet (after 5 years), but I think it would make sense that the message when logging in over SSH, that currently reads
"3 packages can be updated. update is a security update."
Would include something like
"type: 'sudo apt-get update; sudo apt-get dist-upgrade' to perform the update"
similar to the message you get when you enter a command included in a package that you haven't got installed.
Bookmarks