Update system lenny terlebih dahulu
# apt-get update
# apt-get upgrade
update apt seource list
# vi /etc/apt/sources.list
ganti " lenny " dengan " squeeze "
Update paket yang ada
# apt-get update
Get:1 http://security.debian.org squeeze/updates Release.gpg [836B]
Get:2 http://security.debian.org squeeze/updates Release [38.4kB]
Get:3 http://packages.dotdeb.org squeeze Release.gpg [836B]
Get:4 http://security.debian.org squeeze/updates/main Packages [82.6kB]
Get:5 http://ftp.us.debian.org squeeze Release.gpg [1671B]
Get:6 http://www.debian-multimedia.org squeeze Release.gpg [198B]
Get:7 http://packages.dotdeb.org squeeze Release [2197B]
Get:8 http://security.debian.org squeeze/updates/contrib Packages [619B]
Get:9 http://www.debian-multimedia.org squeeze Release [22.5kB]
Get:10 http://ftp.us.debian.org squeeze Release [79.8kB]
Get:11 http://packages.dotdeb.org squeeze/all Packages [15.1kB]
Get:12 http://packages.dotdeb.org squeeze/all Sources [3410B]
Get:13 http://www.debian-multimedia.org squeeze/main Packages [93.3kB]
Get:14 http://ftp.us.debian.org squeeze/main Packages [8633kB]
Get:15 http://ftp.us.debian.org squeeze/contrib Packages [65.6kB]
Fetched 9040kB in 10s (895kB/s)
Reading package lists... Done
Install Screen
untuk menjaga-jaga kalau koneksi putus waktu update system maka installasi akan tetepa di lanjutkan oleh screen
# apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dpkg liblzma2 xz-utils
Suggested packages:
xz-lzma
The following NEW packages will be installed:
liblzma2 screen xz-utils
The following packages will be upgraded:
dpkg
1 upgraded, 3 newly installed, 0 to remove and 282 not upgraded.
Need to get 3328kB of archives.
After this operation, 1376kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setelah installasi selesai jalankan screen
# screen
Jika sewaktu-waktu koneksi terputus kita masih bisa menjalankan session dari screen untuk melanjutkan. dengan perintah screen -Dr
Mulai Upgrade
Software yang di upgrade pada sistem ini sangat mungkin berbeda dengan sistem yang lain.
# apt-get install apt dpkg aptitude
Reading package lists... Done
Building dependency tree
Reading state information... Done
dpkg is already the newest version.
The following extra packages will be installed:
apt-utils apt-xapian-index gcc-4.4-base iso-codes libboost-iostreams1.42.0 libdb4.8 libept1 libncurses5 libncursesw5
libreadline6 libsqlite3-0 libssl0.9.8 libstdc++6 libuuid1 libxapian22 lsb-release python python-apt
python-apt-common python-central python-chardet python-debian python-minimal python-support python-xapian python2.5
python2.5-minimal python2.6 python2.6-minimal sensible-utils
Suggested packages:
dpkg-dev apt-doc bzip2 app-install-data python-xdg debtags isoquery xapian-tools lsb python-doc python-tk
python-profiler python-apt-dbg python-gtk2 python-vte python-apt-doc xapian-doc python2.5-doc binfmt-support
python2.6-doc python2.6-profiler
Recommended packages:
aptitude-doc-en aptitude-doc libparse-debianchangelog-perl libgpm2 uuid-runtime
The following packages will be REMOVED:
libept0
The following NEW packages will be installed:
apt-xapian-index gcc-4.4-base iso-codes libboost-iostreams1.42.0 libdb4.8 libept1 libreadline6 libxapian22
lsb-release python-apt python-apt-common python-central python-chardet python-debian python-support python-xapian
python2.6 python2.6-minimal sensible-utils
The following packages will be upgraded:
apt apt-utils aptitude libncurses5 libncursesw5 libsqlite3-0 libssl0.9.8 libstdc++6 libuuid1 python python-minimal
python2.5 python2.5-minimal
13 upgraded, 19 newly installed, 1 to remove and 269 not upgraded.
Need to get 26.8MB of archives.
After this operation, 40.9MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setelah selesai mulai untuk upgrade seluruh system dengan apt-get dist-upgrade
akar:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
libao2 libxcb-xlib0 libxcb-xlib0-dev
The following NEW packages will be installed:
cpp-4.4 dash diffutils dmsetup gcc-4.4 geoip-database gnupg-curl insserv install-info isc-dhcp-client
isc-dhcp-common libao-common libao4 libaudio-scrobbler-perl libbsd0 libc-bin libc-client2007e libc-dev-bin
libc6-i686 libconfig-inifiles-perl libdb4.7 libfile-copy-recursive-perl libfont-freetype-perl libgeoip1
libgssapi-krb5-2 libicu44 libk5crypto3 libkrb5-3 libkrb5support0 libltdl7 libmpfr4 libnfnetlink0 libonig2
libparams-util-perl libqdbm14 libsub-name-perl libudev0 libxslt1.1 libyaml-syck-perl lockfile-progs manpages-dev
nginx-common nginx-full shared-mime-info
The following packages will be upgraded:
adduser altermime base-files base-passwd bash binutils bsd-mailx bsdmainutils bsdutils ca-certificates coreutils
cpio cpp cpp-4.3 cron debconf debconf-i18n debian-archive-keyring debianutils defoma dhcp3-client dhcp3-common diff
dkim-filter dmidecode e2fslibs e2fsprogs ed file findutils fontconfig-config gcc gcc-4.3 gcc-4.3-base gnupg gpgv
grep groff-base gzip hostname ifupdown info initscripts iproute iptables iputils-ping lame libacl1 libanydata-perl
libattr1 libblkid1 libbz2-1.0 libc6 libc6-dev libclass-accessor-perl libclass-dbi-abstractsearch-perl
libclass-dbi-perl libclass-dbi-sqlite-perl libclass-trigger-perl libclone-perl libcomerr2 libcompress-raw-zlib-perl
libcompress-zlib-perl libconsole libcurl3 libcurl3-gnutls libcwidget3 libdate-manip-perl libdb4.6
libdbd-anydata-perl libdbd-csv-perl libdbd-mysql-perl libdbd-sqlite2-perl libdbd-sqlite3-perl libdbi-perl
libdbix-contextualfetch-perl libdevmapper1.02.1 libdigest-hmac-perl libdigest-sha1-perl libedit2 libexpat1
libexpat1-dev libflac8 libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev libgcc1 libgcrypt11
libgd-gd2-perl libgd-tools libgd2-xpm libgd2-xpm-dev libgdbm3 libglib2.0-0 libglib2.0-data libgmp3c2 libgnutls26
libgomp1 libgpg-error0 libhtml-parser-perl libhtml-template-perl libhtml-tree-perl libidn11 libima-dbi-perl
libio-compress-base-perl libio-compress-zlib-perl libjpeg62 libjpeg62-dev libkeyutils1 libkrb53 libldap-2.4-2
liblingua-en-inflect-perl liblocale-gettext-perl liblockfile1 libmad0 libmagic1 libmail-spf-perl libmailtools-perl
libmcrypt4 libmilter1.0.1 libmysqlclient16 libnet-daemon-perl libnet-dns-perl libnetaddr-ip-perl libnewt0.52 libogg0
libpam-modules libpam-runtime libpam0g libpcre3 libplrpc-perl libpng12-0 libpng12-dev libpopt0 libpthread-stubs0
libpthread-stubs0-dev libreadline5 libsasl2-2 libselinux1 libsepol1 libsigc++-2.0-0c2a libslang2
libsql-abstract-limit-perl libsql-abstract-perl libsql-statement-perl libss2 libssh2-1 libsub-uplevel-perl
libtasn1-3 libtest-exception-perl libtest-simple-perl libtext-charwidth-perl libtext-csv-xs-perl libtext-iconv-perl
libtext-wrapi18n-perl libtimedate-perl libuniversal-moniker-perl liburi-perl libusb-0.1-4 libvorbis0a libvorbisenc2
libvorbisfile3 libwrap0 libwww-perl libx11-6 libx11-data libx11-dev libxau-dev libxau6 libxcb1 libxcb1-dev
libxdmcp-dev libxdmcp6 libxml-twig-perl libxml-xpath-perl libxml2 libxpm-dev libxpm4 linux-libc-dev login logrotate
logwatch lsb-base lynx lynx-cur make makedev man-db manpages mawk mime-support mktemp mlock module-init-tools mount
mpg321 mysql-client-5.1 mysql-common mysql-server-5.1 mysql-server-core-5.1 nano ncurses-base ncurses-bin net-tools
netbase nginx nsd3 openssh-client openssh-server openssl openssl-blacklist passwd perl perl-base perl-modules
php-pear php5-cgi php5-cli php5-common php5-curl php5-fpm php5-gd php5-imap php5-mcrypt php5-mysql php5-suhosin
php5-xmlrpc pkg-config postfix postfix-policyd-spf-perl procps psmisc readline-common rsyslog sed sgml-base ssl-cert
sysv-rc sysvinit sysvinit-utils tar tasksel tasksel-data tcpd timelimit traceroute ttf-dejavu ttf-dejavu-core
ttf-dejavu-extra tzdata ucf unzip update-inetd util-linux vim-common vim-tiny vnstat vorbis-tools wget whiptail
x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev xml-core xtrans-dev zlib1g zlib1g-dev
269 upgraded, 44 newly installed, 3 to remove and 0 not upgraded.
Need to get 163 MB of archives.
After this operation, 97.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Seputar pertanyaan selama proses upgrade mungkin akan berbeda untuk system lain. Untuk pindah pilihan gunakan tombol tab
+-------------------------------------------------¦ Configuring dash +-------------------------------------------------+
¦ ¦
¦ The system shell is the default command interpreter for shell scripts. ¦
¦ ¦
¦ Using dash as the system shell will improve the system's overall performance. It does not alter the shell presented ¦
¦ to interactive users. ¦
¦ ¦
¦ Use dash as the default system shell (/bin/sh)? ¦
¦ ¦
¦ ¦
¦ ¦
+----------------------------------------------------------------------------------------------------------------------+
Dash adalah unix shell yang di keluarkan oleh debian tidak jauh beda dengan bash atau sh.
Pilih saja Yes untuk merubah shell ke dash.
Pilih software yang akan di restart selama proses upgrade
+------------------------------------------------¦ Configuring libc6 +-------------------------------------------------+
¦ Running services and programs that are using NSS need to be restarted, otherwise they might not be able to do ¦
¦ lookup or authentication any more (for services such as ssh, this can affect your ability to login). Please review ¦
¦ the following space-separated list of init.d scripts for services to be restarted now, and correct it if needed. ¦
¦ ¦
¦ Note: restarting sshd/telnetd should not affect any existing connections. ¦
¦ ¦
¦ Services to restart for GNU libc library upgrade: ¦
¦ ¦
¦ cron________________________________________________________________________________________________________________ ¦
¦ ¦
¦ ¦
¦ ¦
+----------------------------------------------------------------------------------------------------------------------+
Dalam hal ini hanya cron yang jalan pada system tersebut. Bila ada hal lain tambahkan saja.
+-----------------------------------------------¦ Configuring sysv-rc +-----------------------------------------------+
¦ ¦
¦ Unable to migrate to dependency-based boot system ¦
¦ ¦
¦ Tests have determined that problems in the boot system exist which prevent migration to dependency-based boot ¦
¦ sequencing: ¦
¦ ¦
¦ insserv: warning: script 'S10vzquota' missing LSB tags and overrides, insserv: warning: script 'vzquota' missing ¦
¦ LSB tags and overrides, , package apache2.2-common removed but not purged, package chrony removed but not purged, ¦
¦ package exim4-base removed but not purged ¦
¦ ¦
¦ If the reported problem is a local modification, it needs to be fixed manually. If it's a bug in the package, it ¦
¦ should be reported to the BTS and fixed in the package. See ¦
¦ http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot for more information about how to fix the problems ¦
¦ preventing migration. ¦
¦ ¦
¦ To reattempt the migration process after the problems have been fixed, run "dpkg-reconfigure sysv-rc". ¦
¦ ¦
¦ ¦
¦ ¦
+---------------------------------------------------------------------------------------------------------------------+
Ok dan nanti setelah selesai dan reboot jalan kan perintah
# dpkg-reconfigure sysv-rc
Update system password
update-passwd has found some differences between your system accounts
and the current Debian defaults. It is advisable to allow update-passwd
to change your system; without those changes some packages might not work
correctly. For more documentation on the Debian account policies please
see /usr/share/doc/base-passwd/README.
The list of proposed changes is:
Removing group "filter" (61)
Would commit 1 changes
It is highly recommended that you allow update-passwd to make these changes
(a backup file of modified files is made with the extension .org so you can
always restore the current settings).
May I update your system? [Y/n] Y
+-----------------------------------------------¦ Configuring libpam0g +-----------------------------------------------+
¦ Most services that use PAM need to be restarted to use modules built for this new version of libpam. Please review ¦
¦ the following space-separated list of init.d scripts for services to be restarted now, and correct it if needed. ¦
¦ ¦
¦ Services to restart for PAM library upgrade: ¦
¦ ¦
¦ cron________________________________________________________________________________________________________________ ¦
¦ ¦
¦ ¦
¦ ¦
+----------------------------------------------------------------------------------------------------------------------+
Tekan tab ke kemudian enter
Selanjutnya akan di tanya seputar software yang sudah terinstall seperti berikut :
Configuration file `/etc/mysql/my.cnf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** my.cnf (Y/I/N/O/D/Z) [default=N] ? Y
Sesuaikan saja jawaban anda dengan keadaan system.
Bila sudah selesai semua, reboot system.
Seharusnya tidak ada masalah anda dapat login kembali dan cek apakah sudah terupgrade ke debian 6.
# cat /etc/debian_version
6.0.1
Sumber bacaan :
http://library.linode.com/troubleshooting/upgrade-to-debian-6-squeeze
- aboen's blog
- Add new comment
- 813 reads


Recent comments
3 days 9 hours ago
1 week 4 days ago
7 weeks 4 days ago
16 weeks 5 days ago
18 weeks 4 days ago
19 weeks 1 day ago
19 weeks 1 day ago
20 weeks 17 hours ago
20 weeks 1 day ago
20 weeks 1 day ago