Bug #76716 Dependency to "killall" command missing
Submitted: 15 Apr 2015 18:09 Modified: 18 Jun 2015 13:44
Reporter: Christoph Mitasch Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.6.24-1ubuntu14.04 OS:Linux (Ubuntu 14.04)
Assigned to: CPU Architecture:Any

[15 Apr 2015 18:09] Christoph Mitasch
Description:
I've installed MySQL 5.6.24 via APT Repo in a Ubuntu 14.04 LXC container.

When I wanted to restart the Server, the init script gives the following error:
/etc/init.d/mysql: line 137: killall: command not found

How to repeat:
# /etc/init.d/mysql restart
 * Stopping MySQL Community Server 5.6.24
/etc/init.d/mysql: line 137: killall: command not found
............

Suggested fix:
fix the package dependency
[16 Apr 2015 7:10] MySQL Verification Team
Hello Christoph Mitasch,

Thank you for the report.

Thanks,
Umesh
[16 Apr 2015 7:10] MySQL Verification Team
// OS details

ushastry@ushastry:~/Downloads$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.10
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION="Ubuntu 14.10"
NAME="Ubuntu"
VERSION="14.10 (Utopic Unicorn)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.10"
VERSION_ID="14.10"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

-- sourcelist

deb http://repo.mysql.com/apt/ubuntu/ utopic mysql-apt-config
deb http://repo.mysql.com/apt/ubuntu/ utopic mysql-5.6
deb http://repo.mysql.com/apt/ubuntu/ utopic connector-python-2.0
deb http://repo.mysql.com/apt/ubuntu/ utopic mysql-utilities-1.5
deb-src http://repo.mysql.com/apt/ubuntu/ utopic mysql-5.6

ushastry@ushastry:~/Downloads$ sudo dpkg -l|grep -i mysql
ii  libdbd-mysql-perl                                    4.028-2                                  amd64        Perl5 database interface to the MySQL database
ii  libmysqlclient18:amd64                               5.5.40-0ubuntu1                          amd64        MySQL database client library
ii  libmysqlcppconn7                                     1.1.3-5                                  amd64        MySQL Connector for C++ (library)
ii  mysql-apt-config                                     0.3.4-2ubuntu14.10                       all          Auto configuration for MySQL APT Repo.
ii  mysql-client                                         5.6.24-1ubuntu14.10                      amd64        MySQL Client meta package depending on latest version
ii  mysql-common                                         5.6.24-1ubuntu14.10                      amd64        MySQL Common
ii  mysql-community-client                               5.6.24-1ubuntu14.10                      amd64        MySQL Client
ii  mysql-community-server                               5.6.24-1ubuntu14.10                      amd64        MySQL Server
ii  mysql-server                                         5.6.24-1ubuntu14.10                      amd64        MySQL Server meta package depending on latest version
ii  mysql-utilities                                      1.3.5-2                                  all          collection of scripts for managing MySQL servers
ii  mysql-workbench                                      6.1.7+dfsg-1                             amd64        MySQL Workbench - a visual database modeling, administration and queuing tool
ii  mysql-workbench-community                            6.2.5-1ubu1410                           amd64        MySQL Workbench
ii  mysql-workbench-data                                 6.1.7+dfsg-1                             all          MySQL Workbench -- architecture independent data
ii  python-mysql.connector                               1.2.2-1                                  all          pure Python implementation of MySQL Client/Server protocol

// Check if mysqld is running
ushastry@ushastry:~/Downloads$ sudo service mysql status
mysql: unrecognized service

// Confirm that killall is missing

ushastry@ushastry:~/Downloads$ killall mysqld
The program 'killall' is currently not installed. You can install it by typing:
sudo apt-get install psmisc

// install mysqld using apt repo
ushastry@ushastry:~/Downloads$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  mysql-client mysql-community-client mysql-community-server
The following packages will be REMOVED:
  mysql-client-5.5 mysql-client-core-5.5 mysql-server-core-5.5
