Comment 4 for bug 1457356

Revision history for this message
Tamás Baráth (tamas-barath) wrote : Re: package mariadb-server-5.5 5.5.41-1ubuntu0.14.04.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Ubuntu 14.04 1, but the new package is ended with 14.04.2 (maybe it is important).

A yes/no dialog appeared during the upgrade with a message that it wanted to convert something. But I thougt it is a minor change and I did not want it, so I pressed no.

The end of apt message:
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server-5.5_5.5.43-1ubuntu0.14.04.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

I tried to rerun:
 # apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 mariadb-client-5.5 : Breaks: mariadb-server-5.5 (< 5.5.43-1ubuntu0.14.04.2) but 5.5.41-1ubuntu0.14.04.1 is installed
 mariadb-server : Depends: mariadb-server-5.5 (>= 5.5.43-1ubuntu0.14.04.2) but 5.5.41-1ubuntu0.14.04.1 is installed
E: Unmet dependencies. Try using -f.

Maybe important lines from term.log:
Preparing to unpack .../mariadb-client-core-5.5_5.5.43-1ubuntu0.14.04.2_amd64.deb ...
Unpacking mariadb-client-core-5.5 (5.5.43-1ubuntu0.14.04.2) over (5.5.41-1ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up mariadb-common (5.5.43-1ubuntu0.14.04.2) ...
(Reading database ... 131104 files and directories currently installed.)
Preparing to unpack .../mariadb-server-5.5_5.5.43-1ubuntu0.14.04.2_amd64.deb ...
 * Stopping MariaDB database server mysqld [ OK ]
Aborting MariaDB installation.
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-5.5_5.5.43-1ubuntu0.14.04.2_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
 * Stopping MariaDB database server mysqld [ OK ]
 * Starting MariaDB database server mysqld [ OK ]
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
dpkg: considering deconfiguration of mariadb-server-5.5, which would be broken by installation of mariadb-client-5.5 ...
dpkg: yes, will deconfigure mariadb-server-5.5 (broken by mariadb-client-5.5)
Preparing to unpack .../mariadb-client-5.5_5.5.43-1ubuntu0.14.04.2_amd64.deb ...
De-configuring mariadb-server-5.5 (5.5.41-1ubuntu0.14.04.1) ...
 * Stopping MariaDB database server mysqld ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)