特殊:Badtitle/NS100:DowngradeHowto:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/DowngradeHowto}} {{Languages|UbuntuHelp:DowngradeHowto}} == Downgrade == So, for one reason or another, you've upgraded Ubuntu to a new version. N... |
小无编辑摘要 |
||
第3行: | 第3行: | ||
== Downgrade == | == Downgrade == | ||
So, for one reason or another, you've upgraded Ubuntu to a new version. Now, you're not liking the new version (or it's a development version and too unstable for your taste). Downgrading is a little-covered topic, but let's change that! | So, for one reason or another, you've upgraded Ubuntu to a new version. Now, you're not liking the new version (or it's a development version and too unstable for your taste). Downgrading is a little-covered topic, but let's change that! | ||
=== DISCLAIMER === | === DISCLAIMER === | ||
This document is still under development. I have *YET TO TEST THE PROCEDURE*. Please pursue at your own risk until this documentation is completed! | This document is still under development. I have *YET TO TEST THE PROCEDURE*. Please pursue at your own risk until this documentation is completed! | ||
=== Getting Started === | === Getting Started === | ||
For this guide, we'll use the example of downgrading Ubuntu Breezy to Ubuntu Hoary. This guide can be adapted to downgrade any combination of releases. | For this guide, we'll use the example of downgrading Ubuntu Breezy to Ubuntu Hoary. This guide can be adapted to downgrade any combination of releases. | ||
=== The Procedure === | === The Procedure === | ||
==== Setting up sources ==== | ==== Setting up sources ==== | ||
You'll need sources.list entries for both releases for the procedure to work properly. It's important to remove all other lines for now! Example sources.list: | You'll need sources.list entries for both releases for the procedure to work properly. It's important to remove all other lines for now! Example sources.list: | ||
<pre><nowiki>deb http://archive.ubuntu.com/ubuntu hoary main restricted universe multiverse | <pre><nowiki>deb http://archive.ubuntu.com/ubuntu hoary main restricted universe multiverse | ||
deb http://archive.ubuntu.com/ubuntu breezy main restricted universe multiverse</nowiki></pre> | deb http://archive.ubuntu.com/ubuntu breezy main restricted universe multiverse</nowiki></pre> | ||
==== Setting up pinning ==== | ==== Setting up pinning ==== | ||
Open up /etc/apt/preferences with your favorite editor (such as <code><nowiki>gksudo gedit /etc/apt/preferences</nowiki></code>) | Open up /etc/apt/preferences with your favorite editor (such as <code><nowiki>gksudo gedit /etc/apt/preferences</nowiki></code>) | ||
Add the following lines to the file (remove any existing entries): | Add the following lines to the file (remove any existing entries): | ||
<pre><nowiki> | <pre><nowiki> | ||
第27行: | 第19行: | ||
Pin: release a=hoary | Pin: release a=hoary | ||
Pin-Priority: 1001 | Pin-Priority: 1001 | ||
Package: * | Package: * | ||
Pin: release a=breezy | Pin: release a=breezy | ||
Pin-Priority: 60 | Pin-Priority: 60 | ||
</nowiki></pre> | </nowiki></pre> | ||
==== Doing the downgrade ==== | ==== Doing the downgrade ==== | ||
If you're ready to continue, we're going to continue: | If you're ready to continue, we're going to continue: | ||
First, we need to update APT's information: | First, we need to update APT's information: | ||
<code><nowiki>sudo apt-get update</nowiki></code> | <code><nowiki>sudo apt-get update</nowiki></code> | ||
Next, we'll downgrade: | Next, we'll downgrade: | ||
<code><nowiki>sudo apt-get dist-upgrade</nowiki></code> | <code><nowiki>sudo apt-get dist-upgrade</nowiki></code> | ||
==== Cleaning up after the storm ==== | ==== Cleaning up after the storm ==== | ||
The last step probably will end up a catastrophic mess of incompletely installed packages. We need to fix that now. | The last step probably will end up a catastrophic mess of incompletely installed packages. We need to fix that now. |
2007年11月30日 (五) 16:50的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DowngradeHowto }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/af | • {{#if: UbuntuHelp:DowngradeHowto|Afrikaans| [[::DowngradeHowto/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ar | • {{#if: UbuntuHelp:DowngradeHowto|العربية| [[::DowngradeHowto/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/az | • {{#if: UbuntuHelp:DowngradeHowto|azərbaycanca| [[::DowngradeHowto/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/bcc | • {{#if: UbuntuHelp:DowngradeHowto|جهلسری بلوچی| [[::DowngradeHowto/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/bg | • {{#if: UbuntuHelp:DowngradeHowto|български| [[::DowngradeHowto/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/br | • {{#if: UbuntuHelp:DowngradeHowto|brezhoneg| [[::DowngradeHowto/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ca | • {{#if: UbuntuHelp:DowngradeHowto|català| [[::DowngradeHowto/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/cs | • {{#if: UbuntuHelp:DowngradeHowto|čeština| [[::DowngradeHowto/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/de | • {{#if: UbuntuHelp:DowngradeHowto|Deutsch| [[::DowngradeHowto/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/el | • {{#if: UbuntuHelp:DowngradeHowto|Ελληνικά| [[::DowngradeHowto/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/es | • {{#if: UbuntuHelp:DowngradeHowto|español| [[::DowngradeHowto/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/fa | • {{#if: UbuntuHelp:DowngradeHowto|فارسی| [[::DowngradeHowto/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/fi | • {{#if: UbuntuHelp:DowngradeHowto|suomi| [[::DowngradeHowto/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/fr | • {{#if: UbuntuHelp:DowngradeHowto|français| [[::DowngradeHowto/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/gu | • {{#if: UbuntuHelp:DowngradeHowto|ગુજરાતી| [[::DowngradeHowto/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/he | • {{#if: UbuntuHelp:DowngradeHowto|עברית| [[::DowngradeHowto/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/hu | • {{#if: UbuntuHelp:DowngradeHowto|magyar| [[::DowngradeHowto/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/id | • {{#if: UbuntuHelp:DowngradeHowto|Bahasa Indonesia| [[::DowngradeHowto/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/it | • {{#if: UbuntuHelp:DowngradeHowto|italiano| [[::DowngradeHowto/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ja | • {{#if: UbuntuHelp:DowngradeHowto|日本語| [[::DowngradeHowto/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ko | • {{#if: UbuntuHelp:DowngradeHowto|한국어| [[::DowngradeHowto/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ksh | • {{#if: UbuntuHelp:DowngradeHowto|Ripoarisch| [[::DowngradeHowto/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/mr | • {{#if: UbuntuHelp:DowngradeHowto|मराठी| [[::DowngradeHowto/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ms | • {{#if: UbuntuHelp:DowngradeHowto|Bahasa Melayu| [[::DowngradeHowto/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/nl | • {{#if: UbuntuHelp:DowngradeHowto|Nederlands| [[::DowngradeHowto/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/no | • {{#if: UbuntuHelp:DowngradeHowto|norsk| [[::DowngradeHowto/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/oc | • {{#if: UbuntuHelp:DowngradeHowto|occitan| [[::DowngradeHowto/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/pl | • {{#if: UbuntuHelp:DowngradeHowto|polski| [[::DowngradeHowto/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/pt | • {{#if: UbuntuHelp:DowngradeHowto|português| [[::DowngradeHowto/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ro | • {{#if: UbuntuHelp:DowngradeHowto|română| [[::DowngradeHowto/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/ru | • {{#if: UbuntuHelp:DowngradeHowto|русский| [[::DowngradeHowto/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/si | • {{#if: UbuntuHelp:DowngradeHowto|සිංහල| [[::DowngradeHowto/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/sq | • {{#if: UbuntuHelp:DowngradeHowto|shqip| [[::DowngradeHowto/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/sr | • {{#if: UbuntuHelp:DowngradeHowto|српски / srpski| [[::DowngradeHowto/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/sv | • {{#if: UbuntuHelp:DowngradeHowto|svenska| [[::DowngradeHowto/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/th | • {{#if: UbuntuHelp:DowngradeHowto|ไทย| [[::DowngradeHowto/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/tr | • {{#if: UbuntuHelp:DowngradeHowto|Türkçe| [[::DowngradeHowto/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/vi | • {{#if: UbuntuHelp:DowngradeHowto|Tiếng Việt| [[::DowngradeHowto/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/yue | • {{#if: UbuntuHelp:DowngradeHowto|粵語| [[::DowngradeHowto/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/zh | • {{#if: UbuntuHelp:DowngradeHowto|中文| [[::DowngradeHowto/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/zh-hans | • {{#if: UbuntuHelp:DowngradeHowto|中文(简体)| [[::DowngradeHowto/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DowngradeHowto | UbuntuHelp:DowngradeHowto | {{#if: | :}}DowngradeHowto}}/zh-hant | • {{#if: UbuntuHelp:DowngradeHowto|中文(繁體)| [[::DowngradeHowto/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DowngradeHowto|:DowngradeHowto|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DowngradeHowto/zh | | {{#ifexist: DowngradeHowto/zh | | {{#ifeq: {{#titleparts:DowngradeHowto|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DowngradeHowto|1|-1|}} | zh | | }}
Downgrade
So, for one reason or another, you've upgraded Ubuntu to a new version. Now, you're not liking the new version (or it's a development version and too unstable for your taste). Downgrading is a little-covered topic, but let's change that!
DISCLAIMER
This document is still under development. I have *YET TO TEST THE PROCEDURE*. Please pursue at your own risk until this documentation is completed!
Getting Started
For this guide, we'll use the example of downgrading Ubuntu Breezy to Ubuntu Hoary. This guide can be adapted to downgrade any combination of releases.
The Procedure
Setting up sources
You'll need sources.list entries for both releases for the procedure to work properly. It's important to remove all other lines for now! Example sources.list:
deb http://archive.ubuntu.com/ubuntu hoary main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu breezy main restricted universe multiverse
Setting up pinning
Open up /etc/apt/preferences with your favorite editor (such as gksudo gedit /etc/apt/preferences
)
Add the following lines to the file (remove any existing entries):
Package: * Pin: release a=hoary Pin-Priority: 1001 Package: * Pin: release a=breezy Pin-Priority: 60
Doing the downgrade
If you're ready to continue, we're going to continue:
First, we need to update APT's information:
sudo apt-get update
Next, we'll downgrade:
sudo apt-get dist-upgrade
Cleaning up after the storm
The last step probably will end up a catastrophic mess of incompletely installed packages. We need to fix that now.
Sources
http://linuxmafia.com/faq/Debian/downgrade.html