On Monday 07 February 2005 12:51 am, Craig White wrote:
> I'm doubting that you actually did the steps of...
>
> cd /var/lib
> cp rpm rpm.bak
> cd rpm
> cp Packages Packages.bak
> db_dump Packages | db_load Packages
>
> those were the only steps that 'could' repair the file Packages. In
> fact, it is the last step that would repair Packages. Everything else
> was to provide backups should the 'db_dump Packages | db_load Packages'
> step go awry. The dump to a text file was only for S & G's
To alleviate any doubt, I tried one more time. With feeling!
# cp rpm rpm.bak
cp: omitting directory `rpm'
# cp -r rpm rpm.bak
# cd rpm
# cp Packages Packages.bak
# db_dump Packages | db_load Packages
# rpm --rebuilddb -vv
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.4288
D: creating directory /var/lib/rpmrebuilddb.4288
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening db environment /var/lib/rpmrebuilddb.4288/Packages create:mpool
D: opening db index /var/lib/rpmrebuilddb.4288/Packages create
mode=0x42
D: read h# 2 Header sanity check: OK
D: +++ h# 1 Header sanity check: OK
D: opening db index /var/lib/rpmrebuilddb.4288/Name create mode=0x42
D: adding "gpg-pubkey" to Name index.
D: opening db index /var/lib/rpmrebuilddb.4288/Group create mode=0x42
D: adding "Public Keys" to Group index.
D: opening db index /var/lib/rpmrebuilddb.4288/Providename create
mode=0x42
D: adding 2 entries to Providename index.
D: opening db index /var/lib/rpmrebuilddb.4288/Provideversion create
mode=0x42
D: adding 2 entries to Provideversion index.
D: opening db index /var/lib/rpmrebuilddb.4288/Installtid create
mode=0x42
D: adding 1 entries to Installtid index.
D: opening db index /var/lib/rpmrebuilddb.4288/Pubkeys create mode=0x42
D: adding 1 entries to Pubkeys index.
D: read h# 1 Header sanity check: OK
D: +++ h# 2 Header sanity check: OK
D: adding "gpg-pubkey" to Name index.
D: adding "Public Keys" to Group index.
D: adding 2 entries to Providename index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Pubkeys index.
D: read h# 3 Header sanity check: OK
D: +++ h# 3 Header sanity check: OK
D: adding "gpg-pubkey" to Name index.
D: adding "Public Keys" to Group index.
D: adding 2 entries to Providename index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Pubkeys index.
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.4288/Pubkeys
D: closed db index /var/lib/rpmrebuilddb.4288/Installtid
D: closed db index /var/lib/rpmrebuilddb.4288/Provideversion
D: closed db index /var/lib/rpmrebuilddb.4288/Providename
D: closed db index /var/lib/rpmrebuilddb.4288/Group
D: closed db index /var/lib/rpmrebuilddb.4288/Name
D: closed db index /var/lib/rpmrebuilddb.4288/Packages
D: closed db environment /var/lib/rpmrebuilddb.4288/Packages
D: removing directory /var/lib/rpmrebuilddb.4288
# apt-get update
Get:1 http://mirrors.usc.edu fedora/2/i386 release [2202B]
Get:2 http://sluglug.ucsc.edu fedora/2 release [505B]
Get:3 http://rpm.livna.org fedora/2/i386 release [1129B]
Fetched 3836B in 0s (4488B/s)
Hit http://sluglug.ucsc.edu fedora/2/macromedia pkglist
Hit http://sluglug.ucsc.edu fedora/2/macromedia release
Hit http://sluglug.ucsc.edu fedora/2/macromedia srclist
Hit http://mirrors.usc.edu fedora/2/i386/os pkglist
Hit http://mirrors.usc.edu fedora/2/i386/os release
Hit http://mirrors.usc.edu fedora/2/i386/updates pkglist
Hit http://rpm.livna.org fedora/2/i386/stable pkglist
Hit http://mirrors.usc.edu fedora/2/i386/updates release
Hit http://mirrors.usc.edu fedora/2/i386/os srclist
Hit http://mirrors.usc.edu fedora/2/i386/updates srclist
Hit http://mirrors.usc.edu fedora/2/i386/stable pkglist
Hit http://rpm.livna.org fedora/2/i386/stable release
Hit http://mirrors.usc.edu fedora/2/i386/stable release
Hit http://mirrors.usc.edu fedora/2/i386/stable srclist
Hit http://rpm.livna.org fedora/2/i386/unstable pkglist
Hit http://rpm.livna.org fedora/2/i386/unstable release
Hit http://rpm.livna.org fedora/2/i386/testing pkglist
Hit http://rpm.livna.org fedora/2/i386/testing release
Hit http://rpm.livna.org fedora/2/i386/stable srclist
Hit http://rpm.livna.org fedora/2/i386/unstable srclist
Hit http://rpm.livna.org fedora/2/i386/testing srclist
Reading Package Lists... Done
Building Dependency Tree... Done
# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
# apt-get install bash
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
basesystem (8.0-3)
filesystem (2.2.4-1)
glibc (2.3.3-27.1)
glibc-common (2.3.3-27.1)
libgcc (3.3.3-7)
libtermcap (2.0.8-38)
mktemp (1.5-7)
setup (2.5.33-1)
termcap (11.0.1-18.1)
tzdata (2005c-1.fc2)
The following NEW packages will be installed:
basesystem (8.0-3)
bash (2.05b-38)
filesystem (2.2.4-1)
glibc (2.3.3-27.1)
glibc-common (2.3.3-27.1)
libgcc (3.3.3-7)
libtermcap (2.0.8-38)
mktemp (1.5-7)
setup (2.5.33-1)
termcap (11.0.1-18.1)
tzdata (2005c-1.fc2)
0 upgraded, 11 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/22.1MB of archives.
After unpacking 68.8MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
#
I'd say it didn't work. No need to worry as I'll take care of it Tuesday
evening with FC3. At least that is my plan.
Alan
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss