Ideally, `apt-get` could behave like a `dnf`, updating caches on `update` after some expiration period.
apt-get upgrade --refresh-period=2h The example session from `dnf`. ~ sudo dnf update Last metadata expiration check: 0:12:32 ago on Tue 27 Aug 2019 06:30:17 PM +03. ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1709603 Title: apt {upgrade,install, source} require an update call first To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1709603/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs