个人工具

“UbuntuHelp:DowngradeHowto”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第14行: 第14行:
 
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 <pre><nowiki>gksudo gedit /etc/apt/preferences</nowiki></pre>)
+
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>
第28行: 第28行:
 
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:
<pre><nowiki>sudo apt-get update</nowiki></pre>
+
<code><nowiki>sudo apt-get update</nowiki></code>
 
Next, we'll downgrade:
 
Next, we'll downgrade:
<pre><nowiki>sudo apt-get dist-upgrade</nowiki></pre>
+
<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年12月6日 (四) 10:28的版本

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