PDA

View Full Version : [SOLVED] Sudo apt-get upgrade. Same as Update MAnager?



cK`
April 18th, 2010, 10:37 AM
Hello everyone,

I do not like updating my OS from the update manager because it after updating and rebooting my computer gives me two OS to boot from, They are both LUCID 10.04 unbunt but one is a different version than the other.

Anyway this bothers me and i only want to be able to choose from Ubuntu or windows not unbuntu1 ubuntu2 windows.


Is sudo apt-get upgrade the same as the update manager?

If someone could please let me know how to do the same thing that the update manager does but from the terminal that would be great!

THanks!

wojox
April 18th, 2010, 10:42 AM
You have two kernels installed which is good.

To run updates from the terminal:


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

uberlinuxnerd
April 18th, 2010, 10:43 AM
Is sudo apt-get upgrade the same as the update manager?


Yep! :)

cK`
April 18th, 2010, 10:45 AM
Why is having two kernels good?

When i used sudo apt-get update then sudo apt-get ugrade it did not give me two kernels.

I never did sudo apt-get distro-upgrade through.

Is that what gives me two kernels?

new_tolinux
April 18th, 2010, 10:48 AM
No, once in a while there is a kernel-update.
But because that new kernel may fail in your case, the old kernel is left so you can fall back on that one.

wojox
April 18th, 2010, 10:49 AM
It's good to have two in case the newest one borks out. You have two kernels because of an upgrade you ran.

cK`
April 18th, 2010, 10:57 AM
Oh ok.

I still don't understand why the update manager gave me two kernels but using sudo get-apt update && sudo apt-get upgrade did not.

And why did running it manually not update the update manager?

THanks for all your replies i appreciate it very much!

new_tolinux
April 18th, 2010, 11:09 AM
Oh ok.

I still don't understand why the update manager gave me two kernels but using sudo get-apt update && sudo apt-get upgrade did not.

And why did running it manually not update the update manager?

THanks for all your replies i appreciate it very much!
Updates for the update-manager are generally done once per day (by the way, I'm not using Lucid yet).
Using the command-line update/upgrade would also give you an extra kernel if there's a kernel update.

The reason the command-line upgrade didn't give you an extra kernel yet, is because kernel-updates don't come once-a-day. For me (about 1/2 year of Jaunty yet) I only have 4 kernels in my grub yet. That's the first (installed) kernel + 3 updates. Although while Lucid is still beta, they can come more often than that.

Teber
April 18th, 2010, 11:18 AM
it's good to have at least one kernel as backup for in case the latest kernels fails. if the list should really start looking like it's endless, one may remove the oldest kernels.

as to how remove older kernels, the search function would be helpful. however, i would suggest you to do some reading of the ubuntu docs first. both the official and the community provided ones.

cK`
April 18th, 2010, 11:19 AM
Oh ok, that explains alot.

I was really against having two because it made me feel "uneasy" lol.

Thanks for taking the time to explain these things to me.


Have a great day!


Edit: Ye unfortunately i all ready deleted it.

Hopefully i will not regret it later.

Thanks again everyone.

new_tolinux
April 18th, 2010, 11:32 AM
Edit: Ye unfortunately i all ready deleted it.

Hopefully i will not regret it later.

You probably won't.
If the new kernel is working the way it should, you'll never miss the "old" kernel.

That said, there's only a very small chance that you would like to go back to the "old" kernel once your system did boot up correct after a kernel-update. You'll probably discover errors in the new kernel (if any) during the first few hours you use it.
After that there's almost no chance you want to go back to using the old kernel.

CharlesA
April 18th, 2010, 11:50 AM
Oh ok.

I still don't understand why the update manager gave me two kernels but using sudo get-apt update && sudo apt-get upgrade did not.

And why did running it manually not update the update manager?

THanks for all your replies i appreciate it very much!

The kernel is usually only upgraded if you run apt-get dist-upgrade.

Update manager does this automatically.

Elfy
April 18th, 2010, 11:58 AM
The kernel is usually only upgraded if you run apt-get dist-upgrade.

Update manager does this automatically.

I rarely use update manager - a sudo apt-get update &&sudo apt-get upgrade gets kernel upgrades just fine.

CharlesA
April 18th, 2010, 04:57 PM
I rarely use update manager - a sudo apt-get update &&sudo apt-get upgrade gets kernel upgrades just fine.

Interesting. If there is a kernel upgrade available, and I run sudo apt-get upgrade, it usually tells me that xx packages were not install or xx packages were held back.

Doing a dist-upgrade fixes that. *shrug*

Maybe I am doing something wrong.

EDIT: Running Ubuntu 2.6.31-20-server.

barney385
April 18th, 2010, 05:41 PM
apt-get update – refresh available updates
apt-get upgrade – upgrade all packages
apt-get dist-upgrade – upgrade with package
replacements; upgrade Ubuntu version
apt-get install pkg – install pkg
apt-get purge pkg – uninstall pkg
apt-get autoremove – remove obsolete packages
apt-get -f install – try to fix broken packages
dpkg --configure -a – try to fix broken
packages
dpkg -i pkg.deb – install file pkg.deb
(file) /etc/apt/sources.list – APT repository

barney385
April 18th, 2010, 05:42 PM
lsb_release -a – get Ubuntu version
uname -r – get kernel version
uname -a – get all kernel information