Why do I have to run 'dnf update' twice?
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18
  1. #1
    Join Date
    Jun 2007
    Posts
    232
    Linux (Fedora) Firefox 64.0

    Why do I have to run 'dnf update' twice?

    Hi,
    It seems like every time I run 'dnf update' it says 'Nothing to do'. If I immediately run it again, it downloads the repo updates and does it's normal update thing.

    Anyone else seeing this? I can't see how this is normal.
    Regards

  2. #2
    Join Date
    Jul 2014
    Location
    EU
    Posts
    315
    Linux Firefox 52.9

    Re: Why do I have to run 'dnf update' twice?

    Hi, I can confirm it on F28. Not in F29 so far.

  3. #3
    Join Date
    Apr 2018
    Location
    Finland
    Posts
    111
    Linux (Fedora) Chrome 70.0.3538.110

    Re: Why do I have to run 'dnf update' twice?

    I've had same problem since updating to F29.

  4. #4
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    5,612
    Linux Firefox 64.0

    Re: Why do I have to run 'dnf update' twice?

    Then run dnf update --refresh
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  5. #5
    Join Date
    Jan 2012
    Location
    auckland
    Posts
    131
    Linux (Fedora) Firefox 64.0

    Re: Why do I have to run 'dnf update' twice?

    This issue has also surfaced for me only since installing f29, as follows:

    [xxxxxx@asus-f29 ~]$ sudo dnf -y upgrade
    [sudo] password for xxxxxx:
    Last metadata expiration check: 7:50:29 ago on Fri 28 Dec 2018 12:19:52 NZDT.
    Dependencies resolved.
    Nothing to do.
    Complete!

    Running the command again straightaway:

    [xxxxxx@asus-f29 ~]$ sudo dnf -y upgrade
    Fedora Modular 29 - x86_64 - Updates 2.2 kB/s | 4.0 kB 00:01
    Fedora 29 - x86_64 - Updates 2.0 kB/s | 4.0 kB 00:02
    Fedora 29 - x86_64 - Updates 1.5 MB/s | 18 MB 00:11
    Dependencies resolved.
    Nothing to do.
    Complete!

    The second run-through always differs by producing "Fedora Modular 29 etc" in the first line. It regularly (though not always) locates and upgrades files not identified by the first command.

    Any thoughts?

  6. #6
    Join Date
    Apr 2018
    Location
    Finland
    Posts
    111
    Linux (Fedora) Chrome 70.0.3538.110

    Re: Why do I have to run 'dnf update' twice?

    Quote Originally Posted by lsatenstein
    Then run dnf update --refresh
    Yeah, it works like expected, but doesn't fix the problem.

  7. #7
    Join Date
    Dec 2013
    Location
    Netherlands
    Posts
    74
    Linux (Fedora) Firefox 64.0

    Re: Why do I have to run 'dnf update' twice?

    as we have seen in other dnf threads - use "dnf upgrade" instead of "dnf update". update is deprecated.
    I have never seen the issue described here. when dnf says "nothing to do" then normally there is nothing to do. I guess "--refresh" is the same as running "dnf clean all && dnf upgrade"

  8. #8
    Join Date
    Apr 2018
    Location
    Finland
    Posts
    111
    Linux (Fedora) Chrome 70.0.3538.110

    Re: Why do I have to run 'dnf update' twice?

    Quote Originally Posted by MarcvdM
    as we have seen in other dnf threads - use "dnf upgrade" instead of "dnf update". update is deprecated.
    I have never seen the issue described here. when dnf says "nothing to do" then normally there is nothing to do. I guess "--refresh" is the same as running "dnf clean all && dnf upgrade"
    I believe "update" is just and alias kind of thing for "upgrade", they should behave exactly same way. (Actually I think that in Fedora 29, even "yum update" and "dnf upgrade" are exactly same thing.) But I will try going with "upgrade" instead of "update", maybe there is something weird going on.

  9. #9
    Join Date
    Jan 2012
    Location
    auckland
    Posts
    131
    Linux (Fedora) Firefox 64.0

    Re: Why do I have to run 'dnf update' twice?

    I am using "upgrade", here is a listing of "dnf upgrade" from today:

    [xxxxxx@asus-f29 ~]$ sudo dnf -y upgrade
    [sudo] password for xxxxxx:
    Last metadata expiration check: 15:11:24 ago on Fri 28 Dec 2018 20:20:16 NZDT.
    Dependencies resolved.
    Nothing to do.
    Complete!
    [xxxxxx@asus-f29 ~]$ sudo dnf -y upgrade
    Fedora Modular 29 - x86_64 - Updates 1.9 kB/s | 3.6 kB 00:01
    Fedora 29 - x86_64 - Updates 20 kB/s | 45 kB 00:02
    Fedora 29 - x86_64 - Updates 1.6 MB/s | 18 MB 00:11
    Dependencies resolved.
    ================================================== ==============================
    Package Arch Version Repository Size
    ================================================== ==============================
    Upgrading:
    breeze-icon-theme noarch 5.53.0-1.fc29 updates 4.5 M
    kf5-attica x86_64 5.53.0-1.fc29 updates 187 k
    kf5-filesystem x86_64 5.53.0-1.fc29 updates 11 k
    kf5-kactivities x86_64 5.53.0-1.fc29 updates 133 k
    kf5-karchive x86_64 5.53.0-1.fc29 updates 102 k
    kf5-kauth x86_64 5.53.0-1.fc29 updates 130 k
    kf5-kbookmarks x86_64 5.53.0-1.fc29 updates 162 k
    kf5-kcmutils x86_64 5.53.0-1.fc29 updates 300 k
    kf5-kcodecs x86_64 5.53.0-1.fc29 updates 158 k
    kf5-kcompletion x86_64 5.53.0-1.fc29 updates 107 k
    kf5-kconfig-core x86_64 5.53.0-1.fc29 updates 275 k
    kf5-kconfig-gui x86_64 5.53.0-1.fc29 updates 46 k
    kf5-kconfigwidgets x86_64 5.53.0-1.fc29 updates 374 k
    kf5-kcoreaddons x86_64 5.53.0-1.fc29 updates 353 k
    kf5-kcrash x86_64 5.53.0-1.fc29 updates 32 k
    kf5-kdbusaddons x86_64 5.53.0-1.fc29 updates 66 k
    kf5-kdeclarative x86_64 5.53.0-2.fc29 updates 250 k
    kf5-kdesu x86_64 5.53.0-1.fc29 updates 88 k
    kf5-kdoctools x86_64 5.53.0-1.fc29 updates 612 k
    kf5-kfilemetadata x86_64 5.53.0-1.fc29 updates 177 k
    kf5-kglobalaccel x86_64 5.53.0-1.fc29 updates 56 k
    kf5-kglobalaccel-libs x86_64 5.53.0-1.fc29 updates 96 k
    kf5-kguiaddons x86_64 5.53.0-1.fc29 updates 57 k
    kf5-ki18n x86_64 5.53.0-1.fc29 updates 2.8 M
    kf5-kiconthemes x86_64 5.53.0-1.fc29 updates 148 k
    kf5-kinit x86_64 5.53.0-1.fc29 updates 165 k
    kf5-kio-core x86_64 5.53.0-1.fc29 updates 600 k
    kf5-kio-core-libs x86_64 5.53.0-1.fc29 updates 508 k
    kf5-kio-doc noarch 5.53.0-1.fc29 updates 2.6 M
    kf5-kio-file-widgets x86_64 5.53.0-1.fc29 updates 267 k
    kf5-kio-ntlm x86_64 5.53.0-1.fc29 updates 20 k
    kf5-kio-widgets x86_64 5.53.0-1.fc29 updates 240 k
    kf5-kio-widgets-libs x86_64 5.53.0-1.fc29 updates 401 k
    kf5-kitemviews x86_64 5.53.0-1.fc29 updates 113 k
    kf5-kjobwidgets x86_64 5.53.0-1.fc29 updates 101 k
    kf5-knewstuff x86_64 5.53.0-1.fc29 updates 689 k
    kf5-knotifications x86_64 5.53.0-1.fc29 updates 154 k
    kf5-knotifyconfig x86_64 5.53.0-1.fc29 updates 106 k
    kf5-kpackage x86_64 5.53.0-1.fc29 updates 209 k
    kf5-kpty x86_64 5.53.0-1.fc29 updates 69 k
    kf5-kservice x86_64 5.53.0-1.fc29 updates 344 k
    kf5-ktextwidgets x86_64 5.53.0-1.fc29 updates 293 k
    kf5-kwallet x86_64 5.53.0-1.fc29 updates 362 k
    kf5-kwallet-libs x86_64 5.53.0-1.fc29 updates 94 k
    kf5-kwayland x86_64 5.53.0-2.fc29 updates 418 k
    kf5-kwidgetsaddons x86_64 5.53.0-1.fc29 updates 1.5 M
    kf5-kwindowsystem x86_64 5.53.0-1.fc29 updates 169 k
    kf5-kxmlgui x86_64 5.53.0-2.fc29 updates 752 k
    kf5-plasma x86_64 5.53.0-1.fc29 updates 4.4 M
    kf5-solid x86_64 5.53.0-1.fc29 updates 367 k
    kf5-sonnet-core x86_64 5.53.0-1.fc29 updates 162 k
    kf5-sonnet-ui x86_64 5.53.0-1.fc29 updates 150 k
    libxcrypt x86_64 4.4.2-3.fc29 updates 116 k
    libxcrypt-devel x86_64 4.4.2-3.fc29 updates 32 k
    zchunk-libs x86_64 1.0.0-1.fc29 updates 43 k

    Transaction Summary
    ================================================== ==============================
    Upgrade 55 Packages

    This is what I have come to expect....

  10. #10
    Join Date
    Jul 2014
    Location
    EU
    Posts
    315
    Linux Pale Moon 28.2.2

    Re: Why do I have to run 'dnf update' twice?

    this problem occurs when calling
    Code:
    dnf upgrade --refresh
    or
    Code:
    dnf update --refresh

  11. #11
    Join Date
    Jan 2012
    Location
    auckland
    Posts
    131
    Linux (Fedora) Firefox 64.0

    Re: Why do I have to run 'dnf update' twice?

    Some info about Fedora Modular:

    Fedora 28 unveiled the following changes:

    A new, optional, software repository called “Modular,” also know as “AppStream,” allows users to upgrade individual packages apart from the rest of the system, at a faster pace than Fedora’s twice-per-year release cycle.

    Fedora 29, released October 30, 2018, offers the following new features and changes:

    All editions of Fedora now use the modular repository, previously only available for Fedora 28 Server. The modular repository allows users to selectively upgrade to newer versions of a specific package shipped with Fedora, and allows Fedora’s maintainers to provide newer versions of a system package without either forcing everyone to wait until the next major release or bulldozing existing user preferences regarding which version should be the default.

    The above begs the question, "what repository is dnf using for the initial upgrade command, when the Modular repo isn't mentioned?"

  12. #12
    Join Date
    Dec 2008
    Location
    Maryland
    Posts
    499
    Linux (Fedora) Firefox 64.0

    Re: Why do I have to run 'dnf update' twice?

    That's a good question, of which I've often wondered myself. I don't have an answer.

    And what I'm going to say next is liable to get me into trouble here, and get me labelled as a language lawyer. And that is: the phrase "...begs the question" doesn't mean anything like "... demands the following question be asked" or "... leads me to the following question". The phrase "begs the question" actually means that a question has been asked that implies it's own answer. The classic example is, of course, the question "When did you stop beating your wife?"

    I promise not to bring this up again in this forum, but this common misusage makes me grit my teeth!

  13. #13
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    5,612
    Linux (Fedora) Firefox 64.0

    Re: Why do I have to run 'dnf update' twice?

    I have a different idea about dnf running twice. This is my imaginative amateur detective working hard.

    dnfdragora is typically run on first logging into the Fedora system or following a reboot/boot. When it has completed, a message about updates is announced and some data is written to the sql database that is shared between dnf and dnfdragora. I believe that dnf is waiting for that update signal from dnfdragora.

    To prove my amateur detective work, if you run dnf almost immediately after the dnfdragora does it's thing, does dnf still take two runs to download the updates?
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  14. #14
    Join Date
    Jan 2012
    Location
    auckland
    Posts
    131
    Mac OS X 10.14.2 Safari 12.0.2

    Re: Why do I have to run 'dnf update' twice?

    “When I use a word,’ Humpty Dumpty said in rather a scornful tone, ‘it means just what I choose it to mean — neither more nor less.’

    ’The question is,’ said Alice, ‘whether you can make words mean so many different things.’

    ’The question is,’ said Humpty Dumpty, ‘which is to be master — that’s all.”

  15. #15
    Join Date
    Jan 2012
    Location
    auckland
    Posts
    131
    Mac OS X 10.14.2 Safari 12.0.2

    Re: Why do I have to run 'dnf update' twice?

    Quote Originally Posted by lsatenstein
    I have a different idea about dnf running twice. This is my imaginative amateur detective working hard.

    dnfdragora is typically run on first logging into the Fedora system or following a reboot/boot. When it has completed, a message about updates is announced and some data is written to the sql database that is shared between dnf and dnfdragora. I believe that dnf is waiting for that update signal from dnfdragora.

    To prove my amateur detective work, if you run dnf almost immediately after the dnfdragora does it's thing, does dnf still take two runs to download the updates?
    I have not seen this "two runs" behaviour before i.e. in f28, but until f29, use of the Modular repository was optional. In f29 it is now not so, but dnf is doing something else somewhere on the first pass, sometimes successfully.
    As for dnfdragora, I presume I would have to go looking for a dragora updates message you suggest, as nothing is flagged on screen - where might I look?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [SOLVED]
    Fedora Server 27, dnf update fails downloading update info files
    By Taomyn in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 22nd May 2018, 06:23 PM
  2. Replies: 7
    Last Post: 8th May 2014, 12:53 AM
  3. Replies: 2
    Last Post: 11th June 2012, 10:21 PM
  4. Replies: 3
    Last Post: 19th September 2008, 06:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •