<---- template headericclude ----->
Fedora Rawhide DNF error
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2017
    Location
    Indiana
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Join Date
    Nov 2008
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora Rawhide DNF error

    Have you tried

    Code:
    dnf clean all
    as root?

    Then try

    Code:
    dnf repolist
    or

    Code:
    dnf update
    Dale

  3. #3
    Join Date
    Jan 2017
    Location
    Indiana
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora Rawhide DNF error

    Quote Originally Posted by CaperUser
    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.


  4. #4
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,270
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora Rawhide DNF error

    Had you made any changes to the dnf configuration file prior to the power outage?

  5. #5
    Join Date
    Oct 2011
    Posts
    1,917
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  6. #6
    Join Date
    Jan 2017
    Location
    Indiana
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora Rawhide DNF error

    Quote Originally Posted by srakitnican
    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

  7. #7
    Join Date
    Nov 2008
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  8. #8
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Re: Fedora Rawhide DNF error

    Quote 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

  1. Error: Package: fedora-release-rawhide-17-0.9.noarch...
    By gorogoren in forum F17 Development Forum
    Replies: 4
    Last Post: 10th May 2012, 01:27 AM
  2. Preupgrade F11->Rawhide error
    By VariousHobbies in forum Using Fedora
    Replies: 2
    Last Post: 11th November 2009, 11:17 PM
  3. yum update error - rawhide!!!
    By pgw in forum Alpha, Beta & Snapshots Discussions (Fedora 11 Only)
    Replies: 9
    Last Post: 28th February 2009, 03:47 AM
  4. Yum Python error in rawhide
    By virshu in forum Using Fedora
    Replies: 6
    Last Post: 1st December 2008, 07:34 PM
  5. Error while updating to rawhide
    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
  •  
[[template footer(Guest)]]