首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级MySQL5.1到5.5使用dotdeb : /usr/bin/dpkg返回错误代码(1)

升级MySQL5.1到5.5使用dotdeb : /usr/bin/dpkg返回错误代码(1)
EN

Server Fault用户
提问于 2012-09-07 12:06:38
回答 1查看 1.9K关注 0票数 0

在我的debian上,我最近添加了dotdeb,以便使我的PHP更新

代码语言:javascript
复制
deb ftp://ftp.debian.ikoula.com/debian squeeze main contrib non-free
deb-src ftp://ftp.debian.ikoula.com/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://repo.varnish-cache.org/debian/ squeeze varnish-3.0
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

我15分钟前

apt-get dist-upgrademysql5.1更新为5.5,现在我的所有产品mysql服务器都崩溃了(不可能重新启动) :

然后,我尝试了apt升级和apt更新-f,它返回:

代码语言:javascript
复制
    The following packages were automatically installed and are no longer required:
  libhtml-template-perl mysql-server-core-5.1 libgd2-xpm
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  mysql-client-5.5 mysql-client-core-5.5
Suggested packages:
  libterm-readkey-perl
The following packages will be REMOVED:
  mysql-client-5.1
The following NEW packages will be installed:
  mysql-client-5.5 mysql-client-core-5.5
0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/10.4 MB of archives.
After this operation, 11.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 40695 files and directories currently installed.)
Unpacking mysql-client-core-5.5 (from .../mysql-client-core-5.5_5.5.27-1~dotdeb.0_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/mysql-client-core-5.5_5.5.27-1~dotdeb.0_amd64.deb (--unpack):

 trying to overwrite '/usr/bin/mysql', which is also in package mysql-client-5.1 5.1.63-0+squeeze1
configured to not write apport reports

    dpkg-deb: subprocess paste killed by signal (Broken pipe)

Errors were encountered while processing:
 /var/cache/apt/archives/mysql-client-core-5.5_5.5.27-1~dotdeb.0_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

为什么会发生在我身上?谢谢你的帮助。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2012-09-07 12:24:50

我想它的意思是这个。

它正在尝试升级mysql-client-core-5.5,它试图覆盖/usr/bin/mysql,但这是通过mysql-client-5.1包安装的,因此它正在崩溃。

尝试执行以下操作

代码语言:javascript
复制
apt-get remove mysql-client-5.1

也可能尝试删除服务器包。备份/etc/mysql dir,以防万一。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/425271

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档