特殊:Badtitle/NS100:AptGet/Offline/Repository
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AptGet/Offline/Repository }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/af | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Afrikaans| [[::AptGet/Offline/Repository/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ar | • {{#if: UbuntuHelp:AptGet/Offline/Repository|العربية| [[::AptGet/Offline/Repository/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/az | • {{#if: UbuntuHelp:AptGet/Offline/Repository|azərbaycanca| [[::AptGet/Offline/Repository/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/bcc | • {{#if: UbuntuHelp:AptGet/Offline/Repository|جهلسری بلوچی| [[::AptGet/Offline/Repository/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/bg | • {{#if: UbuntuHelp:AptGet/Offline/Repository|български| [[::AptGet/Offline/Repository/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/br | • {{#if: UbuntuHelp:AptGet/Offline/Repository|brezhoneg| [[::AptGet/Offline/Repository/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ca | • {{#if: UbuntuHelp:AptGet/Offline/Repository|català| [[::AptGet/Offline/Repository/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/cs | • {{#if: UbuntuHelp:AptGet/Offline/Repository|čeština| [[::AptGet/Offline/Repository/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/de | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Deutsch| [[::AptGet/Offline/Repository/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/el | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Ελληνικά| [[::AptGet/Offline/Repository/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/es | • {{#if: UbuntuHelp:AptGet/Offline/Repository|español| [[::AptGet/Offline/Repository/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/fa | • {{#if: UbuntuHelp:AptGet/Offline/Repository|فارسی| [[::AptGet/Offline/Repository/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/fi | • {{#if: UbuntuHelp:AptGet/Offline/Repository|suomi| [[::AptGet/Offline/Repository/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/fr | • {{#if: UbuntuHelp:AptGet/Offline/Repository|français| [[::AptGet/Offline/Repository/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/gu | • {{#if: UbuntuHelp:AptGet/Offline/Repository|ગુજરાતી| [[::AptGet/Offline/Repository/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/he | • {{#if: UbuntuHelp:AptGet/Offline/Repository|עברית| [[::AptGet/Offline/Repository/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/hu | • {{#if: UbuntuHelp:AptGet/Offline/Repository|magyar| [[::AptGet/Offline/Repository/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/id | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Bahasa Indonesia| [[::AptGet/Offline/Repository/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/it | • {{#if: UbuntuHelp:AptGet/Offline/Repository|italiano| [[::AptGet/Offline/Repository/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ja | • {{#if: UbuntuHelp:AptGet/Offline/Repository|日本語| [[::AptGet/Offline/Repository/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ko | • {{#if: UbuntuHelp:AptGet/Offline/Repository|한국어| [[::AptGet/Offline/Repository/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ksh | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Ripoarisch| [[::AptGet/Offline/Repository/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/mr | • {{#if: UbuntuHelp:AptGet/Offline/Repository|मराठी| [[::AptGet/Offline/Repository/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ms | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Bahasa Melayu| [[::AptGet/Offline/Repository/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/nl | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Nederlands| [[::AptGet/Offline/Repository/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/no | • {{#if: UbuntuHelp:AptGet/Offline/Repository|norsk| [[::AptGet/Offline/Repository/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/oc | • {{#if: UbuntuHelp:AptGet/Offline/Repository|occitan| [[::AptGet/Offline/Repository/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/pl | • {{#if: UbuntuHelp:AptGet/Offline/Repository|polski| [[::AptGet/Offline/Repository/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/pt | • {{#if: UbuntuHelp:AptGet/Offline/Repository|português| [[::AptGet/Offline/Repository/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ro | • {{#if: UbuntuHelp:AptGet/Offline/Repository|română| [[::AptGet/Offline/Repository/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/ru | • {{#if: UbuntuHelp:AptGet/Offline/Repository|русский| [[::AptGet/Offline/Repository/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/si | • {{#if: UbuntuHelp:AptGet/Offline/Repository|සිංහල| [[::AptGet/Offline/Repository/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/sq | • {{#if: UbuntuHelp:AptGet/Offline/Repository|shqip| [[::AptGet/Offline/Repository/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/sr | • {{#if: UbuntuHelp:AptGet/Offline/Repository|српски / srpski| [[::AptGet/Offline/Repository/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/sv | • {{#if: UbuntuHelp:AptGet/Offline/Repository|svenska| [[::AptGet/Offline/Repository/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/th | • {{#if: UbuntuHelp:AptGet/Offline/Repository|ไทย| [[::AptGet/Offline/Repository/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/tr | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Türkçe| [[::AptGet/Offline/Repository/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/vi | • {{#if: UbuntuHelp:AptGet/Offline/Repository|Tiếng Việt| [[::AptGet/Offline/Repository/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/yue | • {{#if: UbuntuHelp:AptGet/Offline/Repository|粵語| [[::AptGet/Offline/Repository/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/zh | • {{#if: UbuntuHelp:AptGet/Offline/Repository|中文| [[::AptGet/Offline/Repository/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/zh-hans | • {{#if: UbuntuHelp:AptGet/Offline/Repository|中文(简体)| [[::AptGet/Offline/Repository/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline/Repository | UbuntuHelp:AptGet/Offline/Repository | {{#if: | :}}AptGet/Offline/Repository}}/zh-hant | • {{#if: UbuntuHelp:AptGet/Offline/Repository|中文(繁體)| [[::AptGet/Offline/Repository/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AptGet/Offline/Repository|:AptGet/Offline/Repository|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AptGet/Offline/Repository/zh | | {{#ifexist: AptGet/Offline/Repository/zh | | {{#ifeq: {{#titleparts:AptGet/Offline/Repository|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AptGet/Offline/Repository|1|-1|}} | zh | | }}
You can store an online repository in a USB keydrive or other local storage, to use it offline.
Components
As you can see in the page Repositories/Ubuntu, the Ubuntu software repository is organized into four "components", on the basis of the level of support Ubuntu can offer them, and whether or not they comply with Ubuntu's Free Software Philosophy. The components are called Main (officially supported software), Restricted (supported software that is not available under a completely free license), Universe (community-maintained, i.e. not officially supported software) and Multiverse (software that is "not free"). The standard Ubuntu installation is a subset of software available from the main and restricted components.
Download the online repository
You can download the packages in a USB keydrive in a computer with Internet connection and store them in your Ubuntu computer. Go to this web address http://archive.ubuntu.com/ubuntu/dists/ and then to the SuiteCodename of the Ubuntu installed in your hard disk (hardy, gutsy ...) and download the files :
- Release
- Release.gpg
- And the Contents files for your architecture (i.e Contents-i386.gz ,if you architecture is i386).
Later, go to the component (main, multiverse, restricted, universe) and architecture (i.e. binary-i386/ in /dists/hardy/main/) that you want in your local repository, and download the files:
- Packages.bz2
- Packages.gz
- Release
Optionally, you can download the same files for the source directory (its packages are architecture independent). Now, you have to store the files in your local Ubuntu repository in the same order. For example:
- In /home/repository/dists/hardy you would have the files: Contents-i386.gz , Release and Release.gpg
- And in /home/repositorydists/hardy/main/binary-i386 the files: Packages.bz2 , Packages.gz and Release
Add the local repository in your sources list
Use Applications -> Add/Remove as explained in Repositories/Ubuntu to add the offline repository, stored in the /home/repository directory :
deb file:///home/repository SuiteCodename main restricted universe multiverse
Where:
- SuiteCodename is hardy, gutsy ...
- You can include some or all the components ( main, multiverse, restricted, universe).