个人工具

UbuntuHelp:UbuntuLTSP/UseStgraberPPA

来自Ubuntu中文

跳转至: 导航, 搜索
This page is specific to Ubuntu versions 8.04, 8.10, 9.04, 9.10, 10.04

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


Introduction

In many cases it is a good idea to use a PPA to update LTSP packages to the latest versions by the upstream LTSP developers. As it takes longer for LTSP packages to hit main Ubuntu repositories, there are some key LTSP developer PPAs available that you might want to add to get the latest bugfixes and features of LTSP. Stéphane Graber (stgraber) is one of these awesome developers that makes the latest changes available to the LTSP community. Read on to see how to add his PPA to your LTSP server and upgrade to the latest LTSP packages.

Note on which PPA to use

Adding PPA to server

  • From a server shell, execute the command to automatically add his PPA to your APT sources:
sudo add-apt-repository ppa:stgraber/ppa

-OR- for Revolution Linux PPA:

sudo add-apt-repository ppa:revolution-linux/ppa

Adding PPA to chroot

By default, the LTSP chroot doesn't contain the 'add-apt-repository' command, so we'll be manually adding it.

  • From a server shell, copy the PPA's sources list file to the chroot in the same directory.
sudo cp /etc/apt/sources.list.d/stgraber-ppa-<RELEASE>.list /opt/ltsp/<ARCH>/etc/apt/sources.list.d/

-OR- for Revolution Linux PPA:

sudo cp /etc/apt/sources.list.d/revolution-linux-ppa-<RELEASE>.list /opt/ltsp/<ARCH>/etc/apt/sources.list.d/

NOTE: Replace <RELEASE> with your Ubuntu release name and <ARCH> with your LTSP chroot CPU architecture. For example, if you're using 10.04 (Lucid Lynx), replace <RELEASE> with "lucid" (no quotes).

  • Now, manually import the PPA's GPG encryption key so updating the chroot won't complain (again, replace <ARCH> with your chroot CPU architecture):
sudo chroot /opt/ltsp/<ARCH>

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E7716B13

-OR- for Revolution Linux PPA:

sudo chroot /opt/ltsp/<ARCH>

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B4DBDF00 

You should be all set now for upgrades using the PPA. Please follow standard procedures for upgrading your server, and follow UpdatingChroot to update your LTSP chroot filesystem.