RPM Community Forums

Mailing List Message of <rpm-users>

Re: Fwd: rpmdb: c_put: attempt to modify a read-only tree

From: Marc MERLIN <marc_rpm@merlins.org>
Date: Tue 11 May 2010 - 01:44:45 CEST
Message-ID: <20100510234445.GS6064@merlins.org>
On Mon, May 10, 2010 at 07:22:06PM -0400, Jeff Johnson wrote:
> >> muny20:/lib# rpm -e --test sed
> >> rpmdb: c_put: attempt to modify a read-only tree
> >> error: db4 error(13) from dbcursor->c_put: Permission denied
> >> rpmdb: c_put: attempt to modify a read-only tree
> >> error: db4 error(13) from dbcursor->c_put: Permission denied
> >> rpmdb: c_put: attempt to modify a read-only tree
> >> error: db4 error(13) from dbcursor->c_put: Permission denied
> >> error: Failed dependencies:
> >>       sed is needed by (installed) console-tools-19990829-34.i386
> >>       sed is needed by (installed) pam-0.74-22.i386
> >>       /bin/sed is needed by (installed) initscripts-5.84-1.i386
> >>
> >
> > Hmmm ... I personally have never seen this error msg that I recall ...

So, for the archives, assuming this message makes it to the list:

I'll save you the details. The problem is that I didn't want to upgrade the
DB to btree and I commented out 2 lines too many in /usr/lib/rpm/macros:

# "Packages" should have shared/exclusive fcntl(2) lock using "lockdbfd".
%_dbi_config_Packages           %{_dbi_htconfig} lockdbfd

# "Depends" is a per-transaction cache of known dependency resolutions.
%_dbi_config_Depends            %{_dbi_htconfig} temporary private

Once I uncommented those, things were good again. I didn't catch it right away
because installs worked fine but upgrades or deletes were putting the error. Doh!

(I commented out the lines around those to turn off new indexes I didn't
want and btree support).

Sorry for the false alarm :)

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
Received on Tue May 11 01:45:08 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.