Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1506907 - DNF claims "Some packages have invalid cache" for packages coming from command line
Summary: DNF claims "Some packages have invalid cache" for packages coming from comman...
Keywords:
Status: CLOSED DUPLICATE of bug 1502106
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-27 07:04 UTC by Miroslav Suchý
Modified: 2017-11-01 12:05 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-01 12:05:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2017-10-27 07:04:25 UTC
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

Comment 1 Miroslav Suchý 2017-10-27 07:06:52 UTC
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.

Comment 2 Igor Gnatenko 2017-11-01 12:05:22 UTC

*** This bug has been marked as a duplicate of bug 1502106 ***


Note You need to log in before you can comment on or make changes to this bug.