Bug 1578138 - dnf misidentifies rpm as source package; refuses to install
Summary: dnf misidentifies rpm as source package; refuses to install
Keywords:
Status: CLOSED DUPLICATE of bug 1572338
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-14 21:17 UTC by Danny Ciarniello
Modified: 2018-05-15 15:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-15 07:32:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Danny Ciarniello 2018-05-14 21:17:36 UTC
Description of problem:I use JAlbum which recently came out with an update.  I downloaded the latest RPM from 
http://jalbum.net/download/15.4/Linux/jalbum-15.4-1.x86_64.rpm and tried to update but got the error message:

File jalbum-15.4-1.x86_64.rpm is a source package and cannot be updated, ignoring.

Trying install instead gives a similar error:

Error: Will not install a source rpm package (jalbum-15.4-1.src)

I was eventually able to update the package by using rpm directly


Version-Release number of selected component (if applicable):
2.7.5-12.fc28

How reproducible:
Always

Steps to Reproduce:
1.Download the JAlbum rpm referenced above
2.Attempt to install with 'dnf install ./jalbum-15.4-1.x86_64.rpm'


Actual results:
dnf displays error message:
Error: Will not install a source rpm package (jalbum-15.4-1.src)


Expected results:
JAlbum is installed without error


Additional info:
I initially thought that there might be a problem with the package but I reached out to the maintainer but I was told that the process for creating the package is unchanged from previous versions.  Given that the package can be installed with rpm, it looks like dnf is the problem

Comment 1 Petr Šabata 2018-05-15 07:14:13 UTC
Not sure if it matters but the package doesn't define the SRPM name header.

% rpm -qip ./jalbum-15.4-1.x86_64.rpm | grep Source
Source RPM  : (none)

This is typical for SRPMs.  All my binary RPMs do.

Comment 2 Marek Blaha 2018-05-15 07:32:44 UTC
Please, can you try installing libsolv from our nightly repo as recommended in https://bugzilla.redhat.com/show_bug.cgi?id=1572338#c10 ? It should solve your issue.

# dnf update --nogpgcheck --repofrompath=dnfnightly,https://copr-be.cloud.fedoraproject.org/results/rpmsoftwaremanagement/dnf-nightly/fedora-28-x86_64/ libsolv

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

Comment 3 Danny Ciarniello 2018-05-15 15:35:14 UTC
(In reply to Marek Blaha from comment #2)
> Please, can you try installing libsolv from our nightly repo as recommended
> in https://bugzilla.redhat.com/show_bug.cgi?id=1572338#c10 ? It should solve
> your issue.
> 
> # dnf update --nogpgcheck
> --repofrompath=dnfnightly,https://copr-be.cloud.fedoraproject.org/results/
> rpmsoftwaremanagement/dnf-nightly/fedora-28-x86_64/ libsolv
> 
> *** This bug has been marked as a duplicate of bug 1572338 ***

Yes, that does indeed solve the issue.

Thanks.


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