LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1305|回复: 5

安装软件冲突,如何解决?

[复制链接]
发表于 2007-6-23 10:17:08 | 显示全部楼层 |阅读模式
[root@arch ~]# pacman -S jre

Targets: libstdc++5-3.3.6-1 jre-6u1-1

Total Package Size:   36.1 MB

Proceed with upgrade? [Y/n] Y

checking package integrity... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
  libstdc++5: /usr/lib/libstdc++.so.5: exists in filesystem
  libstdc++5: /usr/lib/libstdc++.so.5.0.7: exists in filesystem


errors occurred, no packages were upgraded.
发表于 2007-6-23 10:46:54 | 显示全部楼层
那两个没什么大不了的,删掉就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-23 12:16:08 | 显示全部楼层

怎么删除,用什么命令,

Post by wd_afei
那两个没什么大不了的,删掉就可以了

我刚接触arch  linux 只会装不会删
回复 支持 反对

使用道具 举报

发表于 2007-6-24 21:32:55 | 显示全部楼层
删除是pacman -R packagename(参数如果是Rscn就比较彻底,把被它依赖的和依赖它的都干掉,还有配置文件.)
貌似还有强制覆盖的命令,你问问论坛的达人吧..
回复 支持 反对

使用道具 举报

发表于 2007-6-24 22:14:05 | 显示全部楼层
注意用google,看wiki,man,还有置顶帖。

-d, --nodeps

Skips all dependency checks. Normally, pacman will always check a package's dependency fields to ensure that all dependencies are installed and there are no package conflicts in the system. This switch disables these checks.

越过所有的依赖性检测。一般的,pacman总要检测一个包的依赖性文件来确保所有的依赖性文件已经被安装并且系统中没有冲突的包。这个选项取消了这些检测。

-f, --force

Bypass file conflict checks, overwriting conflicting files. If the package that is about to be installed contains files that are already installed, this option will cause all those files to be overwritten. This option should be used with care, ideally not at all.

绕开冲突文件检测,覆盖冲突文件。如果将要安装的包中包含了已经被安装的文件,这个选项将把这些文件覆盖。这个选项要小心使用,完全是理论上的。
回复 支持 反对

使用道具 举报

发表于 2007-6-24 22:26:04 | 显示全部楼层
删掉。。。

su

然后rm /usr/lib/std.....
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表