个人工具
登录
查看“UbuntuHelp:EOLUpgrades/Edgy”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:EOLUpgrades/Edgy”的源代码
来自Ubuntu中文
←
UbuntuHelp:EOLUpgrades/Edgy
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/EOLUpgrades/Edgy}} {{Languages|UbuntuHelp:EOLUpgrades/Edgy}} #title Upgrading Edgy to Feisty [[UbuntuHelp:EOLUpgrades| <<]] [[UbuntuHelp:EOLUpgrades/Dapper| < Dapper]] [[UbuntuHelp:EOLUpgrades/Feisty| Feisty >>]] == 6.10 to 7.04 (Edgy to Feisty) == === Before you start === Please make sure you've read and understood the [[UbuntuHelp:EOLUpgrades| main EOLUpgrade page]]. I would recommend using [http://www.clonezilla.org 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. <pre><nowiki> # Required deb http://old-releases.ubuntu.com/ubuntu/ edgy main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse # Optional #deb http://old-releases.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse </nowiki></pre> You can make use of -backports, -proposed repositories if you want. For more information about repositories see [[UbuntuHelp:Repositories/Ubuntu|Repositories/Ubuntu]]. === The upgrade === * Make sure your sources.list is correct (see requirements) * Update the package list and get fully upgrade all packages <pre><nowiki> sudo aptitude update && sudo aptitude upgrade </nowiki></pre> NOTE: It could be that you just upgraded your kernel, if this is the case, please reboot! * Upgrade your complete system You need to run do-release-upgrade once, it will fail, but that doesn't matter. We will trigger the upgrade process from a different executable once we ran do-release-upgrade. <pre><nowiki> sudo do-release-upgrade </nowiki></pre> You will now see the following messages on your screen, directly after executing the command: <pre><nowiki> $ sudo do-release-upgrade Checking for a new ubuntu release Done Upgrade tool signature Done Upgrade tool Done downloading extracting '/tmp/tmpH9WhkH/feisty.tar.gz' authenticate '/tmp/tmpH9WhkH/feisty.tar.gz' against '/tmp/tmpH9WhkH/feisty.tar.gz.gpg' </nowiki></pre> And many more error messages, you can ignore them for now. Remember the directory as seen in the sniplet above (/tmp/tmpH9WhkH/). The upgrade process changes old-releases.ubuntu.com links to archive.ubuntu.com, because we upgrade to another EOL release the archive link will not work. To prevent this from happening we are going to fix the upgrade controler script. * Patching DistUpgradeControler.py I use vi as an editor, you can use your editor of choice, nano, gedit, etc. <pre><nowiki> vi $HOME/DistUpgradeControler.py.patch </nowiki></pre> Contents of the patch file: <pre><nowiki> --- DistUpgradeControler.py.ORIG 2009-01-29 18:51:43.000000000 +0100 +++ DistUpgradeControler.py 2009-01-29 18:52:44.000000000 +0100 @@ -352,11 +352,11 @@ # them back to archive.ubuntu.com - now this is a problem # of course for people upgrading from EOL release to a # EOL release - if (not entry.disabled and - entry.uri.startswith("http://old-releases.ubuntu.com/ubuntu")): - entry.uri = "http://archive.ubuntu.com/ubuntu" - logging.debug("transitioning old-releases.ubuntu.com to '%s' " % entry) - continue + #if (not entry.disabled and + # entry.uri.startswith("http://old-releases.ubuntu.com/ubuntu")): + # entry.uri = "http://archive.ubuntu.com/ubuntu" + # logging.debug("transitioning old-releases.ubuntu.com to '%s' " % entry) + # continue logging.debug("examining: '%s'" % entry) # check if it's a mirror (or offical site) </nowiki></pre> If you do not have patch installed, please install it `sudo aptitude install patch`, or make these changes manually. You will need root privileges to edit the file. <pre><nowiki> cd /tmp/tmpH9WhkH/ sudo patch < $HOME/DistUpgradeControler.py.patch </nowiki></pre> When you have applied the patch execute the following command: <pre><nowiki> cd /tmp/tmpH9WhkH/ sudo ./feisty --frontend DistUpgradeViewText --mode=server </nowiki></pre> * Check your new version Reboot your machine and you can now run `lsb_release -a` to check the new version of Ubuntu. [[UbuntuHelp:EOLUpgrades| <<]] [[UbuntuHelp:EOLUpgrades/Dapper| < Dapper]] [[UbuntuHelp:EOLUpgrades/Feisty| Feisty >>]] ---- [[category:CategoryUpgrade]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:EOLUpgrades/Edgy
。