LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-13-2017, 04:06 AM   #1
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
yum update problem


hello everyone
i was updating centos server then i got this error of dulicate packages( pls see the attached jpg)
i tried to cleanup duplicates as suggested online posts.
package-cleanup --cleandupes does not remove duplicates.

this problem occurred when server was rebooted due to power failure while server was updating.
now im not able to update my system. centos 7 64 bit
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-05-13 14-25-34.png
Views:	280
Size:	173.3 KB
ID:	25000  
 
Old 05-13-2017, 06:52 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I never used Centos nor Yum, but an Internet search for yum rebuild corrupted database leads to these web pages:
http://centoshowtos.org/package-mana...-yum-database/
https://ma.ttias.be/rebuilding-yum-rpm-database/

That's all I know.
 
1 members found this post helpful.
Old 05-30-2017, 06:14 AM   #3
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
check the conflict packages & remove it

like
Avahi have install package is 0.6.31-17.el7
but your are trying to install AVahi having 0.6.31-15

remove the 0.6.31-17.el7 and install the current one which you want to install
 
Old 05-31-2017, 03:36 AM   #4
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
I'm not sure removing conflicting packages individually is a good idea. It probably makes no difference when it comes to 'avahi' for instance, but there could be important software installed on your operating system that depends on those packages and yum will uninstall that too if you remove the dependencies. So I'd also suggest rebuilding the yum clean all, update.
 
Old 05-31-2017, 03:50 AM   #5
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
Actually i have face same issue and i have resolve it in this manner, so as per the shared screen shot these packages are conflicting.

regarding the rebuilding of yum that even not resolve my issue. so i think if nothing is work then he can try this option
 
Old 05-31-2017, 03:53 AM   #6
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
I'm not saying that it can't be done that way, I'm just saying that it's risky if other programs are dependent on those packages. So you kind of have to know what you're doing, otherwise you might end up deleting more than you actually intended. It's barely a universal solution for this situation. Fixing it through rpm and yum is a much cleaner solution.
 
Old 06-05-2017, 03:05 AM   #7
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Original Poster
Rep: Reputation: 13
i read few posts online that suggest to remove individual packages from database.
Code:
# rpm -e --justdb PakageName
there are more than 300 packages conflicting and which are dependent or have dependencies which requires the package on the system.
i yet in search to get it work.
 
Old 06-06-2017, 11:11 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The screen shot shows 'found 333 existing rpmdb problems'.
I really think you'll have rebuild the rpmdb to even stand a chance.
See the links in post #2
 
Old 06-20-2017, 02:39 AM   #9
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by chrism01 View Post
The screen shot shows 'found 333 existing rpmdb problems'.
I really think you'll have rebuild the rpmdb to even stand a chance.
See the links in post #2
Thanx chris,
i tried those links but that does not worked.Rebuild database as suggested and ran "yum clean all" "yum update"
still i got those conflicting packages.I ran those commands with sudo user as well as root.
 
Old 06-20-2017, 01:00 PM   #10
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Do you have more than one repo installed? I've seen this when there was more than one repo installed. The fix was to turn off the repo that was causing the conflicts.
 
Old 06-22-2017, 11:24 AM   #11
sgrlscz
Member
 
Registered: Aug 2008
Posts: 123

Rep: Reputation: 84
For aborted updates, yum-complete-transaction can often resolve it. It's provided in the yum-utils package. When you run the command, it will tell you what it's going to do and ask for confirmation, so you can abort if you're worried.

You can find out information about the aborted transaction in /var/lib/yum. The transaction-all-<timestamp> file has the list of what was going to be done, and transaction-done-<timestamp> has what was actually completed, so the difference between the two is what is left to be completed.

One note, I've found that if the kernel was upgraded as part of the aborted yum update, the yum-complete-transaction doesn't seem to handle that correctly, and you either end up with missing modules or a corrupt initramfs or both. Because of that, I usually reinstall the kernel after the yum-complete-transaction just to be safe.
 
Old 07-06-2017, 01:31 AM   #12
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by sgrlscz View Post
For aborted updates, yum-complete-transaction can often resolve it. It's provided in the yum-utils package. When you run the command, it will tell you what it's going to do and ask for confirmation, so you can abort if you're worried.

You can find out information about the aborted transaction in /var/lib/yum. The transaction-all-<timestamp> file has the list of what was going to be done, and transaction-done-<timestamp> has what was actually completed, so the difference between the two is what is left to be completed.

One note, I've found that if the kernel was upgraded as part of the aborted yum update, the yum-complete-transaction doesn't seem to handle that correctly, and you either end up with missing modules or a corrupt initramfs or both. Because of that, I usually reinstall the kernel after the yum-complete-transaction just to be safe.
no incomplete transactions left..! thats what i get

its worrying me...
 
Old 07-11-2017, 03:36 AM   #13
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Original Poster
Rep: Reputation: 13
so, excluding avahi from update worked for me.

Code:
# yum -x avahi* update
but i had to do it every time whenever update .
if only network manager uses it for auto connection of network will it be safe to disable/remove it?
 
Old 07-17-2017, 12:27 AM   #14
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Original Poster
Rep: Reputation: 13
After updating to new kernel , i once again ran # package-cleanup --cleandupes and # package-cleanup --orphans. And then rebuild database then everything is now working as before.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with yum update lamou23 Red Hat 4 08-27-2010 11:44 PM
yum update problem pin2 Linux - Newbie 3 10-02-2008 11:13 PM
yum update problem mickeyboa Fedora 2 10-04-2006 12:43 PM
yum update problem live2 Fedora 3 11-14-2005 03:16 PM
yum update problem hraposo Fedora 2 08-29-2004 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration