首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试更新postgresql-lib时出错

尝试更新postgresql-lib时出错
EN

Server Fault用户
提问于 2011-12-05 23:59:45
回答 2查看 3.4K关注 0票数 0

当我执行一个yum update时,我会得到以下错误:

代码语言:javascript
复制
Transaction Check Error:
  file /usr/lib64/libecpg.so.6.1 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64
  file /usr/lib64/libecpg_compat.so.3.1 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64
  file /usr/lib64/libpgtypes.so.3.1 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64
  file /usr/lib64/libpq.so.5.2 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64
  file /usr/share/locale/pl/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64
  file /usr/share/locale/pl/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.i386

由于我已经使用yum安装了pgsql,所以我现在知道它可能如何发生冲突。

但这也没关系。

但是,我不知道如何解决这些问题,以便能够更新pgsql库。

有一个稍微有点相似问题,但这是关于安装i386和x86_64版本。

所以..。如何解决这个问题?

编辑

应要求,百胜的评论员:

代码语言:javascript
复制
repo id           repo name                                             status
addons            CentOS-5 - Addons                                            0
base              CentOS-5 - Base                                        3,558+8
epel              Extra Packages for Enterprise Linux 5 - x86_64           6,808
extras            CentOS-5 - Extras                                          269
ius               IUS Community Packages for Enterprise Linux 5 - x86_6      149
kbs-CentOS-Extras CentOS.Karan.Org-EL5 - Stable                                0
kbs-CentOS-Misc   CentOS.Karan.Org-EL5 - Stable                                0
pgdg84            PostgreSQL 8.4 5 - x86_64                                  161
rpmforge          Red Hat Enterprise 5 - RPMforge.net - dag             10,899+1
updates           CentOS-5 - Updates                                      442+24
EN

回答 2

Server Fault用户

发布于 2011-12-07 01:55:49

冲突错误通常是由混合存储库造成的。试试这个:

代码语言:javascript
复制
# yum --disablerepo=pgdg84 install postgresql-libs
票数 1
EN

Server Fault用户

发布于 2012-01-24 13:51:52

我遇到了一个类似的问题,尽管所有的冲突都是反对的

postgresql84-libs-8.4.6-1PGDG.rhel5.i386

我只使用x86_64,只需删除i386库就可以了。你可以试试这个:

yum remove postgresql84-libs-8.4.9-1.el5_7.1.i386

没有任何依赖项,所以我能够删除没有问题,在那之后,yum更新能够完成没有错误。

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

https://serverfault.com/questions/337964

复制
相关文章

相似问题

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