Ubuntu mariadb-client-5.5.27 upgrade leaves MariaDB unstartable if mytop package installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
New
|
Undecided
|
Sergei Golubchik |
Bug Description
This bug blocks installation/
This means if package mytop is installed and mariadb-test is installed, an upgrade completely
breaks MariaDB upgrade so files are partially installed and database will not start.
The quick fix is to issue 'dpkg --purge mytop' at the command line, then go through the
install/upgrade procedure again.
See log below for details.
dpkg: error processing /var/cache/
trying to overwrite '/usr/bin/mytop', which is also in package mytop 1.6-6
This error is thrown when the mytop package has already been installed.
Suggest adding conflict resolution to MariaDB packaging which tests for the existence of /usr/bin/mytop
and if it exists execute 'dpkg -S /usr/bin/mytop' to determine the package owning /usr/bin/mytop, then
direct the user to manually deinstall this package (dpkg --purge mytop) before proceeding.
_______
net1# pkg-update
+ apt-get -qq update
+ aptitude upgrade
The following packages will be upgraded:
libmariadbcli
mariadb-
mariadb-test-5.5 mysql-common
14 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 97.3 MB of archives. After unpacking 1,671 kB will be used.
Do you want to continue? [Y/n/?]
Get: 1 http://
Get: 2 http://
Get: 3 http://
Get: 4 http://
Get: 5 http://
Get: 6 http://
Get: 7 http://
Get: 8 http://
Get: 9 http://
Get: 10 http://
Get: 11 http://
Get: 12 http://
Get: 13 http://
Get: 14 http://
Fetched 97.3 MB in 28s (3,382 kB/s)
Preconfiguring packages ...
(Reading database ... 132154 files and directories currently installed.)
Preparing to replace mariadb-server 5.5.25-
Unpacking replacement mariadb-server ...
Preparing to replace mariadb-test 5.5.25-
Unpacking replacement mariadb-test ...
Preparing to replace mariadb-client 5.5.25-
Unpacking replacement mariadb-client ...
Preparing to replace mysql-common 5.5.25-
Unpacking replacement mysql-common ...
Preparing to replace mariadb-common 5.5.25-
Unpacking replacement mariadb-common ...
Preparing to replace libmariadbclient18 5.5.25-
Unpacking replacement libmariadbclient18 ...
Preparing to replace libmysqlclient18 5.5.25-
Unpacking replacement libmysqlclient18 ...
Preparing to replace mariadb-
Unpacking replacement mariadb-
Preparing to replace mariadb-test-5.5 5.5.25-
Unpacking replacement mariadb-test-5.5 ...
Preparing to replace mariadb-client-5.5 5.5.25-
Unpacking replacement mariadb-client-5.5 ...
dpkg: error processing /var/cache/
trying to overwrite '/usr/bin/mytop', which is also in package mytop 1.6-6
No apport report written because MaxReports is reached already
Preparing to replace mariadb-
Unpacking replacement mariadb-
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mariadb-server (5.5.27-
Setting up mariadb-client (5.5.27-
dpkg: dependency problems prevent configuration of mariadb-test-5.5:
mariadb-test-5.5 depends on mariadb-server-5.5 (= 5.5.27-
Version of mariadb-server-5.5 on system is 5.5.25-
mariadb-test-5.5 depends on mariadb-client-5.5 (= 5.5.27-
Version of mariadb-client-5.5 on system is 5.5.25-
dpkg: error processing mariadb-test-5.5 (--configure):
dependency problems - leaving unconfigured
Setting up mysql-common (5.5.27-
Installing new version of config file /etc/mysql/my.cnf ...
Setting up mariadb-common (5.5.27-
dpkg: dependency problems prevent configuration of mariadb-test:
mariadb-test depends on mariadb-test-5.5; however:
Package mariadb-test-5.5 is not configured yet.
dpkg: error processing mariadb-test (--configure):
dependency problems - leaving unconfigured
Setting up libmysqlclient18 (5.5.27-
Setting up libmariadbclient18 (5.5.27-
Setting up mariadb-
Setting up mariadb-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
mariadb-test-5.5
mariadb-test
Current status: 1 broken [+1], 4 updates [-10].
+ apt-get -y autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
+ apt-get -y autoremove
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-test-5.5 : Depends: mariadb-server-5.5 (= 5.5.27-
E: Unmet dependencies. Try using -f.
Related branches
summary: |
- Ubuntu packaging mariadb-client-5.5.27 and mytop conflic + Ubuntu nmariadb-client-5.5.27 upgrade leaves MariaDB unstartable |
summary: |
- Ubuntu nmariadb-client-5.5.27 upgrade leaves MariaDB unstartable + Ubuntu mariadb-client-5.5.27 upgrade leaves MariaDB unstartable |
summary: |
- Ubuntu mariadb-client-5.5.27 upgrade leaves MariaDB unstartable + Ubuntu mariadb-client-5.5.27 upgrade leaves MariaDB unstartable if mytop + package installed |
Hi David,
Was it different with 5.5.25, or did you install the mytop package when 5.5.25 had already been installed?