wiki:LennyToSqueeze

Version 4 (modified by chris, 5 years ago) (diff)

--

This page is to document the upgrade of the DevelopmentServer and the NewLiveServer from Denian lenny to squeeze, this upgrade was tracked on ticket:301.

Following http://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html to upgrade kiwi.

sudo -i
screen
script -t 2>~/upgrade-squeeze1.time -a ~/upgrade-squeeze1.script

Existing state of packages was checked with apt and aptitude:

audacity # a
dpkg --audit
dpkg -l | pager
dpkg --get-selections "*" > ~/curr-pkgs.txt

All the backup scripts were run via ninjahelper.

The following edit was done to /etc/apt/sources.list:

:1,$s/lenny/squeeze/

Then:

apt-get update
apt-get upgrade

...

The following packages have been kept back:
  apache2 apache2-mpm-prefork apache2.2-common apt apt-utils aptitude autoconf automake bash bind9-host
  binutils build-essential cpio cpp cpp-4.3 cron dbus debianutils dhcp3-client dhcp3-common diff
  djvulibre-desktop dnsutils dpkg dpkg-dev e2fsprogs ed findutils g++ g++-4.3 gcc gcc-4.3 gcc-4.3-base gettext
  ghostscript gnuit gnupg gpgv grep html2text hwinfo imagemagick info iproute iptables jed jed-common
  libapache2-mod-php5 libapache2-svn libaprutil1 libbluetooth-dev libc6 libc6-dev libcompress-raw-zlib-perl
  libcompress-zlib-perl libcups2 libcupsimage2 libcurl3 libcurl3-gnutls libdate-manip-perl libdbd-mysql-perl
  libdbi-perl libdevmapper1.02.1 libdigest-sha1-perl libdjvulibre21 libedit2 libffi-dev libffi5 libgcc1
  libgdbm-dev libgdbm3 libglib2.0-0 libglib2.0-data libgomp1 libgs8 libgsf-1-114 libgtk2.0-0 libgtk2.0-bin
  libhtml-parser-perl libio-compress-base-perl libio-compress-zlib-perl libkrb53 liblocale-gettext-perl
  libmail-box-perl libneon27-gnutls libpam-modules libpam-runtime libpango1.0-0 libpq5 librrd4 librrds-perl
  librsvg2-2 libsasl2-2 libsqlite3-0 libstdc++6 libstdc++6-4.3-dev libsvn-perl libsvn1 libthai-data libthai0
  libts-0.0-0 libx11-6 libx11-dev libxcb1 libxcb1-dev libxi6 locales lynx lynx-cur m4 man-db memcached munin
  munin-node mutt mysql-server nano ntp openssh-client openssh-server perl perl-base perl-modules php-apc
  php-pear php5 php5-cli php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache
  php5-mysql php5-suhosin phpmyadmin postfix python python-minimal python-pysqlite2 python-subversion python2.5
  python2.5-minimal rdate readline-common rrdtool screen sed sqlite3 subversion sudo sysv-rc udev update-inetd
  util-linux util-linux-locales wget x11-utils xterm
