Upgrade Etch naar Lenny (3)

Na alle voorbereidingen kunnen we nu uiteindelijk een full upgrade uitvoeren:

Arkon:~# aptitude full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
  libft-perl
The following NEW packages will be installed:
  bash-completion{a} bsd-mailx{a} fam{a} grub-common{a}
  libcompress-raw-zlib-perl{a} libdb4.5{a} libdb4.6{a} libfam0{a} libgnutls26{a}
  libhtml-template-perl{a} libidn11{a} libio-compress-base-perl{a}
  libio-compress-zlib-perl{a} libio-socket-ssl-perl{a} libkeyutils1{a}
  libldap-2.4-2{a} libnet-libidn-perl{a} libnet-ssleay-perl{a} libperl5.10{a}
  libpq5{a} libsensors4{a} libterm-readkey-perl{a} libterm-readline-perl-perl{a}
  libxcb-xlib0{a} libxcb1{a} libxext6{a} libxmuu1{a} linux-image-2.6.26-1-486{a}
  lockfile-progs{a} lynx-cur{a} nvi-doc{a} openssh-blacklist-extra{a}
  openssl-blacklist{a} portmap{a} python2.5{a} python2.5-minimal{a}
  ttf-dejavu-core{a} ttf-dejavu-extra{a} uuid-runtime{a} whois{a} xauth{a}
The following packages will be REMOVED:
  libdb4.4{u} libgpmg1{u} libperl5.8{u} libpq4{u} libsensors3{u} libsysfs2{u}
The following packages will be upgraded:
  adduser awstats base-files base-passwd bash bsdmainutils bsdutils busybox
  bzip2 coreutils cpio cron ddclient debconf debconf-i18n debian-archive-keyring
  debianutils defoma dhcp3-client dhcp3-common dialog diff dovecot-common
  dovecot-imapd dselect e2fslibs e2fsprogs exif fail2ban file findutils
  fontconfig-config ftp gcc-4.1-base gnupg gpgv grep groff-base grub gzip
  hostname ifupdown initramfs-tools initscripts iptables iputils-ping irssi
  irssi-scripts klibc-utils klogd libacl1 libattr1 libblkid1 libbz2-1.0
  libcomerr2 libcompress-zlib-perl libconsole libdb4.2 libdbd-mysql-perl
  libdbi-perl libedit2 libexif12 libexpat1 libfont-afm-perl libfontconfig1
  libfreetype6 libgcc1 libgcrypt11 libgd2-xpm libgeo-ipfree-perl libglib2.0-0
  libglib2.0-data libgpg-error0 libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libjpeg62 libklibc libkrb53
  liblocale-gettext-perl liblockfile1 libmagic1 libmailtools-perl
  libmysqlclient15off libncurses5 libpam-modules libpam-runtime libpam0g
  libpcre3 libpng12-0 libpopt0 libreadline5 libsasl2-2 libselinux1 libsepol1
  libsigc++-2.0-0c2a libslang2 libsqlite3-0 libss2 libssl0.9.8 libt1-5
  libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  libtimedate-perl liburi-perl libusb-0.1-4 libuuid1 libvolume-id0 libwrap0
  libwww-perl libx11-6 libx11-data libxau6 libxdmcp6 libxml2 libxpm4 lighttpd
  linux-image-2.6-486 lm-sensors login logrotate lsb-base lsof lynx mailx
  makedev man-db manpages mawk mime-support mktemp module-init-tools mount
  mysql-client-5.0 mysql-common mysql-server-5.0 nano ncurses-base ncurses-bin
  net-tools netbase ntp ntpdate nvi openbsd-inetd openssh-blacklist
  openssh-client openssh-server openssl passwd patch perl perl-base perl-modules
  php5-cgi php5-common php5-gd php5-mysql postfix postfix-mysql procps psmisc
  pure-ftpd-common pure-ftpd-mysql python python-central python-minimal
  python2.4 python2.4-minimal readline-common screen sed ssl-cert sysklogd
  sysv-rc sysvinit sysvinit-utils tar tcpd telnet ttf-dejavu ucf udev unrar-free
  unzip update-inetd util-linux wget x11-common zlib1g
The following packages are RECOMMENDED but will NOT be installed:
  apt-utils libnet-xwhois-perl libsasl2-modules xml-core
193 packages upgraded, 41 newly installed, 6 to remove and 0 not upgraded.
Need to get 150MB of archives. After unpacking 139MB will be used.
The following packages have unmet dependencies:
  libft-perl: Depends: perlapi-5.8.8 which is a virtual package.
