特殊:Badtitle/NS100:DowngradeHowto:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: {{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...
 
Wikibot留言 | 贡献
无编辑摘要
第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的版本

{{#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