How to upgrade Ubuntu to 12.04

Source: Internet
Author: User
In this solution, update-manager is used for cross-version upgrade. Make sure that update-manager has been installed and then perform the following steps. Ubuntu12.04 is far from mature, and Tom is at risk. Be cautious when upgrading. Before the upgrade, uninstall and delete unnecessary software packages to make the system relatively simple and clean, and then upgrade to reduce the upgrade time and reduce the chance of errors. The deleted package can be upgraded and re-installed. Code: sudogedit/etc/apt/sources. l

In this solution, update-manager is used for cross-version upgrade. Make sure that update-manager has been installed and then perform the following steps.

Ubuntu 12.04 is far from mature and has risks. Be cautious when upgrading Ubuntu.

Before the upgrade, uninstall and delete unnecessary software packages to make the system relatively simple and clean, and then upgrade to reduce the upgrade time and reduce the chance of errors. The deleted package can be upgraded and re-installed.

Code: sudo gedit/etc/apt/sources. list
Modify the source. There is a forum "new and original software" in the forum. Please go to the forum to find out which sources are added to the source.
Use # To comment out the 11.10 source and copy a 12.04 source from the Forum. (I am using the following: this is called the "bone source". It is faster here)

Reference: # deb http://ubuntu.srt.cn/ubuntu/ oneiric main restricted universe multiverse
# Deb http://ubuntu.srt.cn/ubuntu/ oneiric-security main restricted universe multiverse
# Deb http://ubuntu.srt.cn/ubuntu/ oneiric-updates main restricted universe multiverse
# Deb http://ubuntu.srt.cn/ubuntu/ oneiric-proposed main restricted universe multiverse
# Deb http://ubuntu.srt.cn/ubuntu/ oneiric-backports main restricted universe multiverse
# Deb-src http://ubuntu.srt.cn/ubuntu/ oneiric main restricted universe multiverse
# Deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-security main restricted universe multiverse
# Deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-updates main restricted universe multiverse
# Deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-proposed main restricted universe multiverse
# Deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-backports main restricted universe multiverse

Deb http://ubuntu.srt.cn/ubuntu/ precise main restricted universe multiverse
Deb http://ubuntu.srt.cn/ubuntu/ precise-security main restricted universe multiverse
Deb http://ubuntu.srt.cn/ubuntu/ precise-updates main restricted universe multiverse
Deb http://ubuntu.srt.cn/ubuntu/ precise-proposed main restricted universe multiverse
Deb http://ubuntu.srt.cn/ubuntu/ precise-backports main restricted universe multiverse
Deb-src http://ubuntu.srt.cn/ubuntu/ precise main restricted universe multiverse
Deb-src http://ubuntu.srt.cn/ubuntu/ precise-security main restricted universe multiverse
Deb-src http://ubuntu.srt.cn/ubuntu/ precise-updates main restricted universe multiverse
Deb-src http://ubuntu.srt.cn/ubuntu/ precise-proposed main restricted universe multiverse
Deb-src http://ubuntu.srt.cn/ubuntu/ precise-backports main restricted universe multiverse


The following sources are also available (replace "http://ubuntu.srt.cn/ubuntu ):
Reference: http://archive.ubuntu.com/ubuntu/ # master server
Http://cn.archive.ubuntu.com/ubuntu/ # servers in China

Code: sudo apt-get update: update the source list. It must be executed. If it is found that the speed is slow, change it to another source.

Code: sudo apt-get-d dist-upgrade "-d" indicates that only files are downloaded. download the files first to prevent problems caused by slow network or instability. If the speed is slow, change the source and continue. (If an error is reported in this step, do not continue! Remember)
Code: sudo update-manager-d cross-version upgrade. Select "partial update" as prompted"

After the upgrade, the system will ask you to restart. Don't worry, choose not to restart. To enable the system to start normally next time, further software package checks are required. Close the upgrade window and use it again:

Code: sudo apt-get update
Sudo apt-get upgrade

If a software package exists, you can upgrade it. All of them have been upgraded. Until there is no upgrade.
However, because 11.10 is in trial status, errors may occur in the preceding two statements.

Here, if a "dependency-damaged package" appears during the upgrade, try to fix or delete it first, check whether the GUI package is still running (ubuntu-desktop, kubuntu-desktop, kde-workspace, gnome-shell, and unity). If no package exists, try to install it, in short, do not restart with "disease" to prevent a black screen from accessing the graphic interface after restart.

OK. Now you can restart the instance. The upgrade process is complete. If the upgrade is successful, it can run.
Code: sudo apt-get autoremove
Sudo apt-get autoclean

To clear existing files and save disk space.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.