个人工具

UbuntuHelp:EOLUpgrades/Feisty

来自Ubuntu中文

Wikibot讨论 | 贡献2009年11月17日 (二) 19:04的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/EOLUpgrades/Feisty}} {{Languages|UbuntuHelp:EOLUpgrades/Feisty}} #title Upgrading Feisty to Gutsy << [[Ubunt...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索
  1. title Upgrading Feisty to Gutsy

<< < Edgy Gutsy >>

7.04 to 7.10 (Feisty to Gutsy)

Before you start

Please make sure you've read and understood the main EOLUpgrade page. I would recommend using clonezilla for backing up your current installation. It is very easy to backup and restore your partitions with clonezilla. It takes less then 30 minutes to backup/restore a 20Gb root filesystem which has 4-5 Gb used space.

Requirements

  • /etc/apt/sources.list

Please make sure you have the following sources.list.

# Required
deb http://old-releases.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse

# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

You can make use of -backports, -proposed repositories if you want. For more information about repositories see Repositories/Ubuntu.

The upgrade

  • Make sure your sources.list is correct (see requirements)
  • Update the package list and get fully upgrade all packages
sudo aptitude update && sudo aptitude upgrade

NOTE: It could be that you just upgraded your kernel, if this is the case, please reboot!

  • Upgrade your complete system
sudo do-release-upgrade

This command will fail, because it cannot download a specific tarball which is needed to the upgrade, this is due to an error in the meta-release file. it will however leave a subdirectory in /tmp, owned by root.

$ sudo do-release-upgrade
Password:
Checking for a new ubuntu release
Failed Upgrade tool signature
Failed Upgrade tool
Done downloading
extracting '/tmp/tmpaIgInN/gutsy.tar.gz'
Traceback (most recent call last):
  File "/usr/bin/do-release-upgrade", line 45, in <module>
    fetcher.run()
  File "/usr/lib/python2.5/site-packages/UpdateManager/Core/DistUpgradeFetcherCore.py", line 160, in run
    if not self.extractDistUpgrader():
  File "/usr/lib/python2.5/site-packages/UpdateManager/Core/DistUpgradeFetcherCore.py", line 98, in extractDistUpgrader
    tar = tarfile.open(self.tmpdir+"/"+os.path.basename(self.uri),"r")
  File "/usr/lib/python2.5/tarfile.py", line 1139, in open
    return func(name, "r", fileobj)
  File "/usr/lib/python2.5/tarfile.py", line 1200, in gzopen
    fileobj = file(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/tmp/tmpaIgInN/gutsy.tar.gz'
  • Download the tarball manually

First we will make sure we can create and write into the /tmp directory do-release upgrade created. Then we download the gutsy tarball and extract the contents.

sudo chown $USER /tmp/tmpaIgInN
cd /tmp/tmpaIgInN
wget http://old-releases.ubuntu.com/ubuntu/dists/gutsy/main/dist-upgrader-all/current/gutsy.tar.gz
tar zxvf gutsy.tar.gz
  • Make sure we can continue upgrading, since two packages are needed we need to change the prerequisites sources as well:
perl -p -i.704 -e 's/(http:\/\/).*archive(.ubuntu.com)/${1}old-releases$2/' prerequists-sources.list

Problems with installing specific packages:: Some users have reported that they still have to download packages from archives.ubuntu.com while everything resides on old-releases. If you have this problem, you could change your /etc/host file to point archive.ubuntu.com to old-releases. Do this by running `host old-releases.ubuntu.com | grep address | awk '{print $NF"\tarchive.ubuntu.com"}' | sudo tee -a /etc/hosts`. After the upgrade you need to remove this line again from the hosts file, by doing `sudo sed -i '$d' /etc/hosts`

  • Change your sources.list
sudo perl -p -i.704 -e 's/feisty/gutsy/g' /etc/apt/sources.list
  • Continue the upgrade process
sudo ./gutsy --frontend DistUpgradeViewText --mode=server
  • Check your new version

Reboot your machine and you can now run `lsb_release -a` to check the new version of Ubuntu. << < Edgy Gutsy >>