个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第6行: 第6行:
 
Example:
 
Example:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install ubuntu-minimal ubuntu-standard </nowiki></pre>
+
  sudo apt-get install ubuntu-minimal ubuntu-standard </nowiki></pre>
 
0. The appropriate desktop package for your version of Ubuntu must also be installed. They are "ubuntu-desktop" for Ubuntu, "kubuntu-desktop" for Kubuntu, "xubuntu-desktop" for Xubuntu, and "edubuntu-desktop" for Edubuntu:
 
0. The appropriate desktop package for your version of Ubuntu must also be installed. They are "ubuntu-desktop" for Ubuntu, "kubuntu-desktop" for Kubuntu, "xubuntu-desktop" for Xubuntu, and "edubuntu-desktop" for Edubuntu:
 
Example:
 
Example:
 
For Ubuntu
 
For Ubuntu
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install ubuntu-desktop </nowiki></pre>
+
  sudo apt-get install ubuntu-desktop </nowiki></pre>
 
For Kubuntu
 
For Kubuntu
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install kubuntu-desktop </nowiki></pre>
+
  sudo apt-get install kubuntu-desktop </nowiki></pre>
 
For Xubuntu
 
For Xubuntu
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install xubuntu-desktop </nowiki></pre>
+
  sudo apt-get install xubuntu-desktop </nowiki></pre>
 
For Edubuntu
 
For Edubuntu
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install edubuntu-desktop </nowiki></pre>
+
  sudo apt-get install edubuntu-desktop </nowiki></pre>
 
0. Edit your /etc/apt/sources.list as root. Change every occurrence of '''edgy''' to '''feisty'''. It is also recommended that you remove or disable any extra repository that may have been added besides the Ubuntu repositories.
 
0. Edit your /etc/apt/sources.list as root. Change every occurrence of '''edgy''' to '''feisty'''. It is also recommended that you remove or disable any extra repository that may have been added besides the Ubuntu repositories.
 
* Long route: Use your preferred editor. If you have a CD-ROM line in your file, then remove it.
 
* Long route: Use your preferred editor. If you have a CD-ROM line in your file, then remove it.
 
For Ubuntu.
 
For Ubuntu.
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit /etc/apt/sources.list </nowiki></pre>
+
  gksudo gedit /etc/apt/sources.list </nowiki></pre>
 
For Kubuntu.
 
For Kubuntu.
 
<pre><nowiki>
 
<pre><nowiki>
kdesu kate /etc/apt/sources.list </nowiki></pre>
+
  kdesu kate /etc/apt/sources.list </nowiki></pre>
 
For Xubuntu.
 
For Xubuntu.
 
<pre><nowiki>
 
<pre><nowiki>
gksudo mousepad /etc/apt/sources.list </nowiki></pre>
+
  gksudo mousepad /etc/apt/sources.list </nowiki></pre>
 
In any terminal program.
 
In any terminal program.
 
<pre><nowiki>
 
<pre><nowiki>
sudo nano /etc/apt/sources.list
+
  sudo nano /etc/apt/sources.list
sudo vi /etc/apt/sources.list </nowiki></pre>
+
  sudo vi /etc/apt/sources.list </nowiki></pre>
 
* Shortcut:
 
* Shortcut:
 
<pre><nowiki>
 
<pre><nowiki>
sudo sed -e 's/\sedgy/ feisty/g' -i /etc/apt/sources.list </nowiki></pre>
+
  sudo sed -e 's/\sedgy/ feisty/g' -i /etc/apt/sources.list </nowiki></pre>
 
NOTE: This might not remove old CD-ROM lines. Manual inspection is suggested after running this command. (see Long Route)
 
NOTE: This might not remove old CD-ROM lines. Manual inspection is suggested after running this command. (see Long Route)
 
0. If you have the ''alternate install CD'', you can save bandwidth by loading the CD into your CD-ROM drive and using:
 
0. If you have the ''alternate install CD'', you can save bandwidth by loading the CD into your CD-ROM drive and using:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-cdrom add </nowiki></pre>
+
  sudo apt-cdrom add </nowiki></pre>
 
0. Perform the upgrade:
 
0. Perform the upgrade:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get dist-upgrade </nowiki></pre>
+
  sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get dist-upgrade </nowiki></pre>
 
OR, You can also use Aptitude:
 
OR, You can also use Aptitude:
 
<pre><nowiki>
 
<pre><nowiki>
sudo aptitude update && sudo aptitude dist-upgrade && sudo aptitude dist-upgrade </nowiki></pre>
+
  sudo aptitude update && sudo aptitude dist-upgrade && sudo aptitude dist-upgrade </nowiki></pre>
 
