-
3rd January 2017, 06:56 PM
#1
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.
-
4th January 2017, 07:13 PM
#2
Re: Fedora Rawhide DNF error
Have you tried
as root?
Then try
or
Dale
-
4th January 2017, 08:11 PM
#3
Re: Fedora Rawhide DNF error
Originally Posted by
CaperUser
Have you tried
as root?
Then try
or
Dale
Thank you, I tried all of those and have enclosed a photo of the issue. Any dnf command causes this same error.
-
5th January 2017, 02:05 AM
#4
Re: Fedora Rawhide DNF error
Had you made any changes to the dnf configuration file prior to the power outage?
-
5th January 2017, 11:35 AM
#5
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
-
11th January 2017, 09:55 PM
#6
Re: Fedora Rawhide DNF error
Originally Posted by
srakitnican
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
-
11th January 2017, 11:19 PM
#7
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
-
5th February 2017, 07:06 AM
#8
Re: Fedora Rawhide DNF error
Originally Posted by
BradInIT
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
This warning it gives you, since you are actually installing sources, usually written in C.
The general policy in Linux is that all package's source codes installation, configuration and compilation/linkage are done as normal user. make install is ONLY operation to be done as root : root. Since Linux usually does not track many users at the time created, it uses for this purposes (by default) one called mockbuild : mockbuild, which should be created at Fedora installation time.
Why it is not created (for you) then, no idea?!
_nobody_
Similar Threads
-
By gorogoren in forum F17 Development Forum
Replies: 4
Last Post: 10th May 2012, 01:27 AM
-
By VariousHobbies in forum Using Fedora
Replies: 2
Last Post: 11th November 2009, 11:17 PM
-
By pgw in forum Alpha, Beta & Snapshots Discussions (Fedora 11 Only)
Replies: 9
Last Post: 28th February 2009, 03:47 AM
-
By virshu in forum Using Fedora
Replies: 6
Last Post: 1st December 2008, 07:34 PM
-
By kost-bebix in forum Fedora Focus
Replies: 1
Last Post: 18th July 2008, 02:29 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]