Skip to content

Instantly share code, notes, and snippets.

@joshbenham
Created April 3, 2017 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshbenham/bdbbea1bd7376b7c776bfe7299570f5a to your computer and use it in GitHub Desktop.
Save joshbenham/bdbbea1bd7376b7c776bfe7299570f5a to your computer and use it in GitHub Desktop.
josh at ezgaroth in ~
$ ps aux | grep -i mysql
josh 21050 0.0 0.0 14236 944 pts/1 S+ 13:25 0:00 grep --color=auto -i mysql
josh at ezgaroth in ~
$ sudo apt install mariadb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
galera-3 iproute libdbd-mysql-perl libdbi-perl libjemalloc1 libmariadbclient18 libmysqlclient18 libmysqlclient20 libreadline5 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 mysql-common
Suggested packages:
libmldbm-perl libnet-daemon-perl libsql-statement-perl mailx mariadb-test tinyca
The following NEW packages will be installed:
galera-3 iproute libdbd-mysql-perl libdbi-perl libjemalloc1 libmariadbclient18 libmysqlclient18 libmysqlclient20 libreadline5 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 mysql-common
0 to upgrade, 16 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/22.6 MB of archives.
After this operation, 192 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 249702 files and directories currently installed.)
Preparing to unpack .../00-mysql-common_10.1.22+maria-1~yakkety_all.deb ...
Unpacking mysql-common (10.1.22+maria-1~yakkety) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../01-mariadb-common_10.1.22+maria-1~yakkety_all.deb ...
Unpacking mariadb-common (10.1.22+maria-1~yakkety) ...
Selecting previously unselected package galera-3.
Preparing to unpack .../02-galera-3_25.3.19-yakkety_amd64.deb ...
Unpacking galera-3 (25.3.19-yakkety) ...
Selecting previously unselected package iproute.
Preparing to unpack .../03-iproute_1%3a4.3.0-1ubuntu3_all.deb ...
Unpacking iproute (1:4.3.0-1ubuntu3) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../04-libdbi-perl_1.636-1_amd64.deb ...
Unpacking libdbi-perl (1.636-1) ...
Selecting previously unselected package libmysqlclient20:amd64.
Preparing to unpack .../05-libmysqlclient20_5.7.17-0ubuntu0.16.10.1_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.17-0ubuntu0.16.10.1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../06-libdbd-mysql-perl_4.035-1ubuntu0.1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.035-1ubuntu0.1) ...
Selecting previously unselected package libmysqlclient18.
Preparing to unpack .../07-libmysqlclient18_10.1.22+maria-1~yakkety_amd64.deb ...
Unpacking libmysqlclient18 (10.1.22+maria-1~yakkety) ...
Selecting previously unselected package libmariadbclient18.
Preparing to unpack .../08-libmariadbclient18_10.1.22+maria-1~yakkety_amd64.deb ...
Unpacking libmariadbclient18 (10.1.22+maria-1~yakkety) ...
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../09-libreadline5_5.2+dfsg-3build1_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-3build1) ...
Selecting previously unselected package mariadb-client-core-10.1.
Preparing to unpack .../10-mariadb-client-core-10.1_10.1.22+maria-1~yakkety_amd64.deb ...
Unpacking mariadb-client-core-10.1 (10.1.22+maria-1~yakkety) ...
Selecting previously unselected package mariadb-client-10.1.
Preparing to unpack .../11-mariadb-client-10.1_10.1.22+maria-1~yakkety_amd64.deb ...
Unpacking mariadb-client-10.1 (10.1.22+maria-1~yakkety) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../12-libjemalloc1_3.6.0-9ubuntu1_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-9ubuntu1) ...
Selecting previously unselected package mariadb-server-core-10.1.
Preparing to unpack .../13-mariadb-server-core-10.1_10.1.22+maria-1~yakkety_amd64.deb ...
Unpacking mariadb-server-core-10.1 (10.1.22+maria-1~yakkety) ...
Setting up mysql-common (10.1.22+maria-1~yakkety) ...
Setting up mariadb-common (10.1.22+maria-1~yakkety) ...
(Reading database ... 250053 files and directories currently installed.)
Preparing to unpack .../0-mariadb-server-10.1_10.1.22+maria-1~yakkety_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /tmp/apt-dpkg-install-e8Pp31/0-mariadb-server-10.1_10.1.22+maria-1~yakkety_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package mariadb-server.
Preparing to unpack .../1-mariadb-server_10.1.22+maria-1~yakkety_all.deb ...
Unpacking mariadb-server (10.1.22+maria-1~yakkety) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-e8Pp31/0-mariadb-server-10.1_10.1.22+maria-1~yakkety_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment