Red Hat Bugzilla – Bug 122620
yum won't gracefully restart if interrupted during package install
Last modified: 2014-01-21 17:49:22 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040422
Description of problem:
Running yum via sudo generated errors of the type
warning: setexeccon(user_u:user_r:rpm_script_t) fails from context
"user_u:user_r:user_sudo_t": Invalid argument
which is a separate issue. But when breaking out of this yum run,
switching user to root, and rerunning "yum -y update", yum states that
there are no actions to take.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. sudo yum -y update
2. Observe problem related to sudo'ing the yum update.
3. Press <ctrl>-c to break out of yum during package installation.
4. su -
5. yum -y update
6. Watch in amazement as there's nothing to do, even though the
previous yum job isn't finished.
Actual Results: yum didn't finish.
Expected Results: yum should have installed the rest of the packages.
Created attachment 100040 [details]
The full transcript of the sudo yum and su - yum sessions
*** This bug has been marked as a duplicate of 122624 ***
This is not a duplicate of 122624. This is a situation where yum
doesn't pick up gracefully when interrupted. yum wasn't finished with
its previous run when interrupted.
Then this is a feature request, and the yum package will
be fixed when the maintainer decides if/when to add restartability