Fedora Linux Support Community & Resources Center
  #1  
Old 3rd January 2017, 06:56 PM
BradInIT Offline
Registered User
 
Join Date: Jan 2017
Location: Indiana
Posts: 3
windows_98_nt_2000chrome
Fedora Rawhide DNF error

I lost power to a server I have running Rawhide. The power was lost mid DNF upgrade. I'm not sure what it means exactly but regardless of what command I type. If it is "dnf (etc)" I get an error message.

Error: Command "repoquery" already defined

I'm not sure why this is. If anyone has any clue how to fix it I would appreciate it. Do I need to completely reinstall? This is the last option I would like to take.
Reply With Quote
  #2  
Old 4th January 2017, 07:13 PM
CaperUser Offline
Registered User
 
Join Date: Nov 2008
Posts: 27
linuxfedorafirefox
Re: Fedora Rawhide DNF error

Have you tried

Code:
dnf clean all
as root?

Then try

Code:
dnf repolist
or

Code:
dnf update
Dale
Reply With Quote
  #3  
Old 4th January 2017, 08:11 PM
BradInIT Offline
Registered User
 
Join Date: Jan 2017
Location: Indiana
Posts: 3
windows_7chrome
Re: Fedora Rawhide DNF error

Quote:
Originally Posted by CaperUser View Post
Have you tried

Code:
dnf clean all
as root?

Then try

Code:
dnf repolist
or

Code:
dnf update
Dale

Thank you, I tried all of those and have enclosed a photo of the issue. Any dnf command causes this same error.

Reply With Quote
  #4  
Old 5th January 2017, 02:05 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: In your closet
Posts: 15,469
linuxubuntufirefox
Re: Fedora Rawhide DNF error

Had you made any changes to the dnf configuration file prior to the power outage?
__________________
Glenn
The Bassinator
© ®
Reply With Quote
  #5  
Old 5th January 2017, 11:35 AM
srakitnican Offline
Registered User
 
Join Date: Oct 2011
Posts: 1,133
linuxchrome
Re: Fedora Rawhide DNF error

It seems like some libraries dnf is using might got corrupted. Try to download and reinstall manually with rpm.

You can find dnf packages here: https://koji.fedoraproject.org/koji/...ackageID=14310
Reply With Quote
  #6  
Old 11th January 2017, 09:55 PM
BradInIT Offline
Registered User
 
Join Date: Jan 2017
Location: Indiana
Posts: 3
windows_98_nt_2000chrome
Re: Fedora Rawhide DNF error

Quote:
Originally Posted by srakitnican View Post
It seems like some libraries dnf is using might got corrupted. Try to download and reinstall manually with rpm.

You can find dnf packages here: https://koji.fedoraproject.org/koji/...ackageID=14310
So I keep trying this as it seems the most promising option. However I am not used to RPM installations. I amusing the command

rpm -U dnf-2.0.0-2.fc26.src.rpm

as well as

rpm -i dnf-2.0.0-2.fc26.src.rpm

then I rerun DNF with the same error. It gives the information:

Warning: user mockbuild does not exist - using root
Reply With Quote
  #7  
Old 11th January 2017, 11:19 PM
CaperUser Offline
Registered User
 
Join Date: Nov 2008
Posts: 27
linuxfedorafirefox
Re: Fedora Rawhide DNF error

You need to install the .rpm file, not the .src.rpm file.
So, something like

rpm -i dnf-2.0.0-2.fc26.noarch.rpm

You may need to use the --force option as well.

You may also want to consider rebuilding the rpm database like described in http://forums.fedoraforum.org/showthread.php?t=282193
Reply With Quote
Reply

Tags
dnf, error, fedora, rawhide

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Package: fedora-release-rawhide-17-0.9.noarch... gorogoren F17 Development Forum 4 10th May 2012 01:27 AM
Preupgrade F11->Rawhide error VariousHobbies Using Fedora 2 11th November 2009 11:17 PM
yum update error - rawhide!!! pgw Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 9 28th February 2009 03:47 AM
Yum Python error in rawhide virshu Using Fedora 6 1st December 2008 07:34 PM
Error while updating to rawhide kost-bebix Fedora Focus 1 18th July 2008 02:29 AM


Current GMT-time: 19:14 (Thursday, 19-01-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat