04.04.2014 14:15

Debian 6 squeeze to 7 wheezy

Debian release names have somehow too many "e" in the names, so I sometimes confuse them. But as debian 6 EOL is getting closer, it is time to upgrade to 7. Here is a few notes that may come handy.


Update to grub2 is probably automatic, if you still have grub1 or grub2 only as an alternative, you should rather install grub2 package in squeeze, migrate configuration (should be done automatically) and start upgrade-grub-from-legacy before upgrade.


Switch your fstab to UUID, the wheezy installer will complain about it anyway. While /dev/sdX was working for many years, kernel devs have no other option than consider them not persistent - they do change on reboot with e.g. usb mass storage devices attached.


iptables deprecates for a long time a structure

--option !


! --option

Be carefull to reformat your iptable rules before upgrade otherwise your iptables rules may not load.

E.g. this one I am not sure is the same thing.

--tcp-flags ! SYN,ACK,RST SYN

! --tcp-flags SYN,ACK,RST SYN 

iptables version string

I am not sure about this, but it looks like the iptables version string was shorten from 30 to 29 chars only. Again this may prevent your iptables rules to load.


Wheezy does not have a roundcube with sqlite support (roundcube is missing it). If you used sqlite prepare for the migration of roundcube settings saved in sqlite. I had a log of troubles with this as upgrade was complaining about

E: Could not perform immediate configuration on 'package'.


The advise in debian release notes did not help, I was not able to overcome this other way than uninstalling roundcube before upgrade. After upgrade install mysql-server, reinstall and reconfigure roundcube-core to set up mysql database. MIgrate the roundcube sqlite to mysql if necessary



While aptitude is not a recommended tool for deb package management for some time, you may have it installed too. It looks to me like the dependencies have exploded in wheezy for aptitude. I may be wrong, but removing aptitude saved me 200MB of new space required.


Dovecot configuration changed completely. There is however good migration documentation, mostly it'll be enought to do doveconf -n.


Wheeze changed the logging daemon from syslogd to rsyslog. Rsyslog is able to "consume" same logging rules as syslogd, but there is no migration and rsyslog is only logging its "defaults" not reading old syslogd confs.


It is not necessary any more to configure explicitly the VLANs in interfaces with pre-up, post-up and vconfig (it is probably also deprecated for some time, but in wheezy it will cause the VLANs to not be configured at all.


Wheezy vsftpd is so secure, it will not run with writeable user homes and directive chroot_local_user. It just prints

500 OOPS vsftpd: refusing to run with writable root inside chroot()

you can either reformat your complete ftp directories to have separate two leves of subdirectories in user homes for ftp or you have to use a third party patched vsftpd.



Popular network ethernet card Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Expres needs a firmware-linux-non-free package from non-free repository to install a tg3 driver firmware. Non-free may not be a part of normal sources.list for apt.

Email comment