Monday, May 26, 2008

Upgrade dapper to hardy

After dapper image is loaded to my server, now the time for upgrade begin:

1. root@server:~# vim /etc/apt/sources.list
delete all lines, then type these:

deb http://us.archive.ubuntu.com/ubuntu dapper main restricted multiverse universe
deb http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted multiverse universe
deb http://us.archive.ubuntu.com/ubuntu dapper-security main restricted multiverse universe

deb-src http://us.archive.ubuntu.com/ubuntu dapper main restricted multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper-security main restricted multiverse universe

2. run these commands to update your changes above.

root@server:~# apt-get update
root@server:~# apt-get upgrade
root@server:~# apt-get dist-upgrade

3. install update-manager-core.

root@server:~# apt-get install update-manager-core

4. do the upgrade, and follow the instructions there.

root@server:~# do-release-upgrade -d

5. you may clean up the packages archive using:

root@server:~# apt-get clean


Now, you have dapper upgraded to hardy. Time to play with my upgraded vps now!

Note:

There is a locale setting error occurs like in the previous vps provider. However, the soltion I wrote in the past is not working this time. I found new solution here: https://bugs.launchpad.net/ubuntu/+source/langpack-locales/+bug/63687

Don't forget, in vps usually you access the server using root. If you have access other than root, don't forget to put sudo before the commands or sudo password root and sudo su.

1 comment:

Anonymous said...

you are logged in as root or have done sudo su. This is REALLY bad practice. I'd strongly suggest ammending your walkthrough to use sudo as many of the steps require admin priveledges.

Please do not advise users of bad practice and nothing is to be assumed (like they'd know to use sudo instead)

Please be clearer and edit your walkthrough. Otherwise the steps are great and clear

Feel free to email me at andrew.woodhead666@googlemail.com if you require any clarification

Peace