rpm出现"error: %preun( ) scriptlet failed, exit status 1问题
2013-06-04 14:21
375 查看
原文地址:rpm出现"error: %preun( ) scriptlet failed, exit status 1问题作者:luilui参考:http://chgmxx.bokee.com/2316945.html摘录如下:
rpm 安装与卸载 |
在linux里安装程序有两种方法,一种是源程序安装,按照安装包里的readme或者install文件指示,一步步地进行,通常是configure, make, install三部曲。另一种就是rpm包,这个类似windows里常见的安装程序,既可在xwin里双击运行,也可以在终端里输入 rpm -ivh packagename开始安装。 卸装时,用源程序安装的运行make uninstall, 用rpm安装的则仍是使用rpm。 对于接触linux不久的我来说,总感觉这些过程挺麻烦的,时不时会遇到点问题。 今天安装wine的时候,就出了一点岔子,记录下来以为后鉴。 第一次装的wine 版本过高,而且下载的时候一不小心当了for Federa Core的, 结果安装失败。随后重新下载了一个版本低一些的,而再执行安装时由于与前一个安装包的文件冲突,报出许多如下的出错信息。 "file /usr/lib/wine/shdocvw.dll.so from install of wine-20040716-1rh9winehq conflicts with file from package wine-20050310-1fc1winehq" 这时,只能用rpm先卸载原先安装的wine。 $rpm -e wine-20050310-1fc1winehq 不料又出现错误: "error: %preun(wine-20050310-1fc1winehq) scriptlet failed, exit status 1" 经搜索,其解决方法为加 --noscripts 标记来删除RPM。 --noscripts 相当于 --nopre --nopost --nopreun --nopostun。 即卸载命令变为: $rpm -e --noscripts wine-20050310-1fc1winehq 若要查看与RPM关联的scripts,使用--script查询RPM包。 $rpm -q --scripts package 卸载时,若系统里有同一程序的多个安装版本要一起删除,可使用--allmatches标记,如 $ rpm -e --noscripts --allmatches wine 卸载成功后,重新安装新的wine包 $rpm -ivh wine-20040716-1rh9winehq.i386.rpm 现在,通过wine可以在linux里运行for windows的程序了。 |
相关文章推荐
- rpm出现"error: %preun( ) scriptlet failed, exit status 1问题
- rpm删除出现”error: %preun( ) scriptlet failed, exit status 1解决方法
- Red Hat 操作系统 rpm 卸载软件提示"error: %preun( ) scriptlet failed, exit status 1"
- rpm error: %preun(xxx) scriptlet failed, exit status1
- yum 卸载 error: %preun(tengine-2.1.0-1.el6.x86_64) scriptlet failed, exit status 6
- 解决yum/rpm安装时出现的“error: install: %pre scriptlet failed”类似错误
- 解决yum/rpm安装时出现的“error: install: %pre scriptlet failed”类似错误
- yum卸载失败Error in PREUN scriptlet in rpm package postgresql-server
- 安装/卸载 Realplayer RPM 包时提示 scriptlet failed, exit status 1
- 笨方法学Python出现问题script, user_name=argv ValueError: need more than 1 value to unpack
- MySQL 出现 ERROR 1396 (HY000): Operation CREATE USER failed for ‘xxx’ 问题的解决方法
- Sql Server 2008 R2出现"provider:命名管道提供程序,error:40"问题,无法登录数据库 做个记录
- 安装python模块时出现:error: Setup script exited with error: command 'gcc' failed with exit status 1
- yum error in PREUN scriptlet when removing packages
- 解决关于 在android studio 出现的 DELETE_FAILED_INTERNAL_ERROR Error while Installing APK 问题
- 关于JCreator在编译程序时出现的"Error:Invalid path"问题的解决方法
- 老版本的linux内核中mtd test 出现 mtd_oobtest: error: verify failed at 0xXXXX 问题
- 在Eclipse中运行C++程序出现"Launchfailed. Binary not foud"和"Program file notSpecified"的问题
- eclipse 工程导入到Android Studio 出现的问题Error:Execution failed for task ':app:mergeDebugResources'. >
- Sql Server 2008 出现"provider:命名管道提供程序,error:40"问题,无法登录数据库