apt pinning and pulling new kernel from karmic [was: Re: what are apt sources for 9.10 (Karmic Koala)?]

H.S. hs.samix at gmail.com
Wed Jun 3 19:19:57 UTC 2009


H.S. wrote:
> Markus Schönhaber wrote:
>> H.S.:
>>
>>> So I am preparing to play with the new kernel in 9.10. Anybody know what
>>> are the apt sources.list lines for the new version of Ubuntu?
>> Replace "jaunty" with "karmic" in the relevant line(s).
>>
> 
> Yes, that works perfectly. Thank you.
> 


My purpose of the original post was to use apt pinning to pull a new
kernel from karmic to my Jaunty install. Here is the procedure to do so:

1. Add karmic sources. I created a new file in /etc/apt/sources.list.d:
----------------------------------------------------------------
~$ cat /etc/apt/sources.list.d/karmic_koala.list
#for packages from Karmic (mainly kernel)
deb http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ karmic main
deb-src http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ karmic main
----------------------------------------------------------------


2. Next, do the apt pinning by creating the file /etc/apt/preferences:
----------------------------------------------------------------
~$ cat /etc/apt/preferences
Package: *
Pin: release a=jaunty
Pin-Priority: 500

Package: *
Pin: release a=jaunty-updates
Pin-Priority: 600

Package: *
Pin: release a=jaunty-backports
Pin-Priority: 700

Package: *
Pin: release a=jaunty-proposed
Pin-Priority: 800

Package: *
Pin: release a=jaunty-security
Pin-Priority: 900

Package: linux-image-2.6.30-7-generic
Pin: release a=karmic
Pin-Priority: 1000

Package: *
Pin: release a=karmic
Pin-Priority: -1
----------------------------------------------------------------
Here, I just want to get linux-image-2.6.30-7-generic from Karmic. You
may choose other version/packages if you wish.


3. Next, specify the default release for your own system. In my case,
this is Jaunty (Karmic is only for selected package). This is done in
/etc/apt/apt.conf:
----------------------------------------------------------------
~$ cat /etc/apt/apt.conf
APT::Default-Release "jaunty";
----------------------------------------------------------------


4. Update the package using update manager or "sudo aptitude update".
Note the reading of karmic sources in this step.

5. Next, install the kernel from Karmic:
----------------------------------------------------------------
~$ sudo aptitude -t karmic install  linux-image-2.6.30-7-generic
----------------------------------------------------------------

That "-t karmic" specifies that the following packages are to be pulled
from karmic instead of the default relase (jaunty). And finally, reboot
in to the new kernel.


Incidentally, the new kernel supports Microsoft VX-1000 out of the box!
However, I also discovered that the sound output while ekiga has
decreased as if the volume was turned down. Still looking in it though.


Regards.








More information about the ubuntu-users mailing list