error while instaling mysql

Asked by lovi

I am a beginner please guide :

Setting up cups-daemon (2.1.0-4ubuntu3) ...
AppArmor parser error for /etc/apparmor.d/usr.sbin.cupsd in /etc/apparmor.d/usr.sbin.cupsd at line 145: syntax error, unexpected TOK_CONDLISTID, expecting TOK_MODE
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cron'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `cron'
insserv: warning: script 'friendly-recovery' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `friendly-recovery'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `friendly-recovery'
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
start: Job failed to start
invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing package cups-daemon (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up mysql-server-5.6 (5.6.28-0ubuntu0.14.04.1) ...
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
2016-03-13 19:51:29 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-03-13 19:51:29 0 [Note] /usr/sbin/mysqld (mysqld 5.6.28-0ubuntu0.14.04.1) starting as process 26225 ...
2016-03-13 19:51:29 26225 [Note] Plugin 'FEDERATED' is disabled.
2016-03-13 19:51:29 26225 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-03-13 19:51:29 26225 [Note] InnoDB: The InnoDB memory heap is disabled
2016-03-13 19:51:29 26225 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-13 19:51:29 26225 [Note] InnoDB: Memory barrier is not used
2016-03-13 19:51:29 26225 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-03-13 19:51:29 26225 [Note] InnoDB: Using Linux native AIO
2016-03-13 19:51:29 26225 [Note] InnoDB: Using CPU crc32 instructions
2016-03-13 19:51:29 26225 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-03-13 19:51:29 26225 [Note] InnoDB: Completed initialization of buffer pool
2016-03-13 19:51:29 26225 [Note] InnoDB: Highest supported file format is Barracuda.
2016-03-13 19:51:29 26225 [Note] InnoDB: 128 rollback segment(s) are active.
2016-03-13 19:51:29 26225 [Note] InnoDB: Waiting for purge to start
2016-03-13 19:51:29 26225 [Note] InnoDB: 5.6.28 started; log sequence number 1626343
2016-03-13 19:51:29 26225 [Note] Binlog end
2016-03-13 19:51:29 26225 [Note] InnoDB: FTS optimize thread exiting.
2016-03-13 19:51:29 26225 [Note] InnoDB: Starting shutdown...
2016-03-13 19:51:31 26225 [Note] InnoDB: Shutdown completed; log sequence number 1626353
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of cups-core-drivers:
 cups-core-drivers depends on cups-daemon (>= 2.1.0-4ubuntu3); however:
  Package cups-daemon is not configured yet.

dpkg: error processing package cups-core-drivers (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of cups:
 cups depends on cups-core-drivers (>= 2.1.0-4ubuntu3); however:
  Package cups-core-drivers is not configured yet.
 cups depends on cups-daemon (>= 2.1.0-4ubuntu3); however:
  Package cups-daemon is not configured yet.

dpkg: error processing package cups (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.6; however:
  Package mysql-server-5.6 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu mysql-5.6 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy cups-core-drivers cups-daemon cups mysql-server mysql-server-5.6

Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

"/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found"

It seems that some core packages (systemd or upstart) are not correctly installed.

Please provide (in addition to actionparnip's commands) also the output of

dpkg -l | grep systemd
dpkg -l | grep upstart

Can you help with this problem?

Provide an answer of your own, or ask lovi for more information if necessary.

To post a message you must log in.