特殊:Badtitle/NS100:UbuntuLTSP/UpdatingChroot:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/UbuntuLTSP/UpdatingChroot}} {{Languages|UbuntuHelp:UbuntuLTSP/UpdatingChroot}} '''This wiki page is specific to Ubuntu Version(s): 8.04''' ---- ==... |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/UbuntuLTSP/UpdatingChroot}} | {{From|https://help.ubuntu.com/community/UbuntuLTSP/UpdatingChroot}} | ||
{{Languages|UbuntuHelp:UbuntuLTSP/UpdatingChroot}} | {{Languages|UbuntuHelp:UbuntuLTSP/UpdatingChroot}} | ||
<<Include(Software/804Template)>> | |||
=== Updating the Ubuntu LTSP client chroot === | === Updating the Ubuntu LTSP client chroot === | ||
By default, the 'ltsp-build-client' command in Ubuntu Hardy/8.04.1 will pull packages from 2 Ubuntu repositories, as well as generate a chroot sources.list file within the newly created chroot with the same 2 repositories, shown below: | By default, the 'ltsp-build-client' command in Ubuntu Hardy/8.04.1 will pull packages from 2 Ubuntu repositories, as well as generate a chroot sources.list file within the newly created chroot with the same 2 repositories, shown below: | ||
第10行: | 第9行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Over time, packages that make up the LTSP chroot are updated with (sometimes major) bugfixes. By Ubuntu's packaging standards, a SRU is performed for packages that are deemed stable enough for people who utilize the "Recommended Updates" repositories (Check out System -> Administration -> Synaptic Package Manager, under Settings -> Repositories -> Updates). A default LTSP chroot will not inherit them, however, without extra ltsp-build-client options (such as —copy-sourceslist on a server with the hardy-updates repository already enabled in its own sources.list). Chrooting to /opt/ltsp/i386 and performing an 'apt-get update && dist-upgrade' won't upgrade to new packages in hardy-updates, since the sources.list file doesn't contain the hardy-updates repository. Even building a new chroot from scratch using ltsp-build-client won't help as it doesn't, by default, pull packages from hardy-updates. | Over time, packages that make up the LTSP chroot are updated with (sometimes major) bugfixes. By Ubuntu's packaging standards, a SRU is performed for packages that are deemed stable enough for people who utilize the "Recommended Updates" repositories (Check out System -> Administration -> Synaptic Package Manager, under Settings -> Repositories -> Updates). A default LTSP chroot will not inherit them, however, without extra ltsp-build-client options (such as —copy-sourceslist on a server with the hardy-updates repository already enabled in its own sources.list). Chrooting to /opt/ltsp/i386 and performing an 'apt-get update && dist-upgrade' won't upgrade to new packages in hardy-updates, since the sources.list file doesn't contain the hardy-updates repository. Even building a new chroot from scratch using ltsp-build-client won't help as it doesn't, by default, pull packages from hardy-updates. | ||
To | ''Note for upgrading across releases:'' If you have upgraded the LTSP server to a new release (such as Hardy -> Intrepid), it is recommended to build a new client chroot from scratch, as the ''ltsp-build-client'' script does things a normal ''apt-get'' upgrade will not. Please build a new client chroot from scratch if you are upgrading to a new Ubuntu release.'' | ||
First, let's modify our LTSP chroot sources.list (assuming we're using i386-based chroot on an Ubuntu Hardy installation): | * Before we start, it might be a good idea to back up your existing chroot, in case there are modifications/customizations that you don't want to lose. If you have the room on your hard disk, and you want to be able to easily revert to the original chroot in case something goes wrong, simply do a recursive copy of your chroot: | ||
<pre><nowiki> | |||
sudo cp -a /opt/ltsp /opt/ltsp-orig | |||
</nowiki></pre> | |||
To upgrade your live chroot, we need to modify our existing /opt/ltsp/arch/etc/apt/sources.list file to include our ''hardy-updates'' repository as well, and then do an upgrade inside the chroot. | |||
* First, let's modify our LTSP chroot sources.list (assuming we're using i386-based chroot on an Ubuntu Hardy installation): | |||
<pre><nowiki> | <pre><nowiki> | ||
echo "deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted" | sudo tee -a /opt/ltsp/i386/etc/apt/sources.list | echo "deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted" | sudo tee -a /opt/ltsp/i386/etc/apt/sources.list | ||
</nowiki></pre> | </nowiki></pre> | ||
Now let's chroot into the LTSP client chroot directory, mount /proc and do a update/dist-upgrade to pull down all updated packages in hardy-updates: | * Now let's chroot into the LTSP client chroot directory, mount /proc and do a update/dist-upgrade to pull down all updated packages in hardy-updates: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo chroot /opt/ltsp/i386 | sudo chroot /opt/ltsp/i386 | ||
第21行: | 第25行: | ||
apt-get update && apt-get dist-upgrade | apt-get update && apt-get dist-upgrade | ||
</nowiki></pre> | </nowiki></pre> | ||
Follow any directions/instructions while upgrading packages. Make sure you tend to any errors while upgrading, as packages that fail to install correctly could potentially cause thin-clients to not boot correctly. | * Follow any directions/instructions while upgrading packages. Make sure you tend to any errors while upgrading, as packages that fail to install correctly could potentially cause thin-clients to not boot correctly. | ||
Lastly, let's exit the chroot, run ltsp-update-kernels (in case there was a kernel upgrade in the chroot) and rebuild our NBD thin-client image: | * Lastly, let's exit the chroot, unmount /proc, run ltsp-update-kernels (in case there was a kernel upgrade in the chroot) and rebuild our NBD thin-client image: | ||
<pre><nowiki> | <pre><nowiki> | ||
exit | exit | ||
sudo ltsp-update-kernels | sudo ltsp-update-kernels | ||
sudo umount /opt/ltsp/i386/proc | |||
sudo ltsp-update-image | sudo ltsp-update-image | ||
</nowiki></pre> | </nowiki></pre> | ||
Obviously you'll have to reboot any thin-clients for the new image to apply and for you to enjoy fresh, bug-fixed packages. | * Obviously you'll have to reboot any thin-clients for the new image to apply and for you to enjoy fresh, bug-fixed packages. | ||
''Notes: [https://bugs.launchpad.net/ltsp/+bug/277331 Ubuntu bug #277331 reported for including *-updates when using 'ltsp-build-client'] | ''Notes: [https://bugs.launchpad.net/ltsp/+bug/277331 Ubuntu bug #277331 reported for including *-updates when using 'ltsp-build-client'] | ||
---- | |||
[[category:CategoryLtsp]] | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年12月16日 (二) 20:25的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/UpdatingChroot }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Afrikaans| [[::UbuntuLTSP/UpdatingChroot/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|العربية| [[::UbuntuLTSP/UpdatingChroot/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|azərbaycanca| [[::UbuntuLTSP/UpdatingChroot/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|جهلسری بلوچی| [[::UbuntuLTSP/UpdatingChroot/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|български| [[::UbuntuLTSP/UpdatingChroot/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|brezhoneg| [[::UbuntuLTSP/UpdatingChroot/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|català| [[::UbuntuLTSP/UpdatingChroot/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|čeština| [[::UbuntuLTSP/UpdatingChroot/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Deutsch| [[::UbuntuLTSP/UpdatingChroot/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Ελληνικά| [[::UbuntuLTSP/UpdatingChroot/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|español| [[::UbuntuLTSP/UpdatingChroot/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|فارسی| [[::UbuntuLTSP/UpdatingChroot/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|suomi| [[::UbuntuLTSP/UpdatingChroot/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|français| [[::UbuntuLTSP/UpdatingChroot/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|ગુજરાતી| [[::UbuntuLTSP/UpdatingChroot/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|עברית| [[::UbuntuLTSP/UpdatingChroot/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|magyar| [[::UbuntuLTSP/UpdatingChroot/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Bahasa Indonesia| [[::UbuntuLTSP/UpdatingChroot/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|italiano| [[::UbuntuLTSP/UpdatingChroot/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|日本語| [[::UbuntuLTSP/UpdatingChroot/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|한국어| [[::UbuntuLTSP/UpdatingChroot/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Ripoarisch| [[::UbuntuLTSP/UpdatingChroot/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|मराठी| [[::UbuntuLTSP/UpdatingChroot/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Bahasa Melayu| [[::UbuntuLTSP/UpdatingChroot/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Nederlands| [[::UbuntuLTSP/UpdatingChroot/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|norsk| [[::UbuntuLTSP/UpdatingChroot/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|occitan| [[::UbuntuLTSP/UpdatingChroot/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|polski| [[::UbuntuLTSP/UpdatingChroot/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|português| [[::UbuntuLTSP/UpdatingChroot/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|română| [[::UbuntuLTSP/UpdatingChroot/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|русский| [[::UbuntuLTSP/UpdatingChroot/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|සිංහල| [[::UbuntuLTSP/UpdatingChroot/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|shqip| [[::UbuntuLTSP/UpdatingChroot/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|српски / srpski| [[::UbuntuLTSP/UpdatingChroot/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|svenska| [[::UbuntuLTSP/UpdatingChroot/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|ไทย| [[::UbuntuLTSP/UpdatingChroot/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Türkçe| [[::UbuntuLTSP/UpdatingChroot/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|Tiếng Việt| [[::UbuntuLTSP/UpdatingChroot/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|粵語| [[::UbuntuLTSP/UpdatingChroot/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|中文| [[::UbuntuLTSP/UpdatingChroot/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|中文(简体)| [[::UbuntuLTSP/UpdatingChroot/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot | UbuntuHelp:UbuntuLTSP/UpdatingChroot | {{#if: | :}}UbuntuLTSP/UpdatingChroot}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/UpdatingChroot|中文(繁體)| [[::UbuntuLTSP/UpdatingChroot/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/UpdatingChroot|:UbuntuLTSP/UpdatingChroot|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/UpdatingChroot/zh | | {{#ifexist: UbuntuLTSP/UpdatingChroot/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/UpdatingChroot|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/UpdatingChroot|1|-1|}} | zh | | }}
<<Include(Software/804Template)>>
Updating the Ubuntu LTSP client chroot
By default, the 'ltsp-build-client' command in Ubuntu Hardy/8.04.1 will pull packages from 2 Ubuntu repositories, as well as generate a chroot sources.list file within the newly created chroot with the same 2 repositories, shown below:
deb http://archive.ubuntu.com/ubuntu hardy main restricted deb http://security.ubuntu.com//ubuntu hardy main restricted
Over time, packages that make up the LTSP chroot are updated with (sometimes major) bugfixes. By Ubuntu's packaging standards, a SRU is performed for packages that are deemed stable enough for people who utilize the "Recommended Updates" repositories (Check out System -> Administration -> Synaptic Package Manager, under Settings -> Repositories -> Updates). A default LTSP chroot will not inherit them, however, without extra ltsp-build-client options (such as —copy-sourceslist on a server with the hardy-updates repository already enabled in its own sources.list). Chrooting to /opt/ltsp/i386 and performing an 'apt-get update && dist-upgrade' won't upgrade to new packages in hardy-updates, since the sources.list file doesn't contain the hardy-updates repository. Even building a new chroot from scratch using ltsp-build-client won't help as it doesn't, by default, pull packages from hardy-updates. Note for upgrading across releases: If you have upgraded the LTSP server to a new release (such as Hardy -> Intrepid), it is recommended to build a new client chroot from scratch, as the ltsp-build-client script does things a normal apt-get upgrade will not. Please build a new client chroot from scratch if you are upgrading to a new Ubuntu release.
- Before we start, it might be a good idea to back up your existing chroot, in case there are modifications/customizations that you don't want to lose. If you have the room on your hard disk, and you want to be able to easily revert to the original chroot in case something goes wrong, simply do a recursive copy of your chroot:
sudo cp -a /opt/ltsp /opt/ltsp-orig
To upgrade your live chroot, we need to modify our existing /opt/ltsp/arch/etc/apt/sources.list file to include our hardy-updates repository as well, and then do an upgrade inside the chroot.
- First, let's modify our LTSP chroot sources.list (assuming we're using i386-based chroot on an Ubuntu Hardy installation):
echo "deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted" | sudo tee -a /opt/ltsp/i386/etc/apt/sources.list
- Now let's chroot into the LTSP client chroot directory, mount /proc and do a update/dist-upgrade to pull down all updated packages in hardy-updates:
sudo chroot /opt/ltsp/i386 mount -t proc proc /proc apt-get update && apt-get dist-upgrade
- Follow any directions/instructions while upgrading packages. Make sure you tend to any errors while upgrading, as packages that fail to install correctly could potentially cause thin-clients to not boot correctly.
- Lastly, let's exit the chroot, unmount /proc, run ltsp-update-kernels (in case there was a kernel upgrade in the chroot) and rebuild our NBD thin-client image:
exit sudo ltsp-update-kernels sudo umount /opt/ltsp/i386/proc sudo ltsp-update-image
- Obviously you'll have to reboot any thin-clients for the new image to apply and for you to enjoy fresh, bug-fixed packages.
Notes: Ubuntu bug #277331 reported for including *-updates when using 'ltsp-build-client'