zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Upgrade Debian lenny to squeeze

November 20, 2010 by Igor Drobot 1 Comment

Debian Logo

This upgrade from lenny to squeeze is not more complexer then the update from etch to lenny.
If you read everything carefully your server will run after upgrade too:)

Before you go on please read the official Debian release notes:

Recording your session:

1
script -t 2>~/upgrade-squeezestep.time -a ~/upgrade-squeezestep.script

script -t 2>~/upgrade-squeezestep.time -a ~/upgrade-squeezestep.script

First you should update your running system:

1
aptitude update && aptitude dist-upgrade

aptitude update && aptitude dist-upgrade

Check the package state:

1
dpkg --audit

dpkg --audit

It will show any packages which have a status of Half-Installed or Failed-Config, and those with any error status.

If you had a kernel upgrade please reboot. After successfully updates replace the sources from lenny to squeeze:

1
sed -i "s,lenny,squeeze,g" /etc/apt/sources.list

sed -i "s,lenny,squeeze,g" /etc/apt/sources.list

With the -d flag you can only start a download of all necessary packages.

1
aptitude update && aptitude -d dist-upgrade

aptitude update && aptitude -d dist-upgrade

If you are on a mailserver you should enable the queue mode and remove greylisting

1
greylistd-setup-exim4 remove

greylistd-setup-exim4 remove

Accept all these packages:

1
aptitude update && aptitude install keyring apt aptitude dpkg

aptitude update && aptitude install keyring apt aptitude dpkg

Now you can run the full upgrade:

1
aptitude dist-upgrade

aptitude dist-upgrade

Migrate to dependency based boot sequencing:
Example for a firewall init script:

1
2
3
4
5
6
7
8
### BEGIN INIT INFO
# Provides:          arno-iptables-firewall
# Required-Start:    $local_fs $remote_fs $network
# Required-Stop:     $local_fs $remote_fs $network
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Setup iptables firewall configuration
### END INIT INFO

### BEGIN INIT INFO # Provides: arno-iptables-firewall # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Default-Start: S # Default-Stop: 0 6 # Short-Description: Setup iptables firewall configuration ### END INIT INFO

Reconfigure it:

1
dpkg-reconfigure sysv-rc

dpkg-reconfigure sysv-rc

Enable greylisting again:

1
greylistd-setup-exim4 add && greylistd-setup-exim4 test && /etc/init.d/exim4 restart

greylistd-setup-exim4 add && greylistd-setup-exim4 test && /etc/init.d/exim4 restart

Filed Under: Bash, Debian, Kernel, Linux Tagged With: Debian squeeze, lenny to squeeze, Upgrade debian

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Comments

  1. freelancer says

    December 12, 2010 at 01:04

    thx

Leave a Reply

Your email address will not be published. Required fields are marked *