[debian-mysql] Bug#851257: mariadb-server-10.1: fails to reinstall

Andreas Beckmann anbe at debian.org
Fri Jan 13 12:53:04 UTC 2017


Package: mariadb-server-10.1
Version: 10.1.20-3
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to reinstall
over an existing installation of the same version.

>From the attached log (scroll to the bottom...):

1m5.6s DEBUG: Starting command: ['chroot', '/srv/piuparts.debian.org/tmp/tmpSyjHYx', 'apt-get', '-y', 'install', '--reinstall', 'mariadb-server-10.1=10.1.20-3']
1m12.1s DUMP: 
  Reading package lists...
  Building dependency tree...
  Reading state information...
  debconf: delaying package configuration, since apt-utils is not installed
  0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
  Need to get 0 B/5226 kB of archives.
  After this operation, 0 B of additional disk space will be used.
  (Reading database ... 
(Reading database ... 9456 files and directories currently installed.)
  Preparing to unpack .../mariadb-server-10.1_10.1.20-3_amd64.deb ...
  invoke-rc.d: could not determine current runlevel
  Stopping MariaDB database server: mysqld.
  /var/lib/mysql: found previous version 10.1
  The file /var/lib/mysql/debian-10.1.flag indicates a
  version that cannot automatically be upgraded. Therefore the
  previous data directory will be renamed to /var/lib/mysql-10.1 and
  a new data directory will be initialized at /var/lib/mysql.
  Please manually export/import your data (e.g. with mysqldump) if needed.
  mv: cannot move '/var/lib/mysql' to '/var/lib/mysql-10.1/mysql': Directory not empty
  dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.1_10.1.20-3_amd64.deb (--unpack):
   subprocess new pre-installation script returned error exit status 1
  invoke-rc.d: could not determine current runlevel
  Stopping MariaDB database server: mysqld.
  invoke-rc.d: could not determine current runlevel
  Starting MariaDB database server: mysqld.
  Errors were encountered while processing:
   /var/cache/apt/archives/mariadb-server-10.1_10.1.20-3_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)
1m12.1s ERROR: Command failed (status=100): ['chroot', '/srv/piuparts.debian.org/tmp/tmpSyjHYx', 'apt-get', '-y', 'install', '--reinstall', 'mariadb-server-10.1=10.1.20-3']


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mariadb-server-10.1_10.1.20-3.log.gz
Type: application/gzip
Size: 8496 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20170113/82e434a4/attachment.bin>


More information about the pkg-mysql-maint mailing list