mysql-server-5.6.postinst fails with: "cp: impossible d'écraser le répertoire «/var/lib/mysql-upgrade/DATADIR.link/mysql» par un non répertoire"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
aucune application en marche, mise à jour des paquets trop importante avec proposition de le faire en plusieurs fois
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: mysql-server-5.6 5.6.30-
ProcVersionSign
Uname: Linux 3.19.0-
ApportVersion: 2.14.1-0ubuntu3.21
Architecture: amd64
Date: Fri Jul 29 08:47:16 2016
DpkgTerminalLog:
Preparing to unpack .../mysql-
mysql stop/waiting
cp: impossible d'écraser le répertoire «/var/lib/
dpkg: error processing archive /var/cache/
subprocess new pre-installation script returned error exit status 1
DuplicateSignature: package:
ErrorMessage: subprocess new pre-installation script returned error exit status 1
InstallationDate: Installed on 2016-02-09 (170 days ago)
InstallationMedia: Ubuntu-Studio 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
RelatedPackageV
dpkg 1.17.5ubuntu5.7
apt 1.0.1ubuntu2.14
SourcePackage: mysql-5.6
Title: package mysql-server-5.6 5.6.30-
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
tags: | removed: need-duplicate-check |
tags: | added: triage |
Changed in mysql-5.6 (Ubuntu): | |
status: | Incomplete → New |
tags: | added: mysql-alternate-datadir |
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?