This is the first post about Ubuntu written in English by me, so I would like suggestions about it. You may help me to make it better.
This procedure can damage your system, so make sure you understand the risks.
First step is authenticate at Terminal like root:
$ sudo -i
After this we need to add Oneiric repository with Natty repositories using the following command:
# echo "deb http://br.archive.ubuntu.com/ubuntu/ oneiric main" >> /etc/apt/sources.list
Now is needed to create an APT rule that say to application: just update kernel packages using Oneiric repository keeping other packages with Natty repositories.
# touch /etc/apt/preferences.d/30-oneiric # echo "Package: * Pin: release n=natty Pin-Priority: 900 Package: * Pin: release n=oneiric Pin-Priority: 800 Package: linux-image-generic Pin: release n=oneiric Pin-Priority: 900 Package: linux-headers-generic Pin: release n=oneiric Pin-Priority: 900 Package: linux-libc-dev Pin: release n=oneiric Pin-Priority: 900 Package: module-init-tools Pin: release n=oneiric Pin-Priority: 900 Package: procps Pin: release n=oneiric Pin-Priority: 900 Package: nvidia-common Pin: release n=oneiric Pin-Priority: 900" > /etc/apt/preferences.d/30-oneiric
Finally you need to upgrade the system normally:
# apt-get update; apt-get dist-upgrade -y
Just the Kernel 3.0 packages will be installed through Oneiric repository. That’s it!
References
http://marcin.juszkiewicz.com.pl/2011/06/20/linux-3-0-under-ubuntu-natty-11-04/
Follow me on Twitter: @tiagoscd!
All the best,
Tiago Hillebrandt
commenter says
never use “sudo su” it can breake your sudo
sudo -i or sudo -u is the right way
never use sudo for a graphical app
kdesudo or gtksu is the right way (i know there is nothing graphical in your howto bit for the completion)
and the last thing is – if you want to test a new kernel, dont use a newer ubuntu one, since this can breake your xserver/drivers, just use one of the mainline kernels from http://kernel.ubuntu.com/~kernel-ppa/mainline/ 🙂
Tiago Hillebrandt says
Thanks for tips! I already modified tutorial to don’t break sudo.
abbina np says
just say hello to community ubuntu iam newbie from indonesia, please to learn me abaut this open source
Arthur R. III says
hello
greetings from america.
would you kindly let me know how to add an extra entry to get kernel sources in the event something has to be compiled? if the admin would please notify me of an update on how to do that, i would greatly appreciate it.
this is an awesome tip.
thank you
Arthur R. III says
i’m afraid this tutorial renders me unable to update restricted nvidia-drivers.
🙁
live and learn.
aproposnix says
Ugh, after doing this it started to do a *full* upgrade to to Oneiric. I’ll assume this article was made prior to the Oneiric release.