当前位置: 技术问答>linux和unix
debian 安装mysql或者php出问题
来源: 互联网 发布时间:2016-11-26
本文导语: 版本是4.0 先更新源 在/etc/apt/sources.list 中添加 deb http://http.us.debian.org/debian/ stable main 执行以下命令更新软件包列表: apt-get update 更新源后,安装mysql就出错了,帮忙看下。。。 wzwen:~# apt-get install mysql-server-5....
版本是4.0
先更新源
在/etc/apt/sources.list 中添加
deb http://http.us.debian.org/debian/ stable main
执行以下命令更新软件包列表:
apt-get update
更新源后,安装mysql就出错了,帮忙看下。。。
wzwen:~# apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-server-5.1: Depends: mysql-client-5.1 (>= 5.1.41-1.dotdeb.1) but it is not going to be installed
Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch9+b1 is to be installed
Depends: libmysqlclient16 (>= 5.1.21-1) but it is not going to be installed
E: Broken packages
再比如,安装php也出错,好像是源包有问题。。。
wzwen:~# sudo apt-get install php5-scache
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package php5-scache
wzwen:~# sudo apt-get install php5-xcache
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-xcache: Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch9+b1 is to be installed
Depends: php5-common (= 5.2.11-0.dotdeb.1) but it is not going to be installed
E: Broken packages
先更新源
在/etc/apt/sources.list 中添加
deb http://http.us.debian.org/debian/ stable main
执行以下命令更新软件包列表:
apt-get update
更新源后,安装mysql就出错了,帮忙看下。。。
wzwen:~# apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-server-5.1: Depends: mysql-client-5.1 (>= 5.1.41-1.dotdeb.1) but it is not going to be installed
Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch9+b1 is to be installed
Depends: libmysqlclient16 (>= 5.1.21-1) but it is not going to be installed
E: Broken packages
再比如,安装php也出错,好像是源包有问题。。。
wzwen:~# sudo apt-get install php5-scache
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package php5-scache
wzwen:~# sudo apt-get install php5-xcache
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-xcache: Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch9+b1 is to be installed
Depends: php5-common (= 5.2.11-0.dotdeb.1) but it is not going to be installed
E: Broken packages
|
apt源搞好
基本不会有问题
基本不会有问题