Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: When I tried to install packages from the command line, I get: Error: Some packages have invalid cache, but cannot be downloaded due to "--cacheonly" option This is weird as there should be no cache for packages from command line. $ sudo dnf install -C -y /tmp/tito/noarch/mock-1.4.6-1.git.22.5fe7961.fc26.noarch.rpm /tmp/tito/noarch/mock-scm-1.4.6-1.git.22.5fe7961.fc26.noarch.rpm /tmp/tito/noarch/mock-lvm-1.4.6-1.git.22.5fe7961.fc26.noarch.rpm [sudo] password for mirek: Last metadata expiration check: 0:01:11 ago on Fri Oct 27 08:39:01 2017. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Upgrading: mock noarch 1.4.6-1.git.22.5fe7961.fc26 @commandline 151 k mock-lvm noarch 1.4.6-1.git.22.5fe7961.fc26 @commandline 31 k mock-scm noarch 1.4.6-1.git.22.5fe7961.fc26 @commandline 26 k Installing dependencies: python3-pyroute2 noarch 0.4.13-1.fc26 fedora 354 k Transaction Summary ================================================================================ Install 1 Package Upgrade 3 Packages Total size: 561 k Total download size: 354 k Downloading Packages: Package "mock-lvm-1.4.6-1.git.22.5fe7961.fc26.noarch" from repository "@commandline" has invalid cache Error: Some packages have invalid cache, but cannot be downloaded due to "--cacheonly" option Version-Release number of selected component (if applicable): dnf-2.7.4-1.fc26.noarch
Of course manually doing $ sudo dnf install python3-pyroute2 $ sudo rpm -Uvh /tmp/tito/noarch/mock-1.4.6-1.git.22.5fe7961.fc26.noarch.rpm /tmp/tito/noarch/mock-scm-1.4.6-1.git.22.5fe7961.fc26.noarch.rpm /tmp/tito/noarch/mock-lvm-1.4.6-1.git.22.5fe7961.fc26.noarch.rpm Works without problem.
*** This bug has been marked as a duplicate of bug 1502106 ***