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?
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 $dir.link"
# 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/
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?