Minor postfix upgrade errors on gusty (fix included)

Quite strange today, I’m using basic ubuntu gutsy repositories and got an error performing the daily upgrade. I’m use to doing sudo aptitude full-upgrade, and it did not run to the end. I forgot to get the full log saved somewhere, but here is what I searched for:

fatal: /etc/postfix/postfix-script: No such file or directory

The fix is in the following launchpad bug: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/42947

sudo dpkg --remove postfix
sudo dpkg --purge postfix

Then postfix can be installed again:

sudo aptitude install postfix

Unpacking postfix (from .../postfix_2.4.5-3build1_i386.deb) ...
Setting up postfix (2.4.5-3build1) ...
Adding group `postfix' (GID 122) ...
Done.
Adding system user `postfix' (UID 114) ...
Adding new user `postfix' (UID 114) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 123) ...
Done.

Postfix was not set up.  Start with 
  cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
.  If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Processing triggers for libc6 ...
ldconfig deferred processing now taking place

After postfix was reinstalled, the upgrade could run again.

Medibuntu: non-free-codecs for gutsy

Please see this article for hardy repositories and procedure, thanks :)

The non-free codecs distributed by Medibuntu now come to a single metapackage: non-free-codecs. The proper package matching the architecture will be installed (please see the Launchpad bug report below).

Just add Medibuntu repository to your sources.list:

# Medibuntu.
deb http://packages.medibuntu.org/ gutsy free non-free

Add the key to your keyring, reload the sources.list file and install the package:

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
sudo apt-get install non-free-codecs

Note1: I use aptitude. Please either use apt-get or aptitude, but do not mix the two. I’m giving here the code recommended in the Ubuntu doc, aptitude users will find their way around.
Note2: Once I install a package of interest from a third party repository, I comment the repository line in the sources.list file, and do not perform regular updates/upgrades with it.

~ $ sudo aptitude show non-free-codecs
Package: non-free-codecs
New: yes
State: installed
Automatically installed: yes
Version: 1.1
Priority: extra
Section: non-free/metapackages
Maintainer: Medibuntu Packaging Team <admin@lists.medibuntu.org>
Uncompressed Size: 32.8k
Depends: w32codecs
Description: Non-free codecs
 This package depends on the binaries codecs package matching your architecture
 (w32codecs for i386, w64codecs for amd64 and ppc-codecs for powerpc systems). 
 
 It can be safely removed.

I suppose the Medibuntu doc page will be updated when gutsy is out ;)

Reference

LP bug
Edit: adding a link to mr_pouit’s blog post