[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#215239: libdb4.2 and apt



> I think I have this mostly ready to go.  The upgrade code doesn't seem to
> work, though, at least for existing libdb2 databases.

Ugh.

> E: Unable to open DB file /tmp/cache.db: Invalid argument
> i.e., EINVAL is being returned, rather than DB_OLD_VERSION.  Is this
> supposed to work, or are these databases just too old?

It works for me, though I don't know that I'm doing the same thing.
If I use atp-ftparchive from sid, I create a
cache.db: Berkeley DB (Hash, version 5, native byte-order)
Then, I copy the directory of debs and .db file to a machine with
db4.2-using apt-ftparchive, run the same command, and it
upgrades it to
cache.db: Berkeley DB (Hash, version 7, native byte-order)

If I do it from scratch, I get
cache.db:    Berkeley DB (Hash, version 8, native byte-order)

Is your cache.db older than Hash version 5?

> (I changed the error message to use db_strerror rather than Errno, since
> 'err' is being used instead of errno)

> Did it exist at the time?

I believe so.



Reply to: