Yum Update hung or ssh disconnected during yum update

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

  • While updating the system using yum it throws an error: “There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them”.
  • yum update interrupted and yum-complete-transaction wants to remove 253 pkgs
  • Running yum-complete-transaction renders the system inoperable after removing system critical packages

 

 

Resolution

  • While updating the system using yum if it finds incomplete or aborted yum transactions on a system it displays the message “There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.”

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



20 thoughts on “Yum Update hung or ssh disconnected during yum update”

  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

  5. 587648 512995Beging with the entire wales effectively before just about any planking. Our own wales can easily compilation of calculated forums those thickness analysts could be the related to some of the shell planking along with more significant damage so that they project after dark planking. planking 39708

  6. 364227 842388It is a shame you dont have a donate button! Id most undoubtedly donate to this outstanding internet website! I suppose within the meantime ill be happy with bookmarking and putting your Rss feed to my Google account. I appear forward to fresh updates and will share this weblog with my Facebook group: ) 626027

  7. Elevate Your Entire Tasks with Merlin, the AI-Powered Chrome Extension for Productivity

    Merlin is your all-in-one work assistant, built for time-saving, boost creativity, and streamline your tasks with ease. Featuring state-of-the-art AI including GPT-4 AI, Claude 3 AI, and Gemini 1.5, this extension integrates into your browser to enhance usability on various platforms.

    Highlights Include:
    – Comprehensive AI Toolkit: Access a suite of AI tools right in your web browser.
    – Simplify Content Tasks: Generate, edit, and summarize content for LinkedIn, Gmail, X (formerly Twitter), and other channels.
    – Quick Summaries on Demand: Easily distill information emails, or selected content on your screen.
    – Smarter Research Made Easy: Do research faster and extract insights in record time.
    – Works Where You Do: Use Merlin without breaking your focus or stepping out of your flow.
    – Lifetime Access: Unlock unlimited AI capabilities with a one-time purchase.

    Enhance your productivity—get Merlin now!

    Get Merlin now on AppSumo: https://bit.ly/merlinainow

    When you no longer want to receive additional correspondence from me, feel free to reply with the text: “No, Thank YOU”
    Via Miguel De Cervantes 2, Montauk, NY, USA, 33090

  8. Looking to declutter or find amazing deals? ️

    Mercari is the simple, secure way to:

    ✅ Sell your unwanted items hassle-free

    ✅ Discover hidden gems at great prices

    ✅ Get fast shipping and secure payments

    Join millions who are turning clutter into cash and shopping smarter!

    https://merc.li/J6Ra5cTMb

  9. 174932 803670Following study a few of the content in your web site now, we genuinely such as your technique of blogging. I bookmarked it to my bookmark internet website list and will also be checking back soon. Pls take a look at my web-site likewise and make me aware what you believe. 892636

Leave a Reply

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