UbuntuWiki:UpdateManagerArchDependent
文章出处: |
{{#if: | {{{2}}} | https://wiki.ubuntu.com/UpdateManagerArchDependent }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/af | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Afrikaans| [[::UbuntuWiki:UpdateManagerArchDependent/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ar | • {{#if: UbuntuWiki:UpdateManagerArchDependent|العربية| [[::UbuntuWiki:UpdateManagerArchDependent/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/az | • {{#if: UbuntuWiki:UpdateManagerArchDependent|azərbaycanca| [[::UbuntuWiki:UpdateManagerArchDependent/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/bcc | • {{#if: UbuntuWiki:UpdateManagerArchDependent|جهلسری بلوچی| [[::UbuntuWiki:UpdateManagerArchDependent/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/bg | • {{#if: UbuntuWiki:UpdateManagerArchDependent|български| [[::UbuntuWiki:UpdateManagerArchDependent/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/br | • {{#if: UbuntuWiki:UpdateManagerArchDependent|brezhoneg| [[::UbuntuWiki:UpdateManagerArchDependent/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ca | • {{#if: UbuntuWiki:UpdateManagerArchDependent|català| [[::UbuntuWiki:UpdateManagerArchDependent/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/cs | • {{#if: UbuntuWiki:UpdateManagerArchDependent|čeština| [[::UbuntuWiki:UpdateManagerArchDependent/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/de | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Deutsch| [[::UbuntuWiki:UpdateManagerArchDependent/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/el | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Ελληνικά| [[::UbuntuWiki:UpdateManagerArchDependent/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/es | • {{#if: UbuntuWiki:UpdateManagerArchDependent|español| [[::UbuntuWiki:UpdateManagerArchDependent/es|español]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/fa | • {{#if: UbuntuWiki:UpdateManagerArchDependent|فارسی| [[::UbuntuWiki:UpdateManagerArchDependent/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/fi | • {{#if: UbuntuWiki:UpdateManagerArchDependent|suomi| [[::UbuntuWiki:UpdateManagerArchDependent/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/fr | • {{#if: UbuntuWiki:UpdateManagerArchDependent|français| [[::UbuntuWiki:UpdateManagerArchDependent/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/gu | • {{#if: UbuntuWiki:UpdateManagerArchDependent|ગુજરાતી| [[::UbuntuWiki:UpdateManagerArchDependent/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/he | • {{#if: UbuntuWiki:UpdateManagerArchDependent|עברית| [[::UbuntuWiki:UpdateManagerArchDependent/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/hu | • {{#if: UbuntuWiki:UpdateManagerArchDependent|magyar| [[::UbuntuWiki:UpdateManagerArchDependent/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/id | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Bahasa Indonesia| [[::UbuntuWiki:UpdateManagerArchDependent/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/it | • {{#if: UbuntuWiki:UpdateManagerArchDependent|italiano| [[::UbuntuWiki:UpdateManagerArchDependent/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ja | • {{#if: UbuntuWiki:UpdateManagerArchDependent|日本語| [[::UbuntuWiki:UpdateManagerArchDependent/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ko | • {{#if: UbuntuWiki:UpdateManagerArchDependent|한국어| [[::UbuntuWiki:UpdateManagerArchDependent/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ksh | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Ripoarisch| [[::UbuntuWiki:UpdateManagerArchDependent/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/mr | • {{#if: UbuntuWiki:UpdateManagerArchDependent|मराठी| [[::UbuntuWiki:UpdateManagerArchDependent/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ms | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Bahasa Melayu| [[::UbuntuWiki:UpdateManagerArchDependent/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/nl | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Nederlands| [[::UbuntuWiki:UpdateManagerArchDependent/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/no | • {{#if: UbuntuWiki:UpdateManagerArchDependent|norsk| [[::UbuntuWiki:UpdateManagerArchDependent/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/oc | • {{#if: UbuntuWiki:UpdateManagerArchDependent|occitan| [[::UbuntuWiki:UpdateManagerArchDependent/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/pl | • {{#if: UbuntuWiki:UpdateManagerArchDependent|polski| [[::UbuntuWiki:UpdateManagerArchDependent/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/pt | • {{#if: UbuntuWiki:UpdateManagerArchDependent|português| [[::UbuntuWiki:UpdateManagerArchDependent/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ro | • {{#if: UbuntuWiki:UpdateManagerArchDependent|română| [[::UbuntuWiki:UpdateManagerArchDependent/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/ru | • {{#if: UbuntuWiki:UpdateManagerArchDependent|русский| [[::UbuntuWiki:UpdateManagerArchDependent/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/si | • {{#if: UbuntuWiki:UpdateManagerArchDependent|සිංහල| [[::UbuntuWiki:UpdateManagerArchDependent/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/sq | • {{#if: UbuntuWiki:UpdateManagerArchDependent|shqip| [[::UbuntuWiki:UpdateManagerArchDependent/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/sr | • {{#if: UbuntuWiki:UpdateManagerArchDependent|српски / srpski| [[::UbuntuWiki:UpdateManagerArchDependent/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/sv | • {{#if: UbuntuWiki:UpdateManagerArchDependent|svenska| [[::UbuntuWiki:UpdateManagerArchDependent/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/th | • {{#if: UbuntuWiki:UpdateManagerArchDependent|ไทย| [[::UbuntuWiki:UpdateManagerArchDependent/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/tr | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Türkçe| [[::UbuntuWiki:UpdateManagerArchDependent/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/vi | • {{#if: UbuntuWiki:UpdateManagerArchDependent|Tiếng Việt| [[::UbuntuWiki:UpdateManagerArchDependent/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/yue | • {{#if: UbuntuWiki:UpdateManagerArchDependent|粵語| [[::UbuntuWiki:UpdateManagerArchDependent/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/zh | • {{#if: UbuntuWiki:UpdateManagerArchDependent|中文| [[::UbuntuWiki:UpdateManagerArchDependent/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/zh-hans | • {{#if: UbuntuWiki:UpdateManagerArchDependent|中文(简体)| [[::UbuntuWiki:UpdateManagerArchDependent/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UpdateManagerArchDependent | UbuntuWiki:UpdateManagerArchDependent | {{#if: | :}}UbuntuWiki:UpdateManagerArchDependent}}/zh-hant | • {{#if: UbuntuWiki:UpdateManagerArchDependent|中文(繁體)| [[::UbuntuWiki:UpdateManagerArchDependent/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuWiki:UpdateManagerArchDependent|:UbuntuWiki:UpdateManagerArchDependent|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuWiki:UpdateManagerArchDependent/zh | | {{#ifexist: UbuntuWiki:UpdateManagerArchDependent/zh | | {{#ifeq: {{#titleparts:UbuntuWiki:UpdateManagerArchDependent|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuWiki:UpdateManagerArchDependent|1|-1|}} | zh | | }}
Please check the status of this specification in Launchpad before editing it. If it is Approved, contact the Assignee or another knowledgeable person before making changes.
- Launchpad entry: https://blueprints.launchpad.net/distros/ubuntu/+spec/dist-upgrader-arch-any
- Packages affected: update-manager, soyuz
Summary
The current release-upgrader is architecture independent. It only contains Python code. To be more flexible in the future we want to use selected arch-dependant code. This is useful to work around bugs in older versions or to use improvements required by the latest version.
Rationale
The current pure Python implementation makes it impossible to backport selected parts of the target distribution (e.g. dpkg, libapt). This means that for the dapper->edgy update the new breaks field could not be used because it was the dapper version of libapt that calculated the upgrade.
Use cases
- Ian implements a new dpkg field "Breaks" for edgy. The apt in dapper that will perform the dapper->edgy upgrade does not know about this field. With support for selected arch-any code it can learn about it and make deployment of new package management features quicker.
- The recovering from failing maintainer scripts is better in a recent version of dpkg. Fetching and using this version for a upgrade improves the user experience.
Scope
The ReleaseUpgrader needs to be modified to be able to fetch special .deb package to extend its functionality. Those .deb pacakges are similar to .udeb from the installer. A new pocket is added that stores those special packages.
Design
The release-upgrader is a python-apt application that is arch=all. It will be extended to download and install a special .deb package type to extend its functionality before doing the actual upgrade.
Those .deb packages will have a special prefix (e.g. releae-upgrader-$foo) and install into a hirarchy on the filesystem that does not overlap with the installed system (e.g. /usr/lib/release-upgrader). Maintainer scripts are discouraged and only allowed if the effects of those are fully reversible. Dependencies within the pocket are permited. The debs are stored in a special poket for the release (dist-uprader-$arch). That pocket contains a regular Packages file and is auto-build against the last distro release.
The release-upgrader will add this pocket to its sources.list and install any required pacakges before proceeding with the upgrade. It will resart itself if required (e.g. to get new libraries). When the user cancels the upgrade as part of its cleanup it will remove all packages it installed.
Implementation
No implementation work was done yet.
Old Design (for reference)
The old design has a matter of limitations. The most important one is that it does not support auto-building support for any arch=any components in the upgrader and that is uses a tgz as its container format and that does not contain any dependency information (this means that potential kde binaries need to be carried in the big tarball even if we are on a gnome system and vice-versa). The alternative approach is easier to implement and more flexible.
Scope
The upload handler in Launchpad needs to be modified to place arch=any packages into the right directory. Update-manager needs to be modified to support fetching the right package.
Design
The required steps are:
- add new "UpgradeToolBaseURI" key to the meta-release file at http://changelogs.ubuntu.com/meta-release that contains the base-path to the upgrader
- change DistUpgradeFetcher.py in update-manager--dapper to honor the new UpgradeToolBaseURI from the meta-release file and add "binary-$(dpkg --print-architecture)/current" to it
- patch Soyuz to accept raw-dist-upgrade uploads that are not arch==all and move them to "$(dist)/dist-upgrader/binary-$arch/$version" (+ keeping a current symlink)
ColinWatson: My reading of the Soyuz code in question is that it already allows this; "all" isn't mentioned anywhere. Please double-check with the Soyuz team.
- change the dist-upgrader to check/use the backports in the tarball
- change the build system of the dist-upgrader to make sure to include the right backported binary bits
- change the update-notifier dist-upgrader on cdrom detection to search for CDROM_ROOT/dists/stable/dist-upgrader/binary-$(arch)
- change the CD build script (tools/$(dist)/upgrade.sh) to place the tarball into the CDROM_ROOT/dists/stable/dist-upgrader/binary-$(arch) subdir
Implementation
No implementation work was done yet.