[问题]安装MySql出错

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
truecrime
帖子: 3
注册时间: 2006-10-05 6:10

[问题]安装MySql出错

#1

帖子 truecrime » 2008-06-28 19:26

使用Ubuntu 8.04安装MySql时出错,请各位前辈指点一下,谢谢。

使用的命令是sudo apt-get install mysql-server

错误提示如下:

正在预设定软件包 ...
(正在读取数据库 ... 系统当前总共安装有 170218 个文件和目录。)
正在解压缩 mysql-server-5.0 (从 .../mysql-server-5.0_5.0.51a-3ubuntu5.1_i386.deb) ...
/etc/init.d/mysql: 90: source: not found
/etc/init.d/mysql: 212: my_print_defaults: not found
/etc/init.d/mysql: 215: my_print_defaults: not found
/etc/init.d/mysql: 340: log_failure_msg: not found
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 127
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg:处理 /var/cache/apt/archives/mysql-server-5.0_5.0.51a-3ubuntu5.1_i386.deb (--unpack)时出错:
子进程 pre-installation script 返回了错误号 1
正在解压缩 mysql-server (从 .../mysql-server_5.0.51a-3ubuntu5.1_all.deb) ...
/etc/init.d/mysql: 90: source: not found
/etc/init.d/mysql: 212: my_print_defaults: not found
/etc/init.d/mysql: 215: my_print_defaults: not found
/etc/init.d/mysql: 340: log_failure_msg: not found
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 127
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg:处理 /var/cache/apt/archives/mysql-server_5.0.51a-3ubuntu5.1_all.deb (--unpack)时出错:
子进程 pre-installation script 返回了错误号 1
在处理时有错误发生:
/var/cache/apt/archives/mysql-server-5.0_5.0.51a-3ubuntu5.1_i386.deb
/var/cache/apt/archives/mysql-server_5.0.51a-3ubuntu5.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
回复