[LinuxService][Yum][problem] 在fedora 9上解决依赖问题

summary: 在32bit的fedora9上安装EMC客户端遇到无法解决的依赖问题

detail:

rpm 安装:

[[email protected] tmp]# rpm -ivh lgtoclnt-8.2.3.1-1.i686.rpm 
error: Failed dependencies:
	/bin/ksh is needed by lgtoclnt-8.2.3.1-1.i686
	libstdc++.so.5 is needed by lgtoclnt-8.2.3.1-1.i686
	libstdc++.so.5(CXXABI_1.2) is needed by lgtoclnt-8.2.3.1-1.i686
	libstdc++.so.5(GLIBCPP_3.2) is needed by lgtoclnt-8.2.3.1-1.i686
	libstdc++.so.5(GLIBCPP_3.2.2) is needed by lgtoclnt-8.2.3.1-1.i686
[[email protected] tmp]#

yum安装:

[[email protected] tmp]# yum install lgtoclnt-8.2.3.1-1.i686.rpm
local                                                    | 2.4 kB     00:00    
primary.sqlite.bz2                                       | 1.4 MB     01:46     
Setting up Install Process
Parsing package install arguments
Examining lgtoclnt-8.2.3.1-1.i686.rpm: lgtoclnt-8.2.3.1-1.i686
Marking lgtoclnt-8.2.3.1-1.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package lgtoclnt.i686 0:8.2.3.1-1 set to be updated
--> Processing Dependency: /bin/ksh for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5 for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5(CXXABI_1.2) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2) for package: lgtoclnt
--> Processing Dependency: libstdc++.so.5(GLIBCPP_3.2.2) for package: lgtoclnt
--> Finished Dependency Resolution
lgtoclnt-8.2.3.1-1.i686 from lgtoclnt-8.2.3.1-1.i686.rpm has depsolving problems
  --> Missing Dependency: libstdc++.so.5 is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
lgtoclnt-8.2.3.1-1.i686 from lgtoclnt-8.2.3.1-1.i686.rpm has depsolving problems
  --> Missing Dependency: libstdc++.so.5(GLIBCPP_3.2.2) is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
lgtoclnt-8.2.3.1-1.i686 from lgtoclnt-8.2.3.1-1.i686.rpm has depsolving problems
  --> Missing Dependency: libstdc++.so.5(GLIBCPP_3.2) is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
lgtoclnt-8.2.3.1-1.i686 from lgtoclnt-8.2.3.1-1.i686.rpm has depsolving problems
  --> Missing Dependency: libstdc++.so.5(CXXABI_1.2) is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
lgtoclnt-8.2.3.1-1.i686 from lgtoclnt-8.2.3.1-1.i686.rpm has depsolving problems
  --> Missing Dependency: /bin/ksh is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
Error: Missing Dependency: libstdc++.so.5 is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
Error: Missing Dependency: libstdc++.so.5(GLIBCPP_3.2.2) is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
Error: Missing Dependency: libstdc++.so.5(CXXABI_1.2) is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
Error: Missing Dependency: /bin/ksh is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)
Error: Missing Dependency: libstdc++.so.5(GLIBCPP_3.2) is needed by package lgtoclnt-8.2.3.1-1.i686 (lgtoclnt-8.2.3.1-1.i686.rpm)

这是我yum的repo文件:

[[email protected] tmp]# cat /etc/yum.repos.d/f9.repo 
[local]
name=Local - $basearch
baseurl=http://209.132.181.24/pub/archive/fedora/linux/releases/9/Fedora/i386/os
enabled=1
gpgcheck=0
You have new mail in /var/spool/mail/root
[[email protected] tmp]#

感觉是版本太低的问题,使用federa22的repo

[[email protected] yum.repos.d]# cat f22.repo 
[local]

name=Local - $basearch
baseurl=http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Server/i386/os/
enabled=1
gpgcheck=0
[[email protected] yum.repos.d]# ls
f22.repo  f9.repo.bak  rhel-source.repobak
[[email protected] yum.repos.d]#

出现checksum的问题

