Bug 1048577 - Cannot install local rpm packages using dnf
Summary: Cannot install local rpm packages using dnf
Keywords:
Status: CLOSED DUPLICATE of bug 1049671
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Radek Holy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-05 11:26 UTC by Ankur Sinha (FranciscoD)
Modified: 2015-10-06 02:14 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-13 13:24:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ankur Sinha (FranciscoD) 2014-01-05 11:26:14 UTC
Description of problem:
I'm unable to install local rpms using dnf. I clearly remember installing them earlier. Not quite sure when this changed

Version-Release number of selected component (if applicable):
[asinha@ankur-laptop  SRPMS]$ rpm -qa | egrep "dnf|hawkey|librepo-"
librepo-1.5.1-1.fc20.x86_64
hawkey-0.4.7-1.fc20.x86_64
PackageKit-hawkey-0.8.15-1.fc20.x86_64
dnf-0.4.10-1.fc20.noarch
python-librepo-1.5.1-1.fc20.x86_64
python-hawkey-0.4.7-1.fc20.x86_64
[asinha@ankur-laptop  SRPMS]$

How reproducible:
Always

Steps to Reproduce:
1. Build a package in mock
2. Try to install it using dnf
3.

Actual results:
Does not install. Fails with "nothing to do" even if I use --nogpgcheck

Expected results:
Should install the package.

Additional info:
[asinha@ankur-laptop  SRPMS]$ sudo dnf install /var/lib/mock/fedora-20-x86_64/result/albumart-1.6.6-1.fc20.noarch.rpm -v -d 10
Config time: 0.006
cachedir: /var/cache/dnf/x86_64/20
dnf version: 0.4.10
repo: using cache for: updates-testing
repo: using cache for: livna
not found deltainfo for: rpm.livna.org for 20 - x86_64
repo: using cache for: fedora
not found deltainfo for: Fedora 20 - x86_64
repo: using cache for: rpmfusion-free-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Free - Updates
repo: using cache for: rpmfusion-nonfree-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree - Updates
repo: using cache for: rpmfusion-free
not found deltainfo for: RPM Fusion for Fedora 20 - Free
repo: using cache for: updates
repo: using cache for: rpmfusion-nonfree
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree
hawkey sack setup time: 0.288
Error: Nothing to do.
[asinha@ankur-laptop  SRPMS]$ cp /var/lib/mock/fedora-20-x86_64/result/albumart-1.6.6-1.fc20.noarch.rpm  ~/
[asinha@ankur-laptop  SRPMS]$ sudo dnf install ~/albumart-1.6.6-1.fc20.noarch.rpm -v -d 10
Config time: 0.006
cachedir: /var/cache/dnf/x86_64/20
dnf version: 0.4.10
repo: using cache for: updates-testing
repo: using cache for: livna
not found deltainfo for: rpm.livna.org for 20 - x86_64
repo: using cache for: fedora
not found deltainfo for: Fedora 20 - x86_64
repo: using cache for: rpmfusion-free-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Free - Updates
repo: using cache for: rpmfusion-nonfree-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree - Updates
repo: using cache for: rpmfusion-free
not found deltainfo for: RPM Fusion for Fedora 20 - Free
repo: using cache for: updates
repo: using cache for: rpmfusion-nonfree
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree
hawkey sack setup time: 0.336
Error: Nothing to do.
[asinha@ankur-laptop  SRPMS]$
[asinha@ankur-laptop  SRPMS]$ sudo dnf install ~/albumart-1.6.6-1.fc20.noarch.rpm -v -d 10 --nogpgcheck
Config time: 0.006
cachedir: /var/cache/dnf/x86_64/20
dnf version: 0.4.10
repo: using cache for: updates-testing
repo: using cache for: livna
not found deltainfo for: rpm.livna.org for 20 - x86_64
repo: using cache for: fedora
not found deltainfo for: Fedora 20 - x86_64
repo: using cache for: rpmfusion-free-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Free - Updates
repo: using cache for: rpmfusion-nonfree-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree - Updates
repo: using cache for: rpmfusion-free
not found deltainfo for: RPM Fusion for Fedora 20 - Free
repo: using cache for: updates
repo: using cache for: rpmfusion-nonfree
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree
hawkey sack setup time: 0.290
Error: Nothing to do.
[asinha@ankur-laptop  SRPMS]$

Comment 1 Ankur Sinha (FranciscoD) 2014-01-05 11:27:30 UTC
The albumart package is not already installed, just to be sure: 

[asinha@ankur-laptop  SRPMS]$ rpm -q albumart
package albumart is not installed
[asinha@ankur-laptop  SRPMS]$ rpm -qa \*albumart\*
[asinha@ankur-laptop  SRPMS]$

Comment 2 Ales Kozumplik 2014-01-06 07:04:21 UTC
Thank you for the report.

Radek this looks like another corner case in exceptions handling in install(), please take a look.

Comment 3 Ales Kozumplik 2014-01-13 13:24:47 UTC

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


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