Public bug reported:

I use symbolic link on other disk partition for DB:
service mysql stop
# move /var/lib/mysql to /mnt/mysql
ln -S /mnt/mysql /var/lib/mysql
echo "alias /var/lib/mysql/ -> /mnt/mysql/," >> /etc/apparmor.d/tunables/alias
/etc/init.d/apparmor reload
service mysql start

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.12-0ubuntu1.1
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Fri Jul 22 10:27:48 2016
DpkgTerminalLog:
 Preparing to unpack .../mysql-server-5.7_5.7.13-0ubuntu0.16.04.2_amd64.deb ...
 cp: невозможно перезаписать каталог 
'/var/lib/mysql-upgrade/DATADIR.link/mysql' файлом, не являющимся каталогом
 dpkg: error processing archive 
/var/cache/apt/archives/mysql-server-5.7_5.7.13-0ubuntu0.16.04.2_amd64.deb 
(--unpack):
  subprocess new pre-installation script returned error exit status 1
DuplicateSignature:
 package:mysql-server-5.7:5.7.12-0ubuntu1.1
 Preparing to unpack .../mysql-server-5.7_5.7.13-0ubuntu0.16.04.2_amd64.deb ...
 cp: невозможно перезаписать каталог 
'/var/lib/mysql-upgrade/DATADIR.link/mysql' файлом, не являющимся каталогом
 dpkg: error processing archive 
/var/cache/apt/archives/mysql-server-5.7_5.7.13-0ubuntu0.16.04.2_amd64.deb 
(--unpack):
  subprocess new pre-installation script returned error exit status 1
ErrorMessage: subprocess new pre-installation script returned error exit status 
1
InstallationDate: Installed on 2015-09-25 (300 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
Logs.var.log.daemon.log:
 
MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet     = 16M
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic 
root=UUID=d8ad0062-e5ab-498a-a725-ce813eae29dd ro quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt  1.2.12~ubuntu16.04.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.12-0ubuntu1.1 failed to install/upgrade: 
subprocess new pre-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2016-04-27 (85 days ago)
modified.conffile..etc.mysql.mysql.conf.d.mysqld.cnf: [modified]
mtime.conffile..etc.mysql.mysql.conf.d.mysqld.cnf: 2016-04-27T10:55:49.850928

** Affects: mysql-5.7 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1605523

Title:
  package mysql-server-5.7 5.7.12-0ubuntu1.1 failed to install/upgrade:
  subprocess new pre-installation script returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1605523/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to