[[email protected] yum.repos.d]# yum clean all
Cleaning up Everything
[[email protected] yum.repos.d]# yum makecache
local                                                    | 3.6 kB     00:00    
8d3e096116811eb96a798a91e79341f288756ac6ac258b93859e83f6 | 1.1 MB     00:15     
http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Server/i386/os/repodata/8d3e096116811eb96a798a91e79341f288756ac6ac258b93859e83f68fc569d1-filelists.sqlite.xz: [Errno -3] Error perform
ing checksumTrying other mirror.
79ef992c9eb1a8bcf08503cc6b31aba89601273622f98b941e7a7748 | 1.4 MB     00:17     
http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Server/i386/os/repodata/79ef992c9eb1a8bcf08503cc6b31aba89601273622f98b941e7a77488efb4d69-primary.sqlite.xz: [Errno -3] Error performin
g checksumTrying other mirror.
8d3e096116811eb96a798a91e79341f288756ac6ac258b93859e83f6 | 1.1 MB     00:15     
http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Server/i386/os/repodata/8d3e096116811eb96a798a91e79341f288756ac6ac258b93859e83f68fc569d1-filelists.sqlite.xz: [Errno -3] Error perform
ing checksumTrying other mirror.
7e7f49a5afcf7d28993a6a6b23fd66c0578a7528c24644706b3a2a20 | 620 kB     00:05     
http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Server/i386/os/repodata/7e7f49a5afcf7d28993a6a6b23fd66c0578a7528c24644706b3a2a20ae9eadac-other.sqlite.xz: [Errno -3] Error performing 
checksumTrying other mirror.
Metadata Cache Created
You have new mail in /var/spool/mail/root
[[email protected] yum.repos.d]#

查了一下,好像是加密方法不一样了,需要用createrepo命令指定加密方式,但是机器上并没有这个命令createrepo -s sha *******

rpmforge上不去,只能从rpmfind上面找包。

[[email protected] tmp]# ls *.rpm
compat-libstdc++-33-3.2.3-68.12.i686.rpm  ksh-20120801-24.fc22.i686.rpm  lgtoclnt-8.2.3.1-1.i686.rpm
[[email protected] tmp]# rpm -ivh compat-libstdc++-33-3.2.3-68.12.i686.rpm 
warning: compat-libstdc++-33-3.2.3-68.12.i686.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 8e1431d5
error: Failed dependencies:
	rpmlib(FileDigests) <= 4.6.0-1 is needed by compat-libstdc++-33-3.2.3-68.12.i686
	rpmlib(PayloadIsXz) <= 5.2-1 is needed by compat-libstdc++-33-3.2.3-68.12.i686
[[email protected] tmp]#

又少rpmlib这个包,rpmfind并没有这个包,打算升级rpm,下了一个rpm for federa22-i386

[[email protected] tmp]# rpm -ivh rpm-4.12.0.1-9.fc22.i686.rpm 
warning: rpm-4.12.0.1-9.fc22.i686.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 8e1431d5
error: Failed dependencies:
	/usr/bin/db_stat is needed by rpm-4.12.0.1-9.fc22.i686
	curl is needed by rpm-4.12.0.1-9.fc22.i686
	libarchive.so.13 is needed by rpm-4.12.0.1-9.fc22.i686
	libdb-5.3.so is needed by rpm-4.12.0.1-9.fc22.i686
	liblua-5.3.so is needed by rpm-4.12.0.1-9.fc22.i686
	liblzma.so.5 is needed by rpm-4.12.0.1-9.fc22.i686
	librpm.so.3 is needed by rpm-4.12.0.1-9.fc22.i686
	librpmio.so.3 is needed by rpm-4.12.0.1-9.fc22.i686
	popt(x86-32) >= 1.10.2.1 is needed by rpm-4.12.0.1-9.fc22.i686
	rpmlib(FileDigests) <= 4.6.0-1 is needed by rpm-4.12.0.1-9.fc22.i686
	rpmlib(PayloadIsXz) <= 5.2-1 is needed by rpm-4.12.0.1-9.fc22.i686
[[email protected] tmp]#

这可让我如何是好。。。。

中午吃完下午继续研究

OK,我们换种思路,既然fedora22版本无法作为yum源,那么我们就用低一点的。

找到fedora的归档网站 http://archives.fedoraproject.org/pub

我们从fedora10开始试,10版本的源可以,11的不可以,repo文件如下

[[email protected] yum.repos.d]# cat f10.repo.bck 
[local10]

name=Local10 - $basearch
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/i386/os
enabled=1
gpgcheck=0
[[email protected] yum.repos.d]#

升级RPM命令,yum update rpm,截图刷过去了,就不贴了,升级到了4.6,但是安装ksh和compat-libstdc还是不行。

[[email protected] yum.repos.d]# rpm --version
RPM version 4.6.0-rc1

猛然想到fedora10应该对应centos的5版本,果断换Centos5的源

[[email protected] yum.repos.d]# cat rhel-source.repo 
[base]
name=CentOS-5 - Base
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

[[email protected] yum.repos.d]#

安装ksh

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 ksh                     i386       20100621-20.el5  base              1.2 M

Transaction Summary
=============================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): ksh-20100621-20.el5.i386.rpm                      | 1.2 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: ksh                          ######################### [1/1] 

Installed: ksh.i386 0:20100621-20.el5
Complete!
[[email protected] yum.repos.d]#

安装compat-libstdc

yum install compat-libstdc++

最后安装emc客户端

