yum update
我使用和升级了一个有一年历史的香草 Elastix 盒子yum upgrade
。
近 400 个软件包已更新,但其中一些软件包失败,包括星号。目前交换机正在运行,但我无法从 GUI 应用更新的配置。产生的错误是
exit: 1 [FATAL] Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting
我研究了各种关于如何同步 Asterisk 管理界面用户名和密码的主题,但无济于事。所以现在我想,如果我至少能让 YUM 正常完成,我就可以进一步隔离问题。YUM 更新产生的错误是:
--> Finished Dependency Resolution
2009020507:asterisk-11.5.0-0.x86_64 from elastix-beta has depsolving problems
--> Missing Dependency: libgsmat.so.2.0.7()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
2009020507:asterisk-11.5.0-0.x86_64 from elastix-beta has depsolving problems
--> Missing Dependency: libwat.so.1.0.24()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
Error: Missing Dependency: libgsmat.so.2.0.7()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
Error: Missing Dependency: libwat.so.1.0.24()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
我尝试了上述所有补救措施,包括--skip-broken
、、和,package-cleanup --problems
但都不起作用。package-cleanup --dupes
rpm -Va --nofiles --nodigest
经过一番研究,我发现了与 Elastix 相关的“错误” libss7
,spandsp
解决方法是将 EPEL 软件包提供的版本更新为最新版本。我不知道该怎么做,也不知道这样做是否有帮助。
http://bugs.elastix.org/view.php?id=1753
我们的 Elastix 附带以下存储库:
[root@elastix3 yum.repos.d]# ls
CentOS-Base.repo CentOS-Debuginfo.repo commercial-addons.repo epel-testing.repo
CentOS-Base.repo.back CentOS-Media.repo elastix.repo pgdg-91-centos.repo
CentOS-Base.repo.test CentOS-Vault.repo epel.repo
当我这样做时,yum list
我注意到一些奇怪的事情,例如它似乎asterisk
已经安装并且也存在于另一个 repo 中:
[root@elastix3 yum.repos.d]# yum list | grep asterisk
asterisk.x86_64 2009020507:1.8.20.0-0 installed
...
asterisk.x86_64 2009020507:11.5.0-0 elastix-beta
libss7
、libgsmat
和 的输出libwat
:
[root@elastix3 yum.repos.d]# yum list | egrep -i "libss7|libgsmat|libwat"
libgsmat.x86_64 2.0.3-0 installed
libwat.x86_64 1.0.23-0 installed
libss7.i386 1.0.1-3.el5 epel
libss7.x86_64 1.0.1-3.el5 epel
所以我猜测在所有这些存储库之间我都存在依赖关系混乱,而我不知道从哪里开始解决它。
YUM 的完整输出是:
[root@elastix3 ~]# yum upgrade
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.wa.co.za
* base: ftp.wa.co.za
* commercial-addons: elastix.kisiek.net
* elastix-base: elastix.kisiek.net
* elastix-beta: elastix.kisiek.net
* elastix-extras: elastix.kisiek.net
* epel: ftp.wa.co.za
* extras: ftp.wa.co.za
* updates: ftp.wa.co.za
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk.x86_64 2009020507:11.5.0-0 set to be updated
--> Processing Dependency: libwat.so.1.0.24()(64bit) for package: asterisk
--> Processing Dependency: libgsmat.so.2.0.7()(64bit) for package: asterisk
--> Processing Dependency: libss7.so.1()(64bit) for package: asterisk
---> Package asterisk-addons.x86_64 2009020507:11.5.0-0 set to be updated
---> Package asterisk-devel.x86_64 2009020507:11.5.0-0 set to be updated
---> Package asterisk-sounds-es.x86_64 2009020507:11.5.0-0 set to be updated
---> Package asterisk-sounds-fr.x86_64 2009020507:11.5.0-0 set to be updated
--> Running transaction check
---> Package asterisk.x86_64 2009020507:11.5.0-0 set to be updated
--> Processing Dependency: libwat.so.1.0.24()(64bit) for package: asterisk
--> Processing Dependency: libgsmat.so.2.0.7()(64bit) for package: asterisk
---> Package libss7.x86_64 0:1.0.1-3.el5 set to be updated
--> Finished Dependency Resolution
2009020507:asterisk-11.5.0-0.x86_64 from elastix-beta has depsolving problems
--> Missing Dependency: libgsmat.so.2.0.7()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
2009020507:asterisk-11.5.0-0.x86_64 from elastix-beta has depsolving problems
--> Missing Dependency: libwat.so.1.0.24()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
Error: Missing Dependency: libgsmat.so.2.0.7()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
Error: Missing Dependency: libwat.so.1.0.24()(64bit) is needed by package 2009020507:asterisk-11.5.0-0.x86_64 (elastix-beta)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
请帮忙!虽然有一种解决方法可以从命令行应用更新的配置,但我真的知道我有一个完美更新的系统。
答案1
EPEL 指向旧版本的 libss7。更新您的 EPEL:
转速-ivhhttp://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm