当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求助:ubuntu server 14.04 安装mysql-server 导致系统开关机命令“失踪"!
帖子发表于 : 2015-11-23 15:09 

注册: 2015-10-26 9:28
帖子: 1
系统: ubuntu;windows
送出感谢: 0 次
接收感谢: 0 次
我在vmware 11.0中安装ubuntu server 14.04,2核4G内存,磁盘分配按照系统默认的分配方式。
开机后只配置了apt,添加了163的源,启动了开机登录root
然后在使用apt-get安装mysql的时候出现了问题:
/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

然后检查了/sbin目录下的问题,发现halt、reboot、init、initctl、runlevel等和系统开关机的命令全部失踪了,但是多了upstart。无法关机,强制使用vmware关机之后无法启动,主要是找不到runlevel
在安装之前这些命令绝对存在,因为失败了很多次,特地在安装前进行尝试
之后我从别的安装成功的ubuntu server系统中(版本相同)拷贝了这些文件,这样开关机正常了,但是基本上所有的服务是启动不开的,例如rsyslog等。新用ubuntu server没多久,需要大神指导解决,感激不尽。
下面是安装mysql的过程:
root@sherlock:~# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dpkg init-system-helpers initramfs-tools initramfs-tools-bin libaio1
libalgorithm-c3-perl libapparmor-perl libcgi-fast-perl libcgi-pm-perl
libcgmanager0 libclass-c3-perl libclass-c3-xs-perl libcpan-meta-perl
libdata-optlist-perl libdata-section-perl libdbd-mysql-perl libdbi-perl
libfcgi-perl libhtml-template-perl liblocale-gettext-perl
libmodule-build-perl libmodule-signature-perl libmro-compat-perl
libmysqlclient18 libpackage-constants-perl libparams-util-perl
libpod-readme-perl libregexp-common-perl libselinux1
libsoftware-license-perl libsub-exporter-perl libsub-install-perl
libsub-name-perl libterm-readkey-perl libtext-charwidth-perl
libtext-iconv-perl libtext-soundex-perl libtext-template-perl lsb-base
mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-server-5.6
mysql-server-core-5.6 perl perl-base perl-modules rename upstart ureadahead
Suggested packages:
libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
libipc-sharedcache-perl mailx tinyca perl-doc libterm-readline-gnu-perl
libterm-readline-perl-perl libb-lint-perl libcpanplus-dist-build-perl
libcpanplus-perl libfile-checktree-perl liblog-message-perl
libobject-accessor-perl graphviz upstart-monitor
The following NEW packages will be installed:
libaio1 libalgorithm-c3-perl libcgi-fast-perl libcgi-pm-perl
libclass-c3-perl libclass-c3-xs-perl libcpan-meta-perl libdata-optlist-perl
libdata-section-perl libdbd-mysql-perl libdbi-perl libfcgi-perl
libhtml-template-perl libmodule-build-perl libmodule-signature-perl
libmro-compat-perl libmysqlclient18 libpackage-constants-perl
libparams-util-perl libpod-readme-perl libregexp-common-perl
libsoftware-license-perl libsub-exporter-perl libsub-install-perl
libterm-readkey-perl libtext-template-perl mysql-client-5.6
mysql-client-core-5.6 mysql-common mysql-server mysql-server-5.6
mysql-server-core-5.6 rename
The following packages will be upgraded:
dpkg init-system-helpers initramfs-tools initramfs-tools-bin
libapparmor-perl libcgmanager0 liblocale-gettext-perl libselinux1
libsub-name-perl libtext-charwidth-perl libtext-iconv-perl
libtext-soundex-perl lsb-base perl perl-base perl-modules upstart ureadahead
18 upgraded, 33 newly installed, 0 to remove and 348 not upgraded.
Need to get 31.9 MB of archives.
After this operation, 159 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Get:1 http://mirrors.163.com/ubuntu/ vivid/main libselinux1 amd64 2.3-2 [59.8 kB]
Get:2 http://mirrors.163.com/ubuntu/ vivid/main dpkg amd64 1.17.25ubuntu1 [2,220 kB]
Get:3 http://mirrors.163.com/ubuntu/ vivid/main perl-base amd64 5.20.2-2 [1,223 kB]
Get:4 http://mirrors.163.com/ubuntu/ vivid/main libcgmanager0 amd64 0.36-2ubuntu5 [35.5 kB]
Get:5 http://mirrors.163.com/ubuntu/ vivid/main initramfs-tools-bin amd64 0.103ubuntu15 [8,712 B]
Get:6 http://mirrors.163.com/ubuntu/ vivid/main initramfs-tools all 0.103ubuntu15 [44.9 kB]
Get:7 http://mirrors.163.com/ubuntu/ vivid-proposed/main upstart amd64 1.13.2-0ubuntu13.1 [398 kB]
Get:8 http://mirrors.163.com/ubuntu/ vivid/main init-system-helpers all 1.22ubuntu11 [14.1 kB]
Get:9 http://mirrors.163.com/ubuntu/ vivid/main ureadahead amd64 0.100.0-19 [20.2 kB]
Get:10 http://mirrors.163.com/ubuntu/ vivid/main perl amd64 5.20.2-2 [2,629 kB]
Get:11 http://mirrors.163.com/ubuntu/ vivid/main libapparmor-perl amd64 2.9.1-0ubuntu9 [29.2 kB]
Get:12 http://mirrors.163.com/ubuntu/ vivid/main libtext-soundex-perl amd64 3.4-1build2 [12.6 kB]
Get:13 http://mirrors.163.com/ubuntu/ vivid/main libtext-iconv-perl amd64 1.7-5build3 [14.0 kB]
Get:14 http://mirrors.163.com/ubuntu/ vivid/main libtext-charwidth-perl amd64 0.04-7build4 [10.2 kB]
Get:15 http://mirrors.163.com/ubuntu/ vivid/main libsub-name-perl amd64 0.12-1 [11.2 kB]
Get:16 http://mirrors.163.com/ubuntu/ vivid/main liblocale-gettext-perl amd64 1.05-8build1 [17.9 kB]
Get:17 http://mirrors.163.com/ubuntu/ vivid/main perl-modules all 5.20.2-2 [2,502 kB]
Get:18 http://mirrors.163.com/ubuntu/ vivid/main libaio1 amd64 0.3.110-1 [6,454 B]
Get:19 http://mirrors.163.com/ubuntu/ vivid-security/main mysql-common all 5.6.27-0ubuntu0.15.04.1 [14.8 kB]
Get:20 http://mirrors.163.com/ubuntu/ vivid-security/main libmysqlclient18 amd64 5.6.27-0ubuntu0.15.04.1 [698 kB]
Get:21 http://mirrors.163.com/ubuntu/ vivid/main libdbi-perl amd64 1.631-3build1 [770 kB]
Get:22 http://mirrors.163.com/ubuntu/ vivid/main lsb-base all 4.1+Debian11ubuntu8 [13.1 kB]
Get:23 http://mirrors.163.com/ubuntu/ vivid/main libdbd-mysql-perl amd64 4.028-2 [88.6 kB]
Get:24 http://mirrors.163.com/ubuntu/ vivid/main libterm-readkey-perl amd64 2.32-1build1 [25.0 kB]
Get:25 http://mirrors.163.com/ubuntu/ vivid-security/main mysql-client-core-5.6 amd64 5.6.27-0ubuntu0.15.04.1 [4,100 kB]
Get:26 http://mirrors.163.com/ubuntu/ vivid-security/main mysql-client-5.6 amd64 5.6.27-0ubuntu0.15.04.1 [5,354 kB]
Get:27 http://mirrors.163.com/ubuntu/ vivid-security/main mysql-server-core-5.6 amd64 5.6.27-0ubuntu0.15.04.1 [4,665 kB]
Get:28 http://mirrors.163.com/ubuntu/ vivid-security/main mysql-server-5.6 amd64 5.6.27-0ubuntu0.15.04.1 [5,770 kB]
Get:29 http://mirrors.163.com/ubuntu/ vivid/main libalgorithm-c3-perl all 0.09-1 [11.2 kB]
Get:30 http://mirrors.163.com/ubuntu/ vivid/main libcgi-pm-perl all 4.09-2 [181 kB]
Get:31 http://mirrors.163.com/ubuntu/ vivid/main libclass-c3-perl all 0.26-1 [20.2 kB]
Get:32 http://mirrors.163.com/ubuntu/ vivid/main libclass-c3-xs-perl amd64 0.13-2build1 [14.0 kB]
Get:33 http://mirrors.163.com/ubuntu/ vivid/main libcpan-meta-perl all 2.142690-1 [118 kB]
Get:34 http://mirrors.163.com/ubuntu/ vivid/main libparams-util-perl amd64 1.07-2build1 [20.3 kB]
Get:35 http://mirrors.163.com/ubuntu/ vivid/main libsub-install-perl all 0.928-1 [10.5 kB]
Get:36 http://mirrors.163.com/ubuntu/ vivid/main libdata-optlist-perl all 0.109-1 [9,920 B]
Get:37 http://mirrors.163.com/ubuntu/ vivid/main libmro-compat-perl all 0.12-1 [12.2 kB]
Get:38 http://mirrors.163.com/ubuntu/ vivid/main libsub-exporter-perl all 0.986-1 [50.6 kB]
Get:39 http://mirrors.163.com/ubuntu/ vivid/main libdata-section-perl all 0.200006-1 [12.0 kB]
Get:40 http://mirrors.163.com/ubuntu/ vivid/main libfcgi-perl amd64 0.77-1 [33.3 kB]
Get:41 http://mirrors.163.com/ubuntu/ vivid/main libhtml-template-perl all 2.95-1 [65.5 kB]
Get:42 http://mirrors.163.com/ubuntu/ vivid/main libmodule-build-perl all 0.421000-2 [208 kB]
Get:43 http://mirrors.163.com/ubuntu/ vivid-security/main libmodule-signature-perl all 0.73-1ubuntu0.15.04.1 [24.2 kB]
Get:44 http://mirrors.163.com/ubuntu/ vivid/main libpackage-constants-perl all 0.04-1 [5,516 B]
Get:45 http://mirrors.163.com/ubuntu/ vivid/main libregexp-common-perl all 2013031301-1 [167 kB]
Get:46 http://mirrors.163.com/ubuntu/ vivid/main libpod-readme-perl all 0.11-1 [14.2 kB]
Get:47 http://mirrors.163.com/ubuntu/ vivid/main libtext-template-perl all 1.46-1 [51.5 kB]
Get:48 http://mirrors.163.com/ubuntu/ vivid/main libsoftware-license-perl all 0.103010-3 [117 kB]
Get:49 http://mirrors.163.com/ubuntu/ vivid-security/main mysql-server all 5.6.27-0ubuntu0.15.04.1 [8,878 B]
Get:50 http://mirrors.163.com/ubuntu/ vivid/main rename all 0.20-3 [11.9 kB]
Get:51 http://mirrors.163.com/ubuntu/ vivid/main libcgi-fast-perl all 1:2.04-1 [9,984 B]
Fetched 31.9 MB in 36s (880 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Package configuration

密码

(Reading database ... 62417 files and directories currently installed.)
Preparing to unpack .../libselinux1_2.3-2_amd64.deb ...
Unpacking libselinux1:amd64 (2.3-2) over (2.2.2-1ubuntu0.1) ...
Setting up libselinux1:amd64 (2.3-2) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
(Reading database ... 62417 files and directories currently installed.)
Preparing to unpack .../ureadahead_0.100.0-19_amd64.deb ...
Unpacking ureadahead (0.100.0-19) over (0.100.0-16) ...
Preparing to unpack .../dpkg_1.17.25ubuntu1_amd64.deb ...
Unpacking dpkg (1.17.25ubuntu1) over (1.17.5ubuntu5.4) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up dpkg (1.17.25ubuntu1) ...
Installing new version of config file /etc/cron.daily/dpkg ...
(Reading database ... 62427 files and directories currently installed.)
Preparing to unpack .../perl_5.20.2-2_amd64.deb ...
Unpacking perl (5.20.2-2) over (5.18.2-2ubuntu1) ...
Preparing to unpack .../perl-base_5.20.2-2_amd64.deb ...
Unpacking perl-base (5.20.2-2) over (5.18.2-2ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up perl-base (5.20.2-2) ...
(Reading database ... 61871 files and directories currently installed.)
Preparing to unpack .../libcgmanager0_0.36-2ubuntu5_amd64.deb ...
Unpacking libcgmanager0:amd64 (0.36-2ubuntu5) over (0.24-0ubuntu7.3) ...
Preparing to unpack .../initramfs-tools-bin_0.103ubuntu15_amd64.deb ...
Unpacking initramfs-tools-bin (0.103ubuntu15) over (0.103ubuntu4.2) ...
Preparing to unpack .../initramfs-tools_0.103ubuntu15_all.deb ...
Unpacking initramfs-tools (0.103ubuntu15) over (0.103ubuntu4.2) ...
Preparing to unpack .../upstart_1.13.2-0ubuntu13.1_amd64.deb ...
Unpacking upstart (1.13.2-0ubuntu13.1) over (1.12.1-0ubuntu4.2) ...
Preparing to unpack .../init-system-helpers_1.22ubuntu11_all.deb ...
Unpacking init-system-helpers (1.22ubuntu11) over (1.14) ...
Preparing to unpack .../libapparmor-perl_2.9.1-0ubuntu9_amd64.deb ...
Unpacking libapparmor-perl (2.9.1-0ubuntu9) over (2.8.95~2430-0ubuntu5.2) ...
Preparing to unpack .../libtext-soundex-perl_3.4-1build2_amd64.deb ...
Unpacking libtext-soundex-perl (3.4-1build2) over (3.4-1build1) ...
Preparing to unpack .../libtext-iconv-perl_1.7-5build3_amd64.deb ...
Unpacking libtext-iconv-perl (1.7-5build3) over (1.7-5build2) ...
Preparing to unpack .../libtext-charwidth-perl_0.04-7build4_amd64.deb ...
Unpacking libtext-charwidth-perl (0.04-7build4) over (0.04-7build3) ...
Preparing to unpack .../libsub-name-perl_0.12-1_amd64.deb ...
Unpacking libsub-name-perl (0.12-1) over (0.05-1build4) ...
Preparing to unpack .../liblocale-gettext-perl_1.05-8build1_amd64.deb ...
Unpacking liblocale-gettext-perl (1.05-8build1) over (1.05-7build3) ...
Preparing to unpack .../perl-modules_5.20.2-2_all.deb ...
Unpacking perl-modules (5.20.2-2) over (5.18.2-2ubuntu1) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../mysql-common_5.6.27-0ubuntu0.15.04.1_all.deb ...
Unpacking mysql-common (5.6.27-0ubuntu0.15.04.1) ...
Selecting previously unselected package libmysqlclient18:amd64.
Preparing to unpack .../libmysqlclient18_5.6.27-0ubuntu0.15.04.1_amd64.deb ...
Unpacking libmysqlclient18:amd64 (5.6.27-0ubuntu0.15.04.1) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../libdbi-perl_1.631-3build1_amd64.deb ...
Unpacking libdbi-perl (1.631-3build1) ...
Preparing to unpack .../lsb-base_4.1+Debian11ubuntu8_all.deb ...
Unpacking lsb-base (4.1+Debian11ubuntu8) over (4.1+Debian11ubuntu6) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up lsb-base (4.1+Debian11ubuntu8) ...
Selecting previously unselected package libdbd-mysql-perl.
(Reading database ... 61943 files and directories currently installed.)
Preparing to unpack .../libdbd-mysql-perl_4.028-2_amd64.deb ...
Unpacking libdbd-mysql-perl (4.028-2) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../libterm-readkey-perl_2.32-1build1_amd64.deb ...
Unpacking libterm-readkey-perl (2.32-1build1) ...
Selecting previously unselected package mysql-client-core-5.6.
Preparing to unpack .../mysql-client-core-5.6_5.6.27-0ubuntu0.15.04.1_amd64.deb ...
Unpacking mysql-client-core-5.6 (5.6.27-0ubuntu0.15.04.1) ...
Selecting previously unselected package mysql-client-5.6.
Preparing to unpack .../mysql-client-5.6_5.6.27-0ubuntu0.15.04.1_amd64.deb ...
Unpacking mysql-client-5.6 (5.6.27-0ubuntu0.15.04.1) ...
Selecting previously unselected package mysql-server-core-5.6.
Preparing to unpack .../mysql-server-core-5.6_5.6.27-0ubuntu0.15.04.1_amd64.deb ...
Unpacking mysql-server-core-5.6 (5.6.27-0ubuntu0.15.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up mysql-common (5.6.27-0ubuntu0.15.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.6.
(Reading database ... 62135 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.6_5.6.27-0ubuntu0.15.04.1_amd64.deb ...
Unpacking mysql-server-5.6 (5.6.27-0ubuntu0.15.04.1) ...
Selecting previously unselected package libalgorithm-c3-perl.
Preparing to unpack .../libalgorithm-c3-perl_0.09-1_all.deb ...
Unpacking libalgorithm-c3-perl (0.09-1) ...
Selecting previously unselected package libcgi-pm-perl.
Preparing to unpack .../libcgi-pm-perl_4.09-2_all.deb ...
Unpacking libcgi-pm-perl (4.09-2) ...
Selecting previously unselected package libclass-c3-perl.
Preparing to unpack .../libclass-c3-perl_0.26-1_all.deb ...
Unpacking libclass-c3-perl (0.26-1) ...
Selecting previously unselected package libclass-c3-xs-perl.
Preparing to unpack .../libclass-c3-xs-perl_0.13-2build1_amd64.deb ...
Unpacking libclass-c3-xs-perl (0.13-2build1) ...
Selecting previously unselected package libcpan-meta-perl.
Preparing to unpack .../libcpan-meta-perl_2.142690-1_all.deb ...
Unpacking libcpan-meta-perl (2.142690-1) ...
Selecting previously unselected package libparams-util-perl.
Preparing to unpack .../libparams-util-perl_1.07-2build1_amd64.deb ...
Unpacking libparams-util-perl (1.07-2build1) ...
Selecting previously unselected package libsub-install-perl.
Preparing to unpack .../libsub-install-perl_0.928-1_all.deb ...
Unpacking libsub-install-perl (0.928-1) ...
Selecting previously unselected package libdata-optlist-perl.
Preparing to unpack .../libdata-optlist-perl_0.109-1_all.deb ...
Unpacking libdata-optlist-perl (0.109-1) ...
Selecting previously unselected package libmro-compat-perl.
Preparing to unpack .../libmro-compat-perl_0.12-1_all.deb ...
Unpacking libmro-compat-perl (0.12-1) ...
Selecting previously unselected package libsub-exporter-perl.
Preparing to unpack .../libsub-exporter-perl_0.986-1_all.deb ...
Unpacking libsub-exporter-perl (0.986-1) ...
Selecting previously unselected package libdata-section-perl.
Preparing to unpack .../libdata-section-perl_0.200006-1_all.deb ...
Unpacking libdata-section-perl (0.200006-1) ...
Selecting previously unselected package libfcgi-perl.
Preparing to unpack .../libfcgi-perl_0.77-1_amd64.deb ...
Unpacking libfcgi-perl (0.77-1) ...
Selecting previously unselected package libhtml-template-perl.
Preparing to unpack .../libhtml-template-perl_2.95-1_all.deb ...
Unpacking libhtml-template-perl (2.95-1) ...
Selecting previously unselected package libmodule-build-perl.
Preparing to unpack .../libmodule-build-perl_0.421000-2_all.deb ...
Adding 'diversion of /usr/bin/config_data to /usr/bin/config_data.diverted by libmodule-build-perl'
Adding 'diversion of /usr/share/man/man1/config_data.1.gz to /usr/share/man/man1/config_data.diverted.1.gz by libmodule-build-perl'
Unpacking libmodule-build-perl (0.421000-2) ...
Selecting previously unselected package libmodule-signature-perl.
Preparing to unpack .../libmodule-signature-perl_0.73-1ubuntu0.15.04.1_all.deb ...
Unpacking libmodule-signature-perl (0.73-1ubuntu0.15.04.1) ...
Selecting previously unselected package libpackage-constants-perl.
Preparing to unpack .../libpackage-constants-perl_0.04-1_all.deb ...
Unpacking libpackage-constants-perl (0.04-1) ...
Selecting previously unselected package libregexp-common-perl.
Preparing to unpack .../libregexp-common-perl_2013031301-1_all.deb ...
Unpacking libregexp-common-perl (2013031301-1) ...
Selecting previously unselected package libpod-readme-perl.
Preparing to unpack .../libpod-readme-perl_0.11-1_all.deb ...
Unpacking libpod-readme-perl (0.11-1) ...
Selecting previously unselected package libtext-template-perl.
Preparing to unpack .../libtext-template-perl_1.46-1_all.deb ...
Unpacking libtext-template-perl (1.46-1) ...
Selecting previously unselected package libsoftware-license-perl.
Preparing to unpack .../libsoftware-license-perl_0.103010-3_all.deb ...
Unpacking libsoftware-license-perl (0.103010-3) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.6.27-0ubuntu0.15.04.1_all.deb ...
Unpacking mysql-server (5.6.27-0ubuntu0.15.04.1) ...
Selecting previously unselected package rename.
Preparing to unpack .../archives/rename_0.20-3_all.deb ...
Unpacking rename (0.20-3) ...
Selecting previously unselected package libcgi-fast-perl.
Preparing to unpack .../libcgi-fast-perl_1%3a2.04-1_all.deb ...
Unpacking libcgi-fast-perl (1:2.04-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libcgmanager0:amd64 (0.36-2ubuntu5) ...
Setting up initramfs-tools-bin (0.103ubuntu15) ...
Setting up initramfs-tools (0.103ubuntu15) ...
update-initramfs: deferring update (trigger activated)
Setting up init-system-helpers (1.22ubuntu11) ...
Setting up upstart (1.13.2-0ubuntu13.1) ...
Installing new version of config file /etc/X11/Xsession.d/99upstart ...
Installing new version of config file /etc/cron.daily/upstart ...
Installing new version of config file /etc/upstart-xsessions ...
/var/lib/dpkg/info/upstart.postinst: 38: /var/lib/dpkg/info/upstart.postinst: telinit: not found
Setting up ureadahead (0.100.0-19) ...
Setting up perl-modules (5.20.2-2) ...
Setting up perl (5.20.2-2) ...
Setting up libapparmor-perl (2.9.1-0ubuntu9) ...
Setting up libtext-soundex-perl (3.4-1build2) ...
Setting up libtext-iconv-perl (1.7-5build3) ...
Setting up libtext-charwidth-perl (0.04-7build4) ...
Setting up libsub-name-perl (0.12-1) ...
Setting up liblocale-gettext-perl (1.05-8build1) ...
Setting up libaio1:amd64 (0.3.110-1) ...
Setting up libmysqlclient18:amd64 (5.6.27-0ubuntu0.15.04.1) ...
Setting up libdbi-perl (1.631-3build1) ...
Setting up libdbd-mysql-perl (4.028-2) ...
Setting up libterm-readkey-perl (2.32-1build1) ...
Setting up mysql-client-core-5.6 (5.6.27-0ubuntu0.15.04.1) ...
Setting up mysql-client-5.6 (5.6.27-0ubuntu0.15.04.1) ...
Setting up mysql-server-core-5.6 (5.6.27-0ubuntu0.15.04.1) ...
Setting up mysql-server-5.6 (5.6.27-0ubuntu0.15.04.1) ...
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
2015-11-23 14:42:14 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-11-23 14:42:14 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27-0ubuntu0.15.04.1) starting as process 8588 ...
/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
Setting up libalgorithm-c3-perl (0.09-1) ...
Setting up libcgi-pm-perl (4.09-2) ...
Setting up libclass-c3-perl (0.26-1) ...
Setting up libclass-c3-xs-perl (0.13-2build1) ...
Setting up libcpan-meta-perl (2.142690-1) ...
Setting up libparams-util-perl (1.07-2build1) ...
Setting up libsub-install-perl (0.928-1) ...
Setting up libdata-optlist-perl (0.109-1) ...
Setting up libmro-compat-perl (0.12-1) ...
Setting up libsub-exporter-perl (0.986-1) ...
Setting up libdata-section-perl (0.200006-1) ...
Setting up libfcgi-perl (0.77-1) ...
Setting up libhtml-template-perl (2.95-1) ...
Setting up libmodule-build-perl (0.421000-2) ...
Setting up libmodule-signature-perl (0.73-1ubuntu0.15.04.1) ...
Setting up libpackage-constants-perl (0.04-1) ...
Setting up libregexp-common-perl (2013031301-1) ...
Setting up libpod-readme-perl (0.11-1) ...
Setting up libtext-template-perl (1.46-1) ...
Setting up libsoftware-license-perl (0.103010-3) ...
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 the error message indicates its a followup error from a previous failure.
Setting up rename (0.20-3) ...
update-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode
Setting up libcgi-fast-perl (1:2.04-1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for initramfs-tools (0.103ubuntu15) ...
update-initramfs: Generating /boot/initrd.img-3.19.0-25-generic
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
mysql-server-5.6
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish


然后我在/var/log/syslog中发现了:
kernel: [ 12.319125] init: plymouth-upstart-bridge main process ended, respawning


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求助:ubuntu server 14.04 安装mysql-server 导致系统开关机命令“失踪"!
帖子发表于 : 2015-11-23 15:49 
头像

注册: 2008-09-18 13:11
帖子: 2770
送出感谢: 1
接收感谢: 449
混用不同版本源的典型后果。你在14.04(trusty)的系统上用15.04(vivid)的源,不出问题才怪


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译