【Linux】【Problems】在fedora 9上解决依赖问题
summary: 在32bit的fedora9上安装EMC客户端遇到无法解决的依赖问题
detail:
rpm 安装:
[root@hcszmons02 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
[root@hcszmons02 tmp]#
yum安装:
[root@hcszmons02 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文件:
[root@hcszmons02 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
[root@hcszmons02 tmp]#
感觉是版本太低的问题,使用federa22的repo
[root@hcszmons02 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
[root@hcszmons02 yum.repos.d]# ls
f22.repo f9.repo.bak rhel-source.repobak
[root@hcszmons02 yum.repos.d]#
出现checksum的问题
[root@hcszmons02 yum.repos.d]# yum clean all
Cleaning up Everything
[root@hcszmons02 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
[root@hcszmons02 yum.repos.d]#
查了一下,好像是加密方法不一样了,需要用createrepo命令指定加密方式,但是机器上并没有这个命令createrepo -s sha *******
rpmforge上不去,只能从rpmfind上面找包。
[root@hcszmons02 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
[root@hcszmons02 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
[root@hcszmons02 tmp]#
又少rpmlib这个包,rpmfind并没有这个包,打算升级rpm,下了一个rpm for federa22-i386
[root@hcszmons02 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
[root@hcszmons02 tmp]#
这可让我如何是好。。。。
中午吃完下午继续研究
OK,我们换种思路,既然fedora22版本无法作为yum源,那么我们就用低一点的。
找到fedora的归档网站 http://archives.fedoraproject.org/pub
我们从fedora10开始试,10版本的源可以,11的不可以,repo文件如下
[root@hcszmons02 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
[root@hcszmons02 yum.repos.d]#
升级RPM命令,yum update rpm,截图刷过去了,就不贴了,升级到了4.6,但是安装ksh和compat-libstdc还是不行。
[root@hcszmons02 yum.repos.d]# rpm --version
RPM version 4.6.0-rc1
猛然想到fedora10应该对应centos的5版本,果断换Centos5的源
[root@hcszmons02 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
[root@hcszmons02 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!
[root@hcszmons02 yum.repos.d]#
安装compat-libstdc
yum install compat-libstdc++
最后安装emc客户端
[root@hcszmons02 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
[root@hcszmons02 tmp]# rpm -qa|grep lgtoc
lgtoclnt-8.2.3.1-1.i686
[root@hcszmons02 tmp]#
搞定!
【Linux】【Problems】在fedora 9上解决依赖问题的更多相关文章
- Linux面试题(史上最全、持续更新、吐血推荐)
文章很长,建议收藏起来,慢慢读! 疯狂创客圈为小伙伴奉上以下珍贵的学习资源: 疯狂创客圈 经典图书 : <Netty Zookeeper Redis 高并发实战> 面试必备 + 大厂必备 ...
- Maven 基础(二) | 解决依赖冲突的正确姿势
一.依赖原则 假设,在 JavaMavenService2 模块中,log4j 的版本是 1.2.7,在 JavaMavenService1 模块中,它虽然继承于 JavaMavenService2 ...
- [转载]Linux服务器丢包故障的解决思路及引申的TCP/IP协议栈理论
Linux服务器丢包故障的解决思路及引申的TCP/IP协议栈理论 转载至:https://www.sdnlab.com/17530.html 我们使用Linux作为服务器操作系统时,为了达到高并发处理 ...
- 适合Linux嵌入式项目的代码构建与依赖管理工具——cazel
前言 我们知道,现在有很多流行的优秀代码构建工具,如CMake.jetkins.bazel等.这些不同的构建工具在其应用的领域起到了举足轻重的作用. 但是,如果仔细研究就会发现,在嵌入式领域,构建工具 ...
- 适用于Linux 2的Windows子系统上的CUDA
适用于Linux 2的Windows子系统上的CUDA Announcing CUDA on Windows Subsystem for Linux 2 为了响应大众的需求,微软在2020年5月的构建 ...
- Linux 2 的 Windows 子系统上发布 CUDA
Linux 2 的 Windows 子系统上发布 CUDA 为响应大众需求,微软 宣布 在 2020 年 5 月的 建造 大会上推出了 建造 ( WSL 2 ) – GPU 加速功能.这一特性为许多计 ...
- 离线安装rpm包并解决依赖(升级vsftpd为例)
背景 实际开发中,我们的linux服务器是处理离线状态的,并不能访问互联网.如果此时要在linux上安装或者升级软件,就只能通过rpm包的安装方式.rpm包安装有一个缺陷,就是不能处理安装包的依赖问 ...
- Windows与Linux/Mac系统时间不一致的解决方法
Windows与Linux/Mac系统时间不一致的解决方法 分类: linux2012-02-12 14:25 1691人阅读 评论(1) 收藏 举报 windowsubuntusystemlinux ...
- 使用google wire解决依赖注入
使用google wire解决依赖注入 google wire是golang的一个依赖注入解决的工具,这个工具能够自动生成类的依赖关系. 当我们写代码的时候,都希望,类都是一个个独立的结构,互不耦合, ...
随机推荐
- MySQL、Oracle批量插入SQL的通用写法
举个例子: 现在要批量新增User对象到数据库USER表中 public class User{ //姓名 private String name; //年龄 private Integer age; ...
- JS中如何将yyyy-MM-dd HH:mm:ss格式的字符串转成Date类型
var deadline = '2019-04-11 13:11:00'; var result = new Date(deadline.replace(/-/g, '/'));
- 菜鸡的Java笔记 - java 常用类库
CommonClassLibrary 常用类库 定时调度 定时调度指的是每到一个时刻,都会自动的产生某些特定的操作形式 con ...
- 菜鸡的Java笔记 api 文档
package 包的用法 为什么需要 package ? 为了解决类之间的重名问题 为了便于管理类:合适类位于合适的包 package 怎么用? ...
- [uva11429]Randomness
记p(i,j)表示第i次随机时,用多少个数对应到第j个事件,特别的,p(i,0)表示转移到下一次随机数的概率,那么即要求$aj/bj=\sum_{i=1}^{inf}p(i,j)/R^{i}$,容易发 ...
- Docker 之 Dockerfile 常用语法与实战
1. 概述 老话说的好:超越别人,不如超越自我,每天比昨天的自己更强就好. 言归正传,之前聊了 Docker 的相关知识,今天来聊聊如何编辑 Dockerfile 脚本,来创建我们自己的镜像. 2. ...
- Semaphore信号量的使用
package ThreadTest; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; pub ...
- lilypond 进阶—— 用scheme画图
lilypond的许多底层设定是通过scheme语言写的,特别是要写函数的时候. 所以了解一下scheme的作用很重要. 不幸的是,不像lilypond本身的代码,scheme代码的结果是不会直接预览 ...
- 【.NET 6】使用.NET 6开发minimal api以及依赖注入的实现、VS2022热重载和自动反编译功能的演示
前言: .net 6 LTS版本发布已经有若干天了.此处做一个关于使用.net 6 开发精简版webapi(minimal api)的入门教程,以及VS2022 上面的两个强大的新技能(热重载.代码自 ...
- Qt5加载SVG格式的图片并更颜色
QIcon MainWindow::qiconFromSvg(QString svg_path, QString color) { QPixmap img(svg_path); QPainter qp ...