ubuntu 学习二(RPM)

我在卸载一个软件的时候碰到下面的issue。

warning: waiting for transaction lock on /var/lib/rpm/__db.000

在网上找了一下,说是后台有个Berkeley的数据库。下面是原文。

The second warning indicates either something else has the backend Berkeley database temporarily locked
(like that little Update applet, which should soon let it go); or there is a stale lock left on the database.

If it is waiting forever on the database lock, you can try removing it and see if that allows the install to proceed.
Worse comes to worse, there is an rpm command to rebuild the database.

Let us know what happens with the '-ivh'.

 

因为prm数据库出现损坏导致,可能导致多数rpm软件的升级、安装或者删除都会有问题。
此错误,请以root身份输入以下命令:
     rm -f /var/lib/rpm/__db.*
     rpm --rebuilddb
     yum clean all

 

你应该找一下,也许有上面进程打开了这个文件。

 

我们可以启动软件

sh --debugger test.sh

 

 

Is there a way of setting RPM's dbpath other than with the command lineoption "--dbpath"?I've tried using a /etc/rpmrc (as suggested both by the book "MaximumRPM" and the documentation athttp://www.rpm.org/max-rpm/s1-rpmrc-file-rpmrc-file-syntax.html) with dbpath:/usr/local/rpmbut that gives me an error: # rpm --showrc | egrep dbpath error: bad option 'dbpath' at /etc/rpmrc:1 -14: _dbpath %{_var}/lib/rpm -14: _dbpath_rebuild %{_dbpath}Since I've used the syntax specified, I'm lead to ask, does /etc/rpmrcwork at all?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值