[[email protected] tmp]# rpm -ivh lgtoclnt-8.2.3.1-1.i686.rpm

Preparing...                ########################################### [100%]

1:lgtoclnt               ########################################### [100%]

You have new mail in /var/spool/mail/root

[[email protected] tmp]# rpm -qa|grep lgtoc

lgtoclnt-8.2.3.1-1.i686

[[email protected] tmp]#

搞定!

时间: 2024-12-22 12:49:52

[LinuxService][Yum][problem] 在fedora 9上解决依赖问题的相关文章

Linux 使用yum install安装mysql登陆不上解决办法

CentOS yum安装mysql后 Can’t connect to local MySQL server through socket ‘/var/lib/ CentOS Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ 如果仅仅只yum 安装了mysql这个包,启动mysql时就会提示:ERROR 2002 (HY000): Can’t connect to local MySQL

对于yum中没有的源的解决办法-EPEL

EPEL 是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/CentOS提供他们默认不提供的软件包.这个源兼容RHEL及像CentOS和Scientific Linux这样的衍生版本. 我们可以很容易地通过yum命令从EPEL源上获取上万个在CentOS自带源上没有的软件.EPEL提供的软件包大多基于其对应的Fedora软件包,不会与企业版Linux发行版本的软件发生

在Fedora 21上搭建Jenkins+SonarQube的Maven项目自动化测试平台

自动化测试是敏捷开发模型下的一大助力,有了它,测试及开发团队能及时的掌控软件质量和迭代周期,能更好的为软件产品服务,促进软件质量的提升和提高开发的效率. 好处很多,我就不一一说明了. 最近,公司将要开发新产品(分校系统),为了避免敏捷开发下无序,沟通不畅,质量不高等等缺点,决定上自动化测试平台,解放测试团队,让其专注于更多的业务理解工作,也从另一个方面规范所有程序员的开发. 好了,废话不多说,上硬货. 准备阶段 首先需要下载SonarQube和Jenkins.另外,还要先安装好MySQL数据库和

在 RedHat Enterprise、CentOS 或 Fedora Linux 上安装 MongoDB

在 RedHat Enterprise.CentOS 或 Fedora Linux 上安装 MongoDB 1.大纲 ? 备注:采用yum安装后,所有进程将自动在/usr/bin下,如下的mongo.mongod.mongostat以后都可以直接cd /usr/bin之后直接使用. 该教程列出了在 RedHat Enterprise Linux.CentOS Linux.Fedora Linux 及相关系统上部署Mongodb的基本安装流程.该程序使用 .rpm 程序包作为安装基础.10gen

VMware14演示CentOS 7在无网络连接环境下自建yum仓库解决依赖关系

引言: Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器.基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载.安装. 我们知道使用Yum安装软件,能够一次性解决所有依赖关系,方便快捷.但Yum安装必须在联网的情况下进行,如果没有网的情况该怎么办呢?当然,一般情况下服务器是不可能断网的,但是,多了解一点肯定是

如何在Fedora 20 上安装Mysql

[[email protected] ~]# yum -y install community-mysql-server #安装数据库 已加载插件:langpacks, refresh-packagekitgoogle-chrome 3/3正在解决依赖关系There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transac

mac下https方式连接svn连接不上解决方法

以前一个人开发没有考虑代码服务器的问题,现在需要提交代码到服务器,服务器安装了cvs以及svn,一般的Mac OS X都已经安装了subversion客户端,自然是选择svn了,不过碰到了连接不上的问题. 由于客户端使用https访问服务器,是需要进行安全认证的. 为此,在终端输入 svn list  https://192.168.1.103/svn/IOS 出现 Error validating server certificate for 'https://192.168.2.126:44

解决Android Studio引入SVN上Eclipse依赖工程不能实时更新的思考

解决Android Studio引入SVN上Eclipse依赖工程不能实时更新的思考 标签(空格分隔): AndroidStudio SVN 使用Android Stuido开发了几个月,都是使用libs/jar实现对外部库的依赖,最近新的需求需要依赖工程.使用SVN进行版本管理,而且依赖工程为Eclipse项目,在开发过程中发现一个问题:作为Module依赖加入的工程,不能直接以new Module的模式从SVN服务器上直接 CheckOut出来作为依赖Module:需要从SVN服务器Chec

阿里云服务器数据库mysql连不上解决方法

有时启或无缘无故的就会出来数据库连不上的问题. 1.重启服务器 2.出现了mysql未连接上, 3.重新启动mysql,出现502 4.执行/etc/init.d/php-fpm start,出现数据库无法连接 5.执行service mysqld restart,重启数据库 如果 =====nginx错===== 重启nginx后丢失nginx.pid,如何重新启动nginx /alidata/server/nginx/sbin/nginx -c /alidata/server/nginx/c