Comment 2 for bug 1607651

Revision history for this message
Robie Basak (racb) wrote : Re: package mysql-server-5.6 5.6.30-0ubuntu0.14.04.1 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I believe this problem comes from the following code in mysql-server-5.6.preinst:

# if there's a symlink, let's store where it's pointing, because otherwise
# it's going to be lost in some situations
for dir in DATADIR LOGDIR; do
    checkdir=`eval echo "$"$dir`
    if [ -L "$checkdir" ]; then
        mkdir -p "$UPGRADEDIR"
        cp -d "$checkdir" "$UPGRADEDIR/$dir.link"
    fi
done

It isn't obvious to me why this would fail in this case, however. Please can you report the output of "stat /var/lib/mysql", "stat /var/lib/mysql-upgrade", "stat /var/lib/mysql-upgrade/DATADIR.link" and "stat /var/lib/mysql-upgrade/DATADIR.link/mysql" and then change the bug status back to New?