在ubuntu8.10中安装mysql中出错,不知道如何解决

数据库服务和管理,MySQL/PostgreSQL/Oracle/Sybase 等
回复
yichun
帖子: 9
注册时间: 2008-10-17 17:06
送出感谢: 0
接收感谢: 0

在ubuntu8.10中安装mysql中出错,不知道如何解决

#1

帖子 yichun » 2008-11-10 17:11

administrator@ubuntu:~$ sudo apt-get install mysql-server
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
mysql-server 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0B 的额外空间。
administrator@ubuntu:~$ sudo apt-get install mysql-server
正在设置 mysql-server-5.0 (5.0.67-0ubuntu6) ...
* Stopping MySQL database server mysqld [ OK ]
chown: 无法访问“/var/run/mysqld”: 没有该文件或目录
/var/lib/dpkg/info/mysql-server-5.0.postinst: line 143: /etc/mysql/conf.d/old_passwords.cnf: 没有该文件或目录
dpkg:处理 mysql-server-5.0 (--configure)时出错:
子进程 post-installation script 返回了错误号 1
dpkg:依赖关系问题使得 mysql-server 的配置工作不能继续:
mysql-server 依赖于 mysql-server-5.0;然而:
软件包 mysql-server-5.0 还没有被配置。
dpkg:处理 mysql-server (--configure)时出错:
依赖关系问题 - 仍未被配置
No apport report written because the error message indicates its a followup error from a previous failure.
在处理时有错误发生:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)



administrator@ubuntu:~$ sudo apt-get install mysql-server-5.0
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
mysql-server-5.0 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0B 的额外空间。
正在设置 mysql-server-5.0 (5.0.67-0ubuntu6) ...
* Stopping MySQL database server mysqld [ OK ]
chown: 无法访问“/var/run/mysqld”: 没有该文件或目录
/var/lib/dpkg/info/mysql-server-5.0.postinst: line 143: /etc/mysql/conf.d/old_passwords.cnf: 没有该文件或目录
dpkg:处理 mysql-server-5.0 (--configure)时出错:
子进程 post-installation script 返回了错误号 1
dpkg:依赖关系问题使得 mysql-server 的配置工作不能继续:
mysql-server 依赖于 mysql-server-5.0;然而:
软件包 mysql-server-5.0 还没有被配置。
dpkg:处理 mysql-server (--configure)时出错:
依赖关系问题 - 仍未被配置
No apport report written because the error message indicates its a followup error from a previous failure.
在处理时有错误发生:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
我是个菜鸟
OMG520
帖子: 3
注册时间: 2008-11-10 22:54
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#2

帖子 OMG520 » 2008-11-10 22:57

我是新手,我也遇到了同样问题,我是顺着安装依赖包的,但装到最后:
sun@OMG:~$ sudo apt-get install libdbi-perl
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是不稳定(unstable)发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们还在新到(incoming)目录中。

您仅要求对单一软件包进行操作,这极有可能是因为该软件包安装不上,同时,
您最好提交一个针对这个软件包的故障报告。
下列的信息可能会对解决问题有所帮助:

下列的软件包有不能满足的依赖关系:
libdbi-perl: 依赖: perlapi-5.8.4
E: 无法安装的软件包
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
注意,选取 perl-base 而非 perlapi-5.8.4
perl-base 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。

期待高手解决
OMG520
帖子: 3
注册时间: 2008-11-10 22:54
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#3

帖子 OMG520 » 2008-11-10 23:31

依赖: perlapi-5.8.8
但perlapi已经安装并已经是最新版本。
我从新立得里安装好多关于perl的还是一样的,最后提示这个,用apt-get remove perlapi-5.8.8 提示要卸载好多软件。
看来没办法了,只能暂时不用mysql了。
OMG520
帖子: 3
注册时间: 2008-11-10 22:54
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#4

帖子 OMG520 » 2008-11-12 21:55

问题解决了,是更新源的问题,换了一个8.1的更新源,现在已经成功安装上了
zht7216
帖子: 1
注册时间: 2008-11-15 14:05
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#5

帖子 zht7216 » 2008-11-15 14:11

请问楼主换的哪个更新源?我也碰到类似的问题
yichun
帖子: 9
注册时间: 2008-10-17 17:06
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#6

帖子 yichun » 2008-11-17 14:08

# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081029.2)]/ intrepid main restricted
deb-src http://mirror.lupaworld.com/ubuntu/archive/ intrepid main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid main restricted
deb-src http://mirror.lupaworld.com/ubuntu/archive/ intrepid multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid-updates main restricted
deb-src http://mirror.lupaworld.com/ubuntu/archive/ intrepid-updates restricted main multiverse universe #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid universe
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security universe
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
# Line commented out by installer because it failed to verify:
deb http://security.ubuntu.com/ubuntu/ intrepid-security restricted main multiverse universe
deb-src http://mirror.lupaworld.com/ubuntu/archive/ intrepid-security restricted main multiverse universe #Added by software-properties
# deb-src http://security.ubuntu.com/ubuntu intrepid-security multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu/archive/ intrepid-backports main restricted universe multiverse #Added by software-properties
deb http://mirror.lupaworld.com/ubuntu/archive/ intrepid-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu/archive/ intrepid-proposed main restricted universe multiverse #Added by software-properties
我是个菜鸟
混沌思维
帖子: 18
注册时间: 2008-10-07 1:13
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#7

帖子 混沌思维 » 2008-12-07 1:19

首先把编译环境配置好。

代码: 全选

sudo apt-get install build-essential  
duanyong
帖子: 73
注册时间: 2007-05-17 9:38
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#8

帖子 duanyong » 2008-12-10 19:34

# newer versions of the distribution.
deb http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted universe multiverse


上面这个不是8.04的源吗?
lylwkm
帖子: 8
注册时间: 2008-11-26 15:46
送出感谢: 0
接收感谢: 0

Re: 在ubuntu8.10中安装mysql中出错,不知道如何解决

#9

帖子 lylwkm » 2010-03-19 18:15

真郁闷阿....要是一开始看到你的问题就好了。今天,在网上随便找了个一堆源,也没注意是8.04的。安装好多东西都安不了。看到你这里,突然才想起去看看源的版本。白费了一天.....现在ok了。

8.10源:
http://wiki.ubuntu.org.cn/index.php?tit ... iant=zh-cn
回复

回到 “数据库管理”