NOTE: The first run of dist-upgrade will upgrade everything except for upstart. After this a second dist-upgrade will finish the upgrade.
 
NOTE: The first run of dist-upgrade will upgrade everything except for upstart. After this a second dist-upgrade will finish the upgrade.
 
0. Just to be totally sure that everything is installed properly, run these commands:
 
0. Just to be totally sure that everything is installed properly, run these commands:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get update && sudo apt-get dist-upgrade
+
  sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get -f install
+
  sudo apt-get -f install
sudo dpkg --configure -a </nowiki></pre>
+
  sudo dpkg --configure -a </nowiki></pre>
 
Running dist-upgrade again is done to ensure that no packages are left to install or upgrade. In some cases, certain packages fail to install even after running dist-upgrade the second time.
 
Running dist-upgrade again is done to ensure that no packages are left to install or upgrade. In some cases, certain packages fail to install even after running dist-upgrade the second time.
 
0. Reboot in order to effect all changes. (kernel upgrades, upstart, etc...)
 
0. Reboot in order to effect all changes. (kernel upgrades, upstart, etc...)

2007年12月6日 (四) 10:31的版本

Manual upgrades to Feisty

Please note - this method is less reliable. If you use this method, you MUST be prepared to fix problems manually, such as packages being unexpectedly removed, apt crashing unexpectedly, etc. It is highly recommended that you use the automatic upgrade instructions on FeistyUpgrades instead. 0. Make sure that you have the packages "ubuntu-minimal" and "ubuntu-standard" installed, regardless of whether you're using Ubuntu, Kubuntu, Xubuntu or Edubuntu: Example:

  sudo apt-get install ubuntu-minimal ubuntu-standard 

0. The appropriate desktop package for your version of Ubuntu must also be installed. They are "ubuntu-desktop" for Ubuntu, "kubuntu-desktop" for Kubuntu, "xubuntu-desktop" for Xubuntu, and "edubuntu-desktop" for Edubuntu: Example: For Ubuntu

  sudo apt-get install ubuntu-desktop 

For Kubuntu

  sudo apt-get install kubuntu-desktop 

For Xubuntu

  sudo apt-get install xubuntu-desktop 

For Edubuntu

  sudo apt-get install edubuntu-desktop 

0. Edit your /etc/apt/sources.list as root. Change every occurrence of edgy to feisty. It is also recommended that you remove or disable any extra repository that may have been added besides the Ubuntu repositories.

  • Long route: Use your preferred editor. If you have a CD-ROM line in your file, then remove it.

For Ubuntu.

  gksudo gedit /etc/apt/sources.list 

For Kubuntu.

  kdesu kate /etc/apt/sources.list 

For Xubuntu.

  gksudo mousepad /etc/apt/sources.list 

In any terminal program.

  sudo nano /etc/apt/sources.list
  sudo vi /etc/apt/sources.list 
  • Shortcut:
  sudo sed -e 's/\sedgy/ feisty/g' -i /etc/apt/sources.list 

NOTE: This might not remove old CD-ROM lines. Manual inspection is suggested after running this command. (see Long Route) 0. If you have the alternate install CD, you can save bandwidth by loading the CD into your CD-ROM drive and using:

  sudo apt-cdrom add 

0. Perform the upgrade:

  sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get dist-upgrade 

OR, You can also use Aptitude:

  sudo aptitude update && sudo aptitude dist-upgrade && sudo aptitude dist-upgrade 

NOTE: The first run of dist-upgrade will upgrade everything except for upstart. After this a second dist-upgrade will finish the upgrade. 0. Just to be totally sure that everything is installed properly, run these commands:

  sudo apt-get update && sudo apt-get dist-upgrade
  sudo apt-get -f install
  sudo dpkg --configure -a 

Running dist-upgrade again is done to ensure that no packages are left to install or upgrade. In some cases, certain packages fail to install even after running dist-upgrade the second time. 0. Reboot in order to effect all changes. (kernel upgrades, upstart, etc...)

Notes

  • If run a manual upgrade and you have apache2 and php5 installed, make sure to start apache before the upgrade (/etc/init.d/apache2 start). See bug bug #95325 for details.
  • If you do not have the admin group on your system (e.g. because you upgraded all the way back from warty) it will be added during the upgrade. Make sure to add your sudo user(s) to it.
  • If you have pango-libthai installed, remove it before the upgrade
  • You may want to run /usr/lib/python2.5/site-packages/DistUpgrade/apt-autoinst-fixup.py (from the update-manager package) also to fix a common problem with the automatically installed information

--