Debian 5 upgrade debian 6

Source: Internet
Author: User

Debian 5 upgrade debian 6 because you need to use xen 4.0 to provide virtualization, You need to upgrade some online debian 5 systems to debian 6. www.2cto.com 1. Modify the source to debian 6 1root@10.1.6.200 :~ # Cat/etc/debian_version25.0.23root@10.1.6.200 :~ # Vim/etc/apt/sources. list4deb http://mirrors.163.com/debian squeeze main non-free contrib2. update source, here use dist-upgrade instead of upgrade, explained later. 1root@10.1.6.200 :~ # Apt-get dist-upgrade is to install the upgrade package, basically all the way according to the default prompt to install. finally installed, view version 1root@10.1.6.200 :~ # Cat/etc/debian_version26.0.23. Since the system has been upgraded to debian6, you can install xen4.0 1root@10.1.6.200 :~ # Apt-get install linux-image-2.6.32-5-amd64 linux-headers-2.6.32-5-amd642root@10.1.6.200 :~ # Apt-get install linux-image-2.6.32-5-xen-amd64 xen-linux-system-2.6.32-5-xen-amd64 xen-hypervisor-4.0-amd64 xen-utils-4.0 xenstore-utils xen-tools xen-qemu-dm-4.0 xen-utils-common01 change to xen kernel due to restart using ipmi screen capture need to note that Plus console = tty0 console = ttyS1, 11520002root@10.1.6.200 :~ # Vi/boot/grub. 201703default = 804 05 menuentry 'debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64' -- class debian -- class gnu-linux -- class gnu -- class OS -- class xen {06 insmod part_msdos07 insmod ext208 set root = '(hd0, msdos1) '09 search -- no-floppy -- fs-uuid -- set 3e896e08-d01a-43fa-b6b5-c265e526913c10 echo 'loading Linux 2.6.32-5-xen-amd64... '11 multiboot/boot/xen-4.0-amd64.gz Placeholder 12 module/boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root = UUID = 3e896e08-d01a-43fa-b6b5-c265e526913c console = tty0 console = ttyS1, 115200 ro13 echo 'loading initial ramdisk... '14 module/boot/initrd. img-2.6.32-5-xen-amd6415} 16 menuentry 'debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64 (recovery mode) '-- class debian -- class gnu-linux -- class gnu -- class OS -- class xen {17 insmod part_msdos18 insmod ext219 set root = '(hd0, msdos1) '20 search -- no-floppy -- fs-uuid -- set writable echo 'loading Linux 2.6.32-5-xen-amd64... '22 multiboot/boot/xen-4.0-amd64.gz placeholder23 module/boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root = UUID = guest console = tty0 console = ttyS1, 115200 ro single24 echo 'loading initial ra Mdisk... '25 module/boot/initrd. img-2.6.32-5-xen-amd6426} reboot machine, change biso open virtualization option. 1root@10.1.6.200 :~ # Xm list2Name ID Mem VCPUs State Time (s) 3Domain-0 0 2140 8 r ----- 5453.5 below is man upgrade and dist-upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in/etc/ apt/sources. list. packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages Removed, or packages not already installed retrieved and installed. new versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. an update must be specified med first so that apt-get knows that new versions of packages are available. in short, the system will upgrade the existing Package. If there is a dependency problem, and this dependency needs to install another new Package or affect the dependency of other packages. The Package will not be upgraded and will be retained. dist-upgrade in addition to specify the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. so, dist-upgrade command may remove some packages. the/et C/apt/sources. list file contains a list of locations from which to retrieve desired package files. see also apt_preferences (5) for a mechanic for overriding the general settings for individual packages. the dependency problem can be solved intelligently. If the dependency problem exists, you need to install/remove a new Package and then try to install/remove it. (This is usually considered a risky upgrade.) apt-get upgrade and apt-get dist-upgrade are essentially no different. However, dist-upgrade identifies and handles dependency changes, while upgrade does not. For example, Software Package a was originally dependent on B c d, but may have been upgraded in the source. Currently, a is dependent on B c e. In this case, dist-upgrade will delete d Installation e and upgrade Software Package a, while upgrade will deem that the dependency is changed and refuse to upgrade Software Package.

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.