Comment 7 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

Steps to reproduce (nearly) my case:

0. install ubuntu 14.04 2 server, install just the base
1. edit /etc/apt/sources.list, comment out the next two lines:
 deb http://security.ubuntu.com/ubuntu trusty-security universe
 deb http://archive.ubuntu.com/ubuntu trusty-updates universe
2. apt-get update
3. apt-get install mariadb-server mariadb-client (install an older version, see later), add a root password and wait until installation is complete
4. undo step 1 (remove comments before the two lines)
5. apt-get update
6. apt-get upgrade shows that mariadb-server mariadb-server-5.5 mariadb-client-5.5 mariadb-client packages under "have been kept back". Choose yes or no, it has no effect the next step (in my case these packages were updated automatically)
7. apt-get install mariadb-server mariadb-server-5.5 mariadb-client-5.5 mariadb-client and choose no
8. and this breaks the package 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

Comments
In step 3 the version (5.5.36-1) is not the 5.5.41-1 what was installed in my case, but I cannot reproduce that state and this way will break the package manager too

Step 6 shows some interesting things, some mariadb package (for example mariadb-client-core-5.5 or mariadb-common) can updated automatically to version 5.5.43-1, but 4 mariadb packages "have been kept back". I do not think it is good...