The following NEW packages will be installed:
  mysql-client mysql-community-client mysql-community-server mysql-server
0 upgraded, 4 newly installed, 3 to remove and 253 not upgraded.
Need to get 22.4 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://repo.mysql.com/apt/ubuntu/ utopic/mysql-5.6 mysql-community-client amd64 5.6.24-1ubuntu14.10 [8,691 kB]
Get:2 http://repo.mysql.com/apt/ubuntu/ utopic/mysql-5.6 mysql-community-server amd64 5.6.24-1ubuntu14.10 [13.7 MB]                                                      
Get:3 http://repo.mysql.com/apt/ubuntu/ utopic/mysql-5.6 mysql-client amd64 5.6.24-1ubuntu14.10 [11.5 kB]                                                                
Get:4 http://repo.mysql.com/apt/ubuntu/ utopic/mysql-5.6 mysql-server amd64 5.6.24-1ubuntu14.10 [11.5 kB]                                                                
Fetched 22.4 MB in 1min 19s (281 kB/s)                                                                                                                                   
Preconfiguring packages ...
dpkg: mysql-client-5.5: dependency problems, but removing anyway as you requested:
 mysql-workbench depends on virtual-mysql-client; however:
  Package virtual-mysql-client is not installed.
  Package mysql-client-5.5 which provides virtual-mysql-client is to be removed.

(Reading database ... 169931 files and directories currently installed.)
Removing mysql-client-5.5 (5.5.41-0ubuntu0.14.10.1) ...
Removing mysql-client-core-5.5 (5.5.40-0ubuntu1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Selecting previously unselected package mysql-community-client.
(Reading database ... 169875 files and directories currently installed.)
Preparing to unpack .../mysql-community-client_5.6.24-1ubuntu14.10_amd64.deb ...
Unpacking mysql-community-client (5.6.24-1ubuntu14.10) ...
Processing triggers for man-db (2.7.0.2-2) ...
(Reading database ... 169920 files and directories currently installed.)
Removing mysql-server-core-5.5 (5.5.41-0ubuntu0.14.10.1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Selecting previously unselected package mysql-community-server.
(Reading database ... 169906 files and directories currently installed.)
Preparing to unpack .../mysql-community-server_5.6.24-1ubuntu14.10_amd64.deb ...
Unpacking mysql-community-server (5.6.24-1ubuntu14.10) ...
Selecting previously unselected package mysql-client.
Preparing to unpack .../mysql-client_5.6.24-1ubuntu14.10_amd64.deb ...
Unpacking mysql-client (5.6.24-1ubuntu14.10) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.6.24-1ubuntu14.10_amd64.deb ...
Unpacking mysql-server (5.6.24-1ubuntu14.10) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.7.0.2-2) ...
Setting up mysql-community-client (5.6.24-1ubuntu14.10) ...
Setting up mysql-community-server (5.6.24-1ubuntu14.10) ...
2015-04-16 12:30:47 0 [Note] mysqld (mysqld 5.6.24) starting as process 7793 ...
No directory, logging in with HOME=/
......
 * MySQL Community Server 5.6.24 is started
Setting up mysql-client (5.6.24-1ubuntu14.10) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mysql-server (5.6.24-1ubuntu14.10) ...

// Confirm mysqld status
ushastry@ushastry:~/Downloads$ sudo service mysql status
 * MySQL Community Server 5.6.24 is running
 
// try to restart mysqld

ushastry@ushastry:~/Downloads$ /etc/init.d/mysql restart
 * Stopping MySQL Community Server 5.6.24
/etc/init.d/mysql: line 137: killall: command not found
................
 * Attempt to shutdown MySQL Community Server 5.6.24 timed out
 * Re-starting MySQL Community Server 5.6.24
 * A MySQL Server is already started
[18 Jun 2015 13:44] Paul DuBois
Noted in 5.6.26, 5.7.8, 5.8.0 changelogs.

Ubuntu packages were missing dependencies for killall and psmisc.