Installing mytop un Ubuntu 18.04.1 LTS uninstalls MariaDB

Bug #1815199 reported by Igor Benko
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
mytop (Debian)
Fix Released
Unknown
mytop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This is the output of the "apt install mytop":
```
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  galera-3 libaio1 mariadb-client-core-10.1 mariadb-common mariadb-server-core-10.1 socat
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  mariadb-client-10.1 mariadb-server mariadb-server-10.1
The following NEW packages will be installed:
  mytop
0 upgraded, 1 newly installed, 3 to remove and 127 not upgraded.
Need to get 31.1 kB of archives.
After this operation, 121 MB disk space will be freed.
Do you want to continue? [Y/n]
```

Package version:
```
mytop:
  Installed: (none)
  Candidate: 1.9.1-4
  Version table:
     1.9.1-4 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
```

Expected result: mytop package is installed

What happened instead: MariaDB was uninstalled

Changed in mytop (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mytop (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Ramsey (meramsey) wrote :
Download full text (7.4 KiB)

this also affects Ubuntu 20.x

```
root@li45-90:~# apt-get install -y mytop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  galera-4 libcgi-fast-perl libcgi-pm-perl libdbd-mariadb-perl libfcgi-perl libhtml-template-perl libmariadb3 libpmem1 mariadb-client-core-10.6 mariadb-common mariadb-server-core-10.6
  socat
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libconfig-inifiles-perl libdbd-mysql-perl
The following packages will be REMOVED:
  mariadb-client mariadb-client-10.6 mariadb-server mariadb-server-10.6
The following NEW packages will be installed:
  libconfig-inifiles-perl libdbd-mysql-perl mytop
0 upgraded, 3 newly installed, 4 to remove and 44 not upgraded.
Need to get 155 kB of archives.
After this operation, 96.6 MB disk space will be freed.
Get:1 http://mirrors.linode.com/ubuntu focal/universe amd64 libdbd-mysql-perl amd64 4.050-3 [82.8 kB]
Get:2 http://mirrors.linode.com/ubuntu focal/main amd64 libconfig-inifiles-perl all 3.000002-1 [40.6 kB]
Get:3 http://mirrors.linode.com/ubuntu focal/universe amd64 mytop all 1.9.1-4 [31.1 kB]
Fetched 155 kB in 0s (5,743 kB/s)
(Reading database ... 127585 files and directories currently installed.)
Removing mariadb-client (1:10.6.5+maria~focal) ...
Removing mariadb-server (1:10.6.5+maria~focal) ...
Removing mariadb-server-10.6 (1:10.6.5+maria~focal) ...
Removing mariadb-client-10.6 (1:10.6.5+maria~focal) ...
^CW: Operation was interrupted before it could finish
W: APT had planned for dpkg to do more than it reported back (8 vs 21).
   Affected packages: libconfig-inifiles-perl:amd64 libdbd-mysql-perl:amd64 mytop:amd64
E: Problem executing scripts DPkg::Post-Invoke 'bash /usr/local/bin/wp-status 2>/dev/null || true '
E: Sub-process returned an error code
root@li45-90:~# apt install -y mariadb-client mariadb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  mariadb-client-10.6 mariadb-server-10.6
Suggested packages:
  mailx mariadb-test
The following NEW packages will be installed:
  mariadb-client mariadb-client-10.6 mariadb-server mariadb-server-10.6
0 upgraded, 4 newly installed, 0 to remove and 44 not upgraded.
Need to get 0 B/5,711 kB of archives.
After this operation, 97.1 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package mariadb-client-10.6.
(Reading database ... 127377 files and directories currently installed.)
Preparing to unpack .../mariadb-client-10.6_1%3a10.6.5+maria~focal_amd64.deb ...
Unpacking mariadb-client-10.6 (1:10.6.5+maria~focal) ...
Selecting previously unselected package mariadb-server-10.6.
Preparing to unpack .../mariadb-server-10.6_1%3a10.6.5+maria~focal_amd64.deb ...
/var/lib/mysql: found previous version 10.6
Unpacking mariadb-server-10.6 (1:10.6.5+maria~focal) ...
Selecting previously unselected package mariadb-client.
Preparing to unpack .../mariadb-client_1%3a10.6.5+maria~focal_all.deb ...
Unpacking mariadb-client (1:10.6.5+mar...

Read more...

Revision history for this message
twowheeler (cdhassell) wrote :

Confirming same result on 21.10. I installed the deb without looking closely at the output, and it immediately downed my server by uninstalling mariadb. WTF! When mytop is compiled from source, it runs without a problem.

Changed in mytop (Debian):
status: New → Fix Released
Revision history for this message
Vladimir (francofunghi) wrote :

Same issue Ubuntu 22

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.