Comment 2 for bug 1474212

Revision history for this message
itsadok (itsadok) wrote : Re: package mariadb-server-10.0 10.0.17-0ubuntu1 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1

The problem was an existing /var/lib/mysql-upgrade/DATADIR.link file, which caused the soft link backup mechanism to fail.

This can be fixed manually be deleting /var/lib/mysql-upgrade/DATADIR.link and running apt-get -f install.

To fix the preinst script, just change the line

cp -d "$checkdir" "$UPGRADEDIR/$dir.link"

to

cp -dT "$checkdir" "$UPGRADEDIR/$dir.link"