Hi,
I had a power shortage while I ran "yum update". After booting up, yum told me to run yum-complete-transaction.
However yum-complete-transaction reported (see attachement), it would: Install 7 Package(s) Upgrade 205 Package(s) Remove 209 Package(s)
So I canceld, afraid of having a lot of stiff accidentially removed.
Is it safe to let yum-complete-transaction continue?
Thanks, Clemens
On Fri, 2009-10-09 at 17:01 -0400, Clemens Eisserer wrote:
Hi,
I had a power shortage while I ran "yum update". After booting up, yum told me to run yum-complete-transaction.
However yum-complete-transaction reported (see attachement), it would: Install 7 Package(s) Upgrade 205 Package(s) Remove 209 Package(s)
So I canceld, afraid of having a lot of stiff accidentially removed.
Is it safe to let yum-complete-transaction continue?
How can we possibly know? If you need to Install/Upgrade/Remove the respective numbers of packages (e.g. you haven't run yum upgrade in a while and you're using Rawhide), then yes. Otherwise no.
poc
On Fri, Oct 9, 2009 at 22:01, Clemens Eisserer linuxhippy@gmail.com wrote:
Hi,
I had a power shortage while I ran "yum update". After booting up, yum told me to run yum-complete-transaction.
However yum-complete-transaction reported (see attachement), it would: Install 7 Package(s) Upgrade 205 Package(s) Remove 209 Package(s)
So I canceld, afraid of having a lot of stiff accidentially removed.
Is it safe to let yum-complete-transaction continue?
The packages listed as to be removed are the old packages you are updating from so yes they are safe to remove. Updating consists of installing the new and updated packages (often shown during the transaction as updating or installing) and then the old version is removed (normally shown as cleanup during transactions) so install and upgrade are the packages being installed and updated. Remove is the old packages being cleaned up. Hope that makes it clear.
Ok, now it dies because it says my database is corrupted:
rpmdb: Thread/process 1789/3086182080 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open Packages database in /var/lib/rpm
I guess my options repaing this are rather limited? Any ideas?
Thanks, Clemens
On Fri, 9 Oct 2009, Clemens Eisserer wrote:
Ok, now it dies because it says my database is corrupted:
rpmdb: Thread/process 1789/3086182080 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open Packages database in /var/lib/rpm
I guess my options repaing this are rather limited? Any ideas?
run:
rpm --rebuilddb
and see if that helps.
-sv
Hi Seth,
run: rpm --rebuilddb and see if that helps.
Unfourtunatly not:
[root@localhost ce]# rpm --rebuilddb rpmdb: Thread/process 1789/3086182080 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974)
- Clemens
On Fri, 9 Oct 2009, Clemens Eisserer wrote:
Hi Seth,
run: rpm --rebuilddb and see if that helps.
Unfourtunatly not:
[root@localhost ce]# rpm --rebuilddb rpmdb: Thread/process 1789/3086182080 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974)
cd /var/lib/rpm rm -f __db*
then rpm --rebuilddb
-sv
On Fri, Oct 9, 2009 at 3:01 PM, Clemens Eisserer linuxhippy@gmail.com wrote:
Hi,
I had a power shortage while I ran "yum update". After booting up, yum told me to run yum-complete-transaction.
However yum-complete-transaction reported (see attachement), it would: Install 7 Package(s) Upgrade 205 Package(s) Remove 209 Package(s)
So I canceld, afraid of having a lot of stiff accidentially removed.
Is it safe to let yum-complete-transaction continue?
Thanks, Clemens
Watch out!
Same happened to me and I mistakenly let it proceed. It removed lots and lots of VITAL packages. As far as I can see, it acted as if it has installed the new updates, but it had not. Then it removed very imprortant things and it was very difficult to recover.
I'd like to know how to "clear" the yum system so that yum-complete-transaction does not think it needs to "help" me any more.
pj
On 11/16/2009 11:08 AM, Paul Johnson wrote:
Same happened to me and I mistakenly let it proceed. It removed lots and lots of VITAL packages. As far as I can see, it acted as if it has installed the new updates, but it had not. Then it removed very imprortant things and it was very difficult to recover.
Was a bug report filed?
I'd like to know how to "clear" the yum system so that yum-complete-transaction does not think it needs to "help" me any more.
yum-complete-transaction --cleanup-only
Rahul
On Sun, 15 Nov 2009, Paul Johnson wrote:
On Fri, Oct 9, 2009 at 3:01 PM, Clemens Eisserer linuxhippy@gmail.com wrote:
Hi,
I had a power shortage while I ran "yum update". After booting up, yum told me to run yum-complete-transaction.
However yum-complete-transaction reported (see attachement), it would: Install 7 Package(s) Upgrade 205 Package(s) Remove 209 Package(s)
So I canceld, afraid of having a lot of stiff accidentially removed.
Is it safe to let yum-complete-transaction continue?
Thanks, Clemens
Watch out!
Same happened to me and I mistakenly let it proceed. It removed lots and lots of VITAL packages. As far as I can see, it acted as if it has installed the new updates, but it had not. Then it removed very imprortant things and it was very difficult to recover.
I'd like to know how to "clear" the yum system so that yum-complete-transaction does not think it needs to "help" me any more.
yum-complete-transaction --cleanup-only
which is in the --help output.
Also if you have a good case could you run the latest yum-complete-transaction from here:
http://yum.baseurl.org/gitweb?p=yum-utils.git;a=blob_plain;f=yum-complete-tr...
it adds some more error checking and in my tests it does a pretty good job.
thanks, -sv