The following actions will resolve these dependencies:

Remove the following packages:
libft-perl

Install the following packages:
libsasl2-modules [2.1.22.dfsg1-23 (testing)]

Leave the following dependencies unresolved:
defoma recommends libft-perl
Score is -450

Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
  bash-completion{a} bsd-mailx{a} fam{a} grub-common{a}
  libcompress-raw-zlib-perl{a} libdb4.5{a} libdb4.6{a} libfam0{a} libgnutls26{a}
  libhtml-template-perl{a} libidn11{a} libio-compress-base-perl{a}
  libio-compress-zlib-perl{a} libio-socket-ssl-perl{a} libkeyutils1{a}
  libldap-2.4-2{a} libnet-libidn-perl{a} libnet-ssleay-perl{a} libperl5.10{a}
  libpq5{a} libsasl2-modules{a} libsensors4{a} libterm-readkey-perl{a}
  libterm-readline-perl-perl{a} libxcb-xlib0{a} libxcb1{a} libxext6{a}
  libxmuu1{a} linux-image-2.6.26-1-486{a} lockfile-progs{a} lynx-cur{a}
  nvi-doc{a} openssh-blacklist-extra{a} openssl-blacklist{a} portmap{a}
  python2.5{a} python2.5-minimal{a} ttf-dejavu-core{a} ttf-dejavu-extra{a}
  uuid-runtime{a} whois{a} xauth{a}
The following packages will be REMOVED:
  libdb4.4{u} libft-perl{a} libgpmg1{u} libperl5.8{u} libpq4{u} libsensors3{u}
  libsysfs2{u}
The following packages will be upgraded:
  adduser awstats base-files base-passwd bash bsdmainutils bsdutils busybox
  bzip2 coreutils cpio cron ddclient debconf debconf-i18n debian-archive-keyring
  debianutils defoma dhcp3-client dhcp3-common dialog diff dovecot-common
  dovecot-imapd dselect e2fslibs e2fsprogs exif fail2ban file findutils
  fontconfig-config ftp gcc-4.1-base gnupg gpgv grep groff-base grub gzip
  hostname ifupdown initramfs-tools initscripts iptables iputils-ping irssi
  irssi-scripts klibc-utils klogd libacl1 libattr1 libblkid1 libbz2-1.0
  libcomerr2 libcompress-zlib-perl libconsole libdb4.2 libdbd-mysql-perl
  libdbi-perl libedit2 libexif12 libexpat1 libfont-afm-perl libfontconfig1
  libfreetype6 libgcc1 libgcrypt11 libgd2-xpm libgeo-ipfree-perl libglib2.0-0
  libglib2.0-data libgpg-error0 libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libjpeg62 libklibc libkrb53
  liblocale-gettext-perl liblockfile1 libmagic1 libmailtools-perl
  libmysqlclient15off libncurses5 libpam-modules libpam-runtime libpam0g
  libpcre3 libpng12-0 libpopt0 libreadline5 libsasl2-2 libselinux1 libsepol1
  libsigc++-2.0-0c2a libslang2 libsqlite3-0 libss2 libssl0.9.8 libt1-5
  libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  libtimedate-perl liburi-perl libusb-0.1-4 libuuid1 libvolume-id0 libwrap0
  libwww-perl libx11-6 libx11-data libxau6 libxdmcp6 libxml2 libxpm4 lighttpd
  linux-image-2.6-486 lm-sensors login logrotate lsb-base lsof lynx mailx
  makedev man-db manpages mawk mime-support mktemp module-init-tools mount
  mysql-client-5.0 mysql-common mysql-server-5.0 nano ncurses-base ncurses-bin
  net-tools netbase ntp ntpdate nvi openbsd-inetd openssh-blacklist
  openssh-client openssh-server openssl passwd patch perl perl-base perl-modules
  php5-cgi php5-common php5-gd php5-mysql postfix postfix-mysql procps psmisc
  pure-ftpd-common pure-ftpd-mysql python python-central python-minimal
  python2.4 python2.4-minimal readline-common screen sed ssl-cert sysklogd
  sysv-rc sysvinit sysvinit-utils tar tcpd telnet ttf-dejavu ucf udev unrar-free
  unzip update-inetd util-linux wget x11-common zlib1g
The following packages are RECOMMENDED but will NOT be installed:
  apt-utils libnet-xwhois-perl xml-core
193 packages upgraded, 42 newly installed, 7 to remove and 0 not upgraded.
Need to get 150MB of archives. After unpacking 139MB will be used.
Do you want to continue? [Y/n/?]

Upgrade Etch naar Lenny (2)

Nu verder met de eigenlijke upgrade uitvoeren. Hierbij pas ik de sources.list aan naar lenny nadat ik eerst een backup kopie gemaakt heb:

Arkon:/etc/apt# cp sources.list sources.list.etch
Arkon:/etc/apt# nano sources.list

Vervolgens de pakketlijst vernieuwen:

Arkon:/etc/apt# aptitude update
Get:1 http://ftp.nl.debian.org lenny Release.gpg [189B]
Get:2 http://ftp.nl.debian.org lenny Release [74.5kB]
Get:3 http://security.debian.org lenny/updates Release.gpg [189B]
Get:4 http://security.debian.org lenny/updates Release [40.8kB]
Get:5 http://ftp.nl.debian.org lenny/main Packages [5306kB]
Get:6 http://security.debian.org lenny/updates/main Packages [30.7kB]
Fetched 5453kB in 28s (189kB/s)
Reading package lists... Done

En dan zijn we bijna zover dat we een upgrade uit kunnen gaan voeren. Als eerste installeer ik handmatig de nieuwe versies voor het pakketbeheer. Het zou toch vervelend zijn als er tijdens een volledige upgrade wat misgaat omdat het pakketbeheer niet uptodate is:

Arkon:~# aptitude install apt dpkg aptitude
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are BROKEN:
  libc6 libc6-i686 locales
The following NEW packages will be automatically installed:
  gcc-4.3-base libcwidget3 libept0 libxapian15 lzma
The following packages have been kept back:
  adduser awstats base-files base-passwd bash bsdmainutils bsdutils busybox
  bzip2 coreutils cpio cron ddclient debconf debconf-i18n debian-archive-keyring
  debianutils defoma dhcp3-client dhcp3-common dialog diff dovecot-common
  dovecot-imapd dselect e2fslibs e2fsprogs exif fail2ban file findutils
  fontconfig-config ftp gcc-4.1-base gnupg gpgv grep groff-base grub gzip
  hostname ifupdown initramfs-tools initscripts iptables iputils-ping irssi
  irssi-scripts klibc-utils klogd libacl1 libattr1 libblkid1 libbz2-1.0
  libcomerr2 libcompress-zlib-perl libconsole libdb4.2 libdbd-mysql-perl
  libdbi-perl libedit2 libexif12 libexpat1 libfont-afm-perl libfontconfig1
  libfreetype6 libgcc1 libgcrypt11 libgd2-xpm libgeo-ipfree-perl libglib2.0-0
  libglib2.0-data libgpg-error0 libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libjpeg62 libklibc libkrb53
  liblocale-gettext-perl liblockfile1 libmagic1 libmailtools-perl
  libmysqlclient15off libncurses5 libpam-modules libpam-runtime libpam0g
  libpcre3 libperl5.8 libpng12-0 libpopt0 libreadline5 libsasl2-2 libselinux1
  libsensors3 libsepol1 libsigc++-2.0-0c2a libslang2 libsqlite3-0 libss2
  libssl0.9.8 libsysfs2 libt1-5 libtasn1-3 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libtimedate-perl liburi-perl
  libusb-0.1-4 libuuid1 libvolume-id0 libwrap0 libwww-perl libx11-6 libx11-data
  libxau6 libxdmcp6 libxml2 libxpm4 lighttpd linux-image-2.6-486 lm-sensors
  login logrotate lsb-base lsof lynx mailx makedev man-db manpages mawk
  mime-support mktemp module-init-tools mount mysql-client-5.0 mysql-common
  mysql-server-5.0 nano ncurses-base ncurses-bin net-tools netbase ntp ntpdate
  nvi openbsd-inetd openssh-blacklist openssh-client openssh-server openssl
  passwd patch perl perl-base perl-modules php5-cgi php5-common php5-gd
  php5-mysql postfix postfix-mysql procps psmisc pure-ftpd-common
  pure-ftpd-mysql python python-central python-minimal python2.4
  python2.4-minimal readline-common screen sed ssl-cert sysklogd sysv-rc
  sysvinit sysvinit-utils tar tcpd telnet ttf-dejavu tzdata ucf udev unrar-free
  unzip update-inetd util-linux wget x11-common zlib1g
The following NEW packages will be installed:
  gcc-4.3-base libcwidget3 libept0 libxapian15 lzma
The following packages will be upgraded:
  apt aptitude dpkg libncursesw5 libstdc++6
The following packages are RECOMMENDED but will NOT be installed:
  aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr
  aptitude-doc-ja libgpm2 libparse-debianchangelog-perl
6 packages upgraded, 5 newly installed, 0 to remove and 199 not upgraded.
Need to get 14.4MB of archives. After unpacking 9880kB will be used.
The following packages have unmet dependencies:
  libc6-i686: PreDepends: libc6 (= 2.3.6.ds1-13etch8) but 2.7-18 is to be installed.
  locales: Depends: glibc-2.3.6.ds1-1 which is a virtual package.
  libc6: Conflicts: tzdata-etch which is a virtual package.
Resolving dependencies...
The following actions will resolve these dependencies:

Install the following packages:
libgpm2 [1.20.4-3.1 (testing)]

Upgrade the following packages:
libc6-i686 [2.3.6.ds1-13etch8 (now) -> 2.7-18 (testing)]
locales [2.3.6.ds1-13etch8 (now) -> 2.7-18 (testing)]
tzdata [2008e-1etch3 (now) -> 2008h-2 (testing)]

Score is -167

Accept this solution? [Y/n/q/?] y
The following NEW packages will be automatically installed:
  gcc-4.3-base libcwidget3 libept0 libgpm2 libxapian15 lzma
The following packages have been kept back:
  adduser awstats base-files base-passwd bash bsdmainutils bsdutils busybox
  bzip2 coreutils cpio cron ddclient debconf debconf-i18n debian-archive-keyring
  debianutils defoma dhcp3-client dhcp3-common dialog diff dovecot-common
  dovecot-imapd dselect e2fslibs e2fsprogs exif fail2ban file findutils
  fontconfig-config ftp gcc-4.1-base gnupg gpgv grep groff-base grub gzip
  hostname ifupdown initramfs-tools initscripts iptables iputils-ping irssi
  irssi-scripts klibc-utils klogd libacl1 libattr1 libblkid1 libbz2-1.0
  libcomerr2 libcompress-zlib-perl libconsole libdb4.2 libdbd-mysql-perl
  libdbi-perl libedit2 libexif12 libexpat1 libfont-afm-perl libfontconfig1
  libfreetype6 libgcc1 libgcrypt11 libgd2-xpm libgeo-ipfree-perl libglib2.0-0
  libglib2.0-data libgpg-error0 libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libjpeg62 libklibc libkrb53
  liblocale-gettext-perl liblockfile1 libmagic1 libmailtools-perl
  libmysqlclient15off libncurses5 libpam-modules libpam-runtime libpam0g
  libpcre3 libperl5.8 libpng12-0 libpopt0 libreadline5 libsasl2-2 libselinux1
  libsensors3 libsepol1 libsigc++-2.0-0c2a libslang2 libsqlite3-0 libss2
  libssl0.9.8 libsysfs2 libt1-5 libtasn1-3 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libtimedate-perl liburi-perl
  libusb-0.1-4 libuuid1 libvolume-id0 libwrap0 libwww-perl libx11-6 libx11-data
  libxau6 libxdmcp6 libxml2 libxpm4 lighttpd linux-image-2.6-486 lm-sensors
  login logrotate lsb-base lsof lynx mailx makedev man-db manpages mawk
  mime-support mktemp module-init-tools mount mysql-client-5.0 mysql-common
  mysql-server-5.0 nano ncurses-base ncurses-bin net-tools netbase ntp ntpdate
  nvi openbsd-inetd openssh-blacklist openssh-client openssh-server openssl
  passwd patch perl perl-base perl-modules php5-cgi php5-common php5-gd
  php5-mysql postfix postfix-mysql procps psmisc pure-ftpd-common
  pure-ftpd-mysql python python-central python-minimal python2.4
  python2.4-minimal readline-common screen sed ssl-cert sysklogd sysv-rc
  sysvinit sysvinit-utils tar tcpd telnet ttf-dejavu ucf udev unrar-free unzip
  update-inetd util-linux wget x11-common zlib1g
The following NEW packages will be installed:
  gcc-4.3-base libcwidget3 libept0 libgpm2 libxapian15 lzma
The following packages will be upgraded:
  apt aptitude dpkg libc6 libc6-i686 libncursesw5 libstdc++6 locales tzdata
The following packages are RECOMMENDED but will NOT be installed:
  aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr
  aptitude-doc-ja libparse-debianchangelog-perl
9 packages upgraded, 6 newly installed, 0 to remove and 196 not upgraded.
Need to get 21.0MB of archives. After unpacking 12.7MB will be used.
Do you want to continue? [Y/n/?]

Dit accepteer ik waarna deze pakketen opgewaardeerd worden.

Upgrade Etch naar Lenny

Bij het upgraden naar een volgende versie zal ik eerst wat niet-standaard zaken moeten aanpakken. Als eerste zijn daar de backports van Henk van de Kamer uitschakelen door deze uit de sources.list te halen. Ik heb ergens in Het Lab gelezen dat hij niet verder gaat met Debian Lenny maar over gaat stappen op Arch vanwege de rolling-releases.

Arkon:~# nano /etc/apt/sources.list

Na het verwijderen van de betreffende regel doen we een update:

Arkon:~# aptitude update
Get:1 http://ftp.nl.debian.org etch Release.gpg [386B]
Get:2 http://ftp.nl.debian.org etch Release [58.2kB]
Get:3 http://security.debian.org etch/updates Release.gpg [189B]
Ign http://ftp.nl.debian.org etch/main Packages/DiffIndex
Hit http://ftp.nl.debian.org etch/main Packages
Hit http://security.debian.org etch/updates Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Fetched 58.2kB in 0s (112kB/s)
Reading package lists... Done

En nu kunnen we het pakket php5-gd dat vanuit deze backports komen verwijderen:

Arkon:~# aptitude remove php5-gd
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
  libfreetype6 libgd2-noxpm libjpeg62 libpng12-0
The following packages will be REMOVED:
  php5-gd
0 packages upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 1987kB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 17944 files and directories currently installed.)
Removing php5-gd ...
Removing libgd2-noxpm ...
Removing libfreetype6 ...
Removing libjpeg62 ...
Removing libpng12-0 ...

Nu nog het installeren van het standaard php5-gd pakket:

Arkon:~# aptitude install php5-gd
The following packages are BROKEN:
  php5-gd
The following NEW packages will be automatically installed:
  defoma fontconfig-config libexpat1 libfontconfig1 libfreetype6 libft-perl
  libgd2-xpm libjpeg62 libpng12-0 libt1-5 libttf2 libx11-6 libx11-data libxau6
  libxdmcp6 libxpm4 ttf-dejavu x11-common
The following NEW packages will be installed:
  defoma fontconfig-config libexpat1 libfontconfig1 libfreetype6 libft-perl
  libgd2-xpm libjpeg62 libpng12-0 libt1-5 libttf2 libx11-6 libx11-data libxau6
  libxdmcp6 libxpm4 ttf-dejavu x11-common
0 packages upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 1767kB/6314kB of archives. After unpacking 14.9MB will be used.
The following packages have unmet dependencies:
  php5-gd: Depends: php5-common (= 5.2.0-8+etch13) but 5.2.0-9bat7 is installed.
Resolving dependencies...
The following actions will resolve these dependencies:                            

Downgrade the following packages:
php5-cgi [5.2.0-9bat7 (now) -> 5.2.0-8+etch13 (stable, stable)]
php5-common [5.2.0-9bat7 (now) -> 5.2.0-8+etch13 (stable, stable)]
php5-mysql [5.2.0-9bat7 (now) -> 5.2.0-8+etch13 (stable, stable)] 

Score is -160

Accept this solution? [Y/n/q/?] y
The following NEW packages will be automatically installed:
  defoma fontconfig-config libexpat1 libfontconfig1 libfreetype6 libft-perl
  libgd2-xpm libjpeg62 libpng12-0 libt1-5 libttf2 libx11-6 libx11-data libxau6
  libxdmcp6 libxpm4 ttf-dejavu x11-common
The following packages will be DOWNGRADED:
  php5-cgi php5-common php5-mysql
The following NEW packages will be installed:
  defoma fontconfig-config libexpat1 libfontconfig1 libfreetype6 libft-perl
  libgd2-xpm libjpeg62 libpng12-0 libt1-5 libttf2 libx11-6 libx11-data libxau6
  libxdmcp6 libxpm4 php5-gd ttf-dejavu x11-common
0 packages upgraded, 19 newly installed, 3 downgraded, 0 to remove and 0 not upgraded.
Need to get 6804kB/11.4MB of archives. After unpacking 14.6MB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done

Hierbij wordt meteen ook de php5 versie gedowngrade naar de standaard etch versie.