The following packages will be upgraded:
  adduser apache2-utils automake1.4 automake1.9 autotools-dev backupninja base-files base-passwd blt blt-dev
  bsd-mailx bsdmainutils bsdutils bzip2 ca-certificates coreutils curl db4.6-util dbus-x11 debconf debconf-i18n
  debconf-utils debhelper debian-archive-keyring defoma denyhosts dialog dmidecode e2fslibs esmtp file
  fontconfig fontconfig-config gawk gettext-base git git-core groff-base gs-common gsfonts gzip hdparm
  hicolor-icon-theme hostname ifupdown initscripts iputils-ping javascript-common joe less libacl1 libapr1
  libatk1.0-0 libatk1.0-data libattr1 libblkid1 libbz2-1.0 libbz2-dev libcairo2 libcap2 libcomerr2
  libconfig-inifiles-perl libconsole libcroco3 libcwidget3 libdb4.6 libdbus-1-3 libdigest-hmac-perl libdrm2
  libesmtp5 libexpat1 libfile-remove-perl libfontconfig1 libfontenc1 libfreetype6 libgcrypt11 libgd2-xpm
  libgl1-mesa-glx libgmp3c2 libgnutls26 libgpg-error0 libgpm2 libgsf-1-common libgtk2.0-common libhal1
  libhtml-template-perl libhtml-tree-perl libice-dev libice6 libidn11 libilmbase6 libio-multiplex-perl
  libjasper1 libjpeg62 libjs-jquery libkeyutils1 liblcms1 libldap-2.4-2 liblockfile1 libmagic-dev libmagic1
  libmail-sendmail-perl libmailtools-perl libmcrypt4 libmime-lite-perl libmime-types-perl libncurses5
  libncurses5-dev libncursesw5 libncursesw5-dev libnet-cidr-perl libnet-daemon-perl libnet-snmp-perl
  libnewt0.52 libobject-realize-later-perl libopenexr6 libpam0g libpango1.0-common libpaper-utils libpaper1
  libpcre3 libpixman-1-0 libplrpc-perl libpng12-0 libpopt0 libpthread-stubs0 libpthread-stubs0-dev libreadline5
  libreadline5-dev librsync1 libselinux1 libsepol1 libserf-0-0 libsigc++-2.0-0c2a libslang2 libsm-dev libsm6
  libss2 libssh2-1 libssl-dev libssl0.9.8 libsysfs2 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl libtidy-0.99-0 libtiff4 libtimedate-perl libtool liburi-perl libusb-0.1-4
  libuser-identity-perl libuuid1 libwmf0.2-7 libwrap0 libwww-perl libx11-data libxau-dev libxau6 libxaw7
  libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1 libxdamage1 libxdmcp-dev libxdmcp6 libxext6
  libxfixes3 libxfont1 libxft2 libxinerama1 libxml2 libxmu6 libxmuu1 libxpm4 libxrandr2 libxrender1 libxslt1.1
  libxt-dev libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 linux-libc-dev locate login logrotate lsb-base
  lsb-release make makedev manpages mawk mime-support mktemp module-init-tools mount munin-plugins-extra
  mysql-common ncftp ncurses-base ncurses-bin net-tools netbase openssl openssl-blacklist passwd patch
  po-debconf procps psfontmgr psmisc pwgen python-central python-chardet python-dnspython python-genshi
  python-pkg-resources python-pygments python-pylibacl python-pyxattr python-setuptools python-support
  python-tz rdiff-backup rsync rsyslog sgml-base shtool ssh ssl-cert subversion-tools sysvinit sysvinit-utils
  tar tasksel tasksel-data tcl8.4 tcl8.4-dev tcpd tidy tk8.4 tk8.4-dev trac trac-spamfilter traceroute
  ttf-dejavu ttf-dejavu-core ttf-dejavu-extra tzdata ucf unzip vim vim-common vim-runtime vim-tiny vsftpd
  whiptail whois wwwconfig-common x-ttcidfont-conf x11-common x11proto-core-dev x11proto-input-dev
  x11proto-kb-dev xauth xbitmaps xfonts-encodings xfonts-utils xml-core xsltproc xtrans-dev zlib1g zlib1g-dev
277 upgraded, 0 newly installed, 0 to remove and 160 not upgraded.
Need to get 92.0MB of archives.
After this operation, 21.6MB of additional disk space will be used.
Do you want to continue [Y/n]? 

Configuration file `/etc/securetty'
 ==> 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     : background this process to examine the situation
 The default action is to keep your current version.
*** securetty (Y/I/N/O/D/Z) [default=N] ? N

 Services to restart for PAM library upgrade:                                                                          │  
 │                                                                                                                       │  
 │ vsftpd cron

Configuration file `/etc/sysctl.conf'
 ==> 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     : background this process to examine the situation
 The default action is to keep your current version.
*** sysctl.conf (Y/I/N/O/D/Z) [default=N] ? N

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     : background this process to examine the situation
 The default action is to keep your current version.
*** my.cnf (Y/I/N/O/D/Z) [default=N] ? N

