Koozali.org: home of the SME Server

yum update issue

Offline xof

  • *
  • 11
  • +0/-0
yum update issue
« on: August 08, 2010, 10:42:59 AM »
Hi,

I was running 'yum update' through a Putty session when that session crashed. Stupid me! Forgot to use 'screen' this time.

I guess 'yum update' has been brutally stopped in the middle. When I run the command again now I get missing dependencies.

Any way how to fix this?

I've had this with another CentOS machine as well (not SME) and I fixed it with running the command yum-complete-transaction. That command doesn't seem to work in SME though...

Any hints/tips?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: yum update issue
« Reply #1 on: August 08, 2010, 05:49:35 PM »
please report here the message.. let's try to solve..

Offline xof

  • *
  • 11
  • +0/-0
Re: yum update issue
« Reply #2 on: August 08, 2010, 06:29:38 PM »
As this was kind of an urgent issue, I reverted back to a disk image I took before running the 'yum update'.

After putting the image back to the disk, I ran the update command again (from the GUI this time). All is well now.

I'm still wondering what happens when you interrupt yum while updating the system. I guess there's no fixed answer to that. Probably depends on where it is in the process. Still it's strange that running yum-complete-transaction on another CentOS machine fixes the issue and SME hasn't got that package on board...

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: yum update issue
« Reply #3 on: August 08, 2010, 06:33:58 PM »
I'm still wondering what happens when you interrupt yum while updating the system. I guess there's no fixed answer to that. Probably depends on where it is in the process.

indeed

Quote
Still it's strange that running yum-complete-transaction on another CentOS machine fixes the issue and SME hasn't got that package on board...

well, open a NFR in bugzilla..

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: yum update issue
« Reply #4 on: August 08, 2010, 08:29:27 PM »
Still it's strange that running yum-complete-transaction on another CentOS machine fixes the issue and SME hasn't got that package on board...
That is because CentOS installs yum-utils which provides this tool ans SME Server does not as this is not required for normal use. Your issue originates from an interrupted yum update, which should not occur when using the normal SME Server methods. You should be able to install this manually if you like to be able to run it.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: yum update issue
« Reply #5 on: August 08, 2010, 11:56:15 PM »
xof

This may clean things up, and allow you to correctly run yum again. There have been similar reports recently fixed this way, without the need to install additional tools. It is in the FAQ too, so when you have an urgent need, please read available resources, as you have lost the opportunity to test that fix now under the circumstances you encountered.

yum clean all
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.