Yum gives error: “There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them”

 

Environment:

Red hat / CentOS 5-6-7

 

Issue

 

 

Resolution

If due to some reason the previous transaction was incomplete or aborted then on the next yum install or update command, it would give this message. The “yum-complete-transaction” command would help to complete the previous incomplete or aborted transactions.

On execution of “yum-complete-transaction” it gives the list of packages which will be installed and removed to complete the previous transaction. It asks for confirmation if you would like to continue. On entering ‘Y’ it will complete the transaction. Before continuing (i.e hitting ‘Y’) *it is important to verify the list of packages that will be installed or removed by “yum-complete-transaction” .

Note: At the time of writing, there is a bug with “yum-complete-transaction” where, depending on the list of packages to install or remove from the previous transaction, it might offer to remove almost all the packages on the system. It is important to review the Transaction Summary and package list before hitting ‘Y’ to continue. If you are experiencing this issue, please run the following:

 

# package-cleanup --dupes
# yum-complete-transaction --cleanup-only
# yum update yum yum-utils
# yum-complete-transaction  (Note: At this point, it should not offer to remove so many packages. Please do check to make sure though.)
# yum clean all
# yum update

Example:
   # yum-complete-transaction
    Loaded plugins: rhnplugin
    There are 1 outstanding transactions to complete. Finishing the most recent one
    The remaining transaction had 3 elements left to run
    There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
    --> Running transaction check
    ---> Package dmidecode.i386 1:2.9-1.el5 set to be erased
    --> Processing Dependency: dmidecode >= 2.7 for package: hal
    ---> Package dnsmasq.i386 0:2.45-1.el5_2.1 set to be erased
    [..snip..]

    --> Finished Dependency Resolution

    ==================================================================================================================
     Package                               Arch               Version                     Repository             Size
    ==================================================================================================================
    Removing:
     dmidecode                             i386               1:2.9-1.el5                 installed             148 k
     dnsmasq                               i386               2.45-1.el5_2.1              installed             343 k
    Removing for dependencies:
     NetworkManager                        i386               1:0.7.0-9.el5               installed             3.3 M
     NetworkManager-glib                   i386               1:0.7.0-9.el5               installed             154 k

    Transaction Summary
    ==================================================================================================================
    Install      0 Package(s)        
    Update       0 Package(s)        
    Remove      4 Package(s)        

    Is this ok [y/N]:
If you do not want to complete the previous transaction, then use the "--cleanup-only" option. This would clean up only transaction journal files and exit.

Example :

  # yum-complete-transaction --cleanup-only
    Loaded plugins: rhnplugin
    Cleaning up unfinished transaction journals
    Cleaning up 2009-10-06.15:46.06



11 Responses

  1. Hello! I’m Neil, a seasoned professional with over a decade of experience specializing in data entry, data management, including research, processing, and cleansing. I also provide financial accounting services, from managing accounts payable and receivable to reconciliations, invoice handling, and preparing financial statements. Additionally, I offer expert e-commerce support, such as inventory management and invoice processing. I’m skilled at understanding and adapting to your unique processes and proficient in working with any software. My rate ranges from USD 7/hr to USD 12/hr, with special discounts available for part-time and full-time engagements.

    Let’s discuss how I can help streamline and elevate your business—Reach me at venture4help@outlook.com

  2. Hi there,

    I focus in building optimized websites built on Webflow, and here’s the best part: if you’re not completely satisfied with the site we design for you, you don’t pay—simple as that!

    If you’d like to learn more or see examples of our work, just reply to this email. We can discuss how a new site can boost your business.

    Looking forward to hearing from you!

    Thanks,
    Shahar Zohar
    info@rotevcolab.com

    Should you no longer want to receive messages from us again, please reply back to this message saying the words: “No, thank you”.

  3. Hi, are you looking to gather information from different websites or sources, like collecting email addresses, compiling competitor data, finding product reviews, gathering contact details of potential leads, collecting data on market trends, researching business directories, gathering LinkedIn or Twitter profiles, collecting industry statistics, compiling product and price comparisons, or obtaining customer feedback?

    If yes, please send me an email at businessgrowtogether@outlook.com so we can discuss it further!

  4. Hi friend,

    I need your help with a problem I’m having with a young girl. She’s accusing me of disrespecting her, and unfortunately, it’s true. I made a mistake, but I really need your help to resolve this situation.

    Can you please help me? I’m willing to pay for your assistance.

    Please call me back as soon as possible at:

    My whatsapp number: +17852192072
    My phone: +16057866458
    My email: jacobwhiteeagle@proton.me

    Thanks,
    Jacob

Leave a Reply

Your email address will not be published. Required fields are marked *