Configuration file `/etc/vsftpd.conf'
 ==> 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     : background this process to examine the situation
 The default action is to keep your current version.
*** vsftpd.conf (Y/I/N/O/D/Z) [default=N] ? N

And then the full upgrade:

apt-get -d dist-upgrade

The following packages will be REMOVED
  libdatrie0 libept0 libgraphviz4 libmagick10 libxcb-xlib0 libxcb-xlib0-dev mysql-server mysql-server-5.0
The following NEW packages will be installed
  apache2.2-bin apt-xapian-index autopoint cpp-4.4 dash dbconfig-common diffutils dmsetup exiv2 fakeroot g++-4.4 gcc-4.4
  gcc-4.4-base geoip-database gnupg-curl insserv install-info isc-dhcp-client isc-dhcp-common iso-codes
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libaprutil1-dbd-sqlite3 libaprutil1-ldap
  libavahi-client3 libavahi-common-data libavahi-common3 libbind9-60 libbluetooth3 libboost-iostreams1.42.0 libbsd0
  libc-bin libc-dev-bin libcdt4 libcompress-raw-bzip2-perl libdatrie1 libdb4.7 libdb4.8 libdbi0 libdjvulibre-text libdns69
  libdpkg-perl libept1 libevent-1.4-2 libexiv2-9 libfile-copy-recursive-perl libgeoip1 libgpgme11 libgraph4
  libgssapi-krb5-2 libgvc5 libhd16 libio-compress-perl libipc-shareable-perl libisc62 libisccc60 libisccfg62 libjbig2dec0
  libjs-mootools libk5crypto3 libkrb5-3 libkrb5support0 liblog-dispatch-perl liblog-log4perl-perl liblqr-1-0 libltdl7
  liblwres60 liblzma2 libmagickcore3 libmagickcore3-extra libmagickwand3 libmpfr4 libmysqlclient16 libnetpbm10
  libnfnetlink0 libonig2 libopts25 libparams-validate-perl libpathplan4 libpci3 libpth20 libqdbm14 libreadline6
  libsasl2-modules libslang2-modules libstdc++6-4.4-dev libtest-pod-perl libtokyocabinet8 libudev0 libunistring0
  libutempter0 libxapian22 libxcb-atom1 libxdot4 libyaml-syck-perl lockfile-progs manpages-dev munin-common
  mysql-server-core-5.1 netpbm pciutils python-apt python-apt-common python-debian python-xapian python2.6
  python2.6-minimal sensible-utils shared-mime-info slsh tsconf ufraw-batch usbutils xz-utils
The following packages will be upgraded:
  apache2 apache2-mpm-prefork apache2.2-common apt apt-utils aptitude autoconf automake bash bind9-host binutils
  build-essential cpio cpp cpp-4.3 cron dbus debianutils dhcp3-client dhcp3-common diff djvulibre-desktop dnsutils dpkg
  dpkg-dev e2fsprogs ed findutils g++ g++-4.3 gcc gcc-4.3 gcc-4.3-base gettext ghostscript gnuit gnupg gpgv grep html2text
  hwinfo imagemagick info iproute iptables jed jed-common libapache2-mod-php5 libapache2-svn libaprutil1 libbluetooth-dev
  libc6 libc6-dev libcompress-raw-zlib-perl libcompress-zlib-perl libcups2 libcupsimage2 libcurl3 libcurl3-gnutls
  libdate-manip-perl libdbd-mysql-perl libdbi-perl libdevmapper1.02.1 libdigest-sha1-perl libdjvulibre21 libedit2
  libffi-dev libffi5 libgcc1 libgdbm-dev libgdbm3 libglib2.0-0 libglib2.0-data libgomp1 libgs8 libgsf-1-114 libgtk2.0-0
  libgtk2.0-bin libhtml-parser-perl libio-compress-base-perl libio-compress-zlib-perl libkrb53 liblocale-gettext-perl
  libmail-box-perl libneon27-gnutls libpam-modules libpam-runtime libpango1.0-0 libpq5 librrd4 librrds-perl librsvg2-2
  libsasl2-2 libsqlite3-0 libstdc++6 libstdc++6-4.3-dev libsvn-perl libsvn1 libthai-data libthai0 libts-0.0-0 libx11-6
  libx11-dev libxcb1 libxcb1-dev libxi6 locales lynx lynx-cur m4 man-db memcached munin munin-node mutt nano ntp
  openssh-client openssh-server perl perl-base perl-modules php-apc php-pear php5 php5-cli php5-common php5-curl php5-dev
  php5-gd php5-imagick php5-mcrypt php5-memcache php5-mysql php5-suhosin phpmyadmin postfix python python-minimal
  python-pysqlite2 python-subversion python2.5 python2.5-minimal rdate readline-common rrdtool screen sed sqlite3
  subversion sudo sysv-rc udev update-inetd util-linux util-linux-locales wget x11-utils xterm
159 upgraded, 115 newly installed, 8 to remove and 0 not upgraded.
Need to get 182MB of archives.
After this operation, 104MB of additional disk space will be used.
Do you want to continue [Y/n]? y