Bug 854209 - The remote software origin name was not found
Summary: The remote software origin name was not found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F18Alpha, F18AlphaBlocker 855509
TreeView+ depends on / blocked
 
Reported: 2012-09-04 11:19 UTC by Martin Krizek
Modified: 2014-01-21 23:23 UTC (History)
21 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-12 20:36:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Log (verbose) (82.02 KB, application/octet-stream)
2012-09-05 13:57 UTC, Jaroslav Reznik
no flags Details

Description Martin Krizek 2012-09-04 11:19:18 UTC
Description of problem:
After selecting a package(s) to be installed and putting in root password, an error shows up saying: "The remote software origin name was not found. You may need to enable an item in Software Origins.". There is no item in Software Origins. Tested on Fedora 18 Alpha TC5.

Version-Release number of selected component (if applicable):
apper-0.8.0-0.4.20120724git.fc18.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install Fedora 18 Alpha TC5 with KDE
2. Run Apper
3. Select a package(s) to install and try to install them
  
Actual results:
"The remote software origin name was not found. You may need to enable an item in Software Origins." error shows up.

Expected results:
Selected packages are installed.

Comment 1 Martin Krizek 2012-09-04 11:21:45 UTC
Proposing as an Alpha blocker per criterion: "The installed system must be able to download and install updates with yum and the default graphical package manager in all release-blocking desktops".

Comment 2 Lukáš Tinkl 2012-09-05 11:18:48 UTC
PackageKit version?

Comment 3 Jaroslav Reznik 2012-09-05 11:55:02 UTC
I checked the bug against Gnome PackageKit and it's hit by the same bug. No items in Software Sources tab neither. Package installation does not work (no error shown). Check Now button just says "Failed: failed".

I'm going to change the component to PackageKit to get more input from maintainers.

Comment 4 Richard Hughes 2012-09-05 11:58:16 UTC
What does "pkcon repo-list" say?

Comment 5 Martin Krizek 2012-09-05 12:13:58 UTC
PackageKit-0.8.3-1.fc18.x86_64


$ pkcon repo-list
Getting repositories [=========================]
Waiting in queue [=========================]
Starting [=========================]
Downloading repository information[=========================]
Downloading list of packages [=========================]
Getting information [=========================]
Disabled updates-debuginfo Fedora 18 - x86_64 - Updates - Debug
Enabled fedora Fedora 18 - x86_64
Disabled updates-source Fedora 18 - Updates Source
Disabled updates-testing-debuginfo Fedora 18 - x86_64 - Test Updates Debug
Enabled updates-testing Fedora 18 - x86_64 - Test Updates
Enabled updates Fedora 18 - x86_64 - Updates
Disabled updates-testing-source Fedora 18 - Test Updates Source
Disabled fedora-source Fedora 18 - Source
Disabled fedora-debuginfo Fedora 18 - x86_64 - Debug

Comment 6 Jaroslav Reznik 2012-09-05 13:14:55 UTC
New observations:
After clean restart, pkcon repo-list shows the correct output as mkrizek posted, then try to do any action in Apper or Gnome app, it fails and then you get:

pkcon repo-list
Getting repositories          [=========================]         
Waiting in queue              [=========================]         
Starting                      [=========================]         
Fatal error: Failed: failed

Comment 7 Jaroslav Reznik 2012-09-05 13:18:32 UTC
pkcon install scribus
Installing                    [=========================]         
Waiting in queue              [=========================]         
Waiting for authentication    [=========================]         
Waiting in queue              [=========================]         
Starting                      [=========================]         
Running                       [=========================]         
Fatal error: cannot find repo fedora/18/x86_64

Comment 8 Jaroslav Reznik 2012-09-05 13:57:58 UTC
Created attachment 610064 [details]
Log (verbose)

Comment 9 Richard Hughes 2012-09-05 16:07:30 UTC
I can reproduce this now. Debugging...

Comment 10 Adam Williamson 2012-09-05 16:59:41 UTC
Discussed at 2012-09-05 blocker review meeting. Accepted as a blocker per criterion cited in comment #1.

Comment 11 Richard Hughes 2012-09-05 17:03:15 UTC
The following commit in yum has broken the API that PackageKit uses:

commit e42ea3dc0b02ba73a11211de4062e87abfb77a6a
Author: James Antill <james>
Date:   Mon Aug 27 16:27:44 2012 -0400

    Add .ui_id to repos. showing $releasever/$basearch. Use it for str().

PackageKit needs to know the repo for a package, and has used str(pkg.repo) to return "fedora" for the last 5 years. The yum api has changed to return "fedora/18/x86_64" which breaks PackageKit.

Comment 12 Richard Hughes 2012-09-06 08:17:09 UTC
I've committed this upstream to PackageKit:

commit c817e88c5929c3a1448f47f6e16db86eef4fbf55
Author: Richard Hughes <richard>
Date:   Thu Sep 6 09:09:19 2012 +0100

    yum: Work around a yum API break so that resolving still works
    
    In e42ea3dc0b02ba73a11211de4062e87abfb77a6a yum changed the public API so that
    str(repo) returned 'fedora/18/i386' rather than just 'fedora'.
    This broke PackageKit pretty hard as the repo name is used in the package_id.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=854209

NOTE: if the commit to yum isn't reverted and then a new yum is pushed to F16/F17 then automatic updates will break and there will be no way to recover the situation. Ideally str(repo) would continue to return repo.id, not the new fancy repo.ui_id

I'd also appreciate anyone changing public API in yum to just do a 2 second search of yumBackend.py in PackageKit. Or rather, just not change public API at all and just add new methods for new features.

Comment 13 James Antill 2012-09-06 16:09:41 UTC
str(foo) is how things are output, foo.id is the API to get just the id.

Comment 14 Fedora Update System 2012-09-07 14:01:03 UTC
PackageKit-0.8.3-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/PackageKit-0.8.3-2.fc18

Comment 15 Fedora Update System 2012-09-07 19:38:25 UTC
Package PackageKit-0.8.3-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing PackageKit-0.8.3-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13559/PackageKit-0.8.3-2.fc18
then log in and leave karma (feedback).

Comment 16 Jaroslav Reznik 2012-09-10 08:40:56 UTC
Package installation works, pkcon, Apper tested. Updates works too.

Comment 17 Richard Hughes 2012-09-10 08:46:15 UTC
(In reply to comment #13)
> str(foo) is how things are output, foo.id is the API to get just the id.

Just FYI, the yum change was reversed, so there is no pressure to push this fix into other Fedora branches:

commit 602ae1d548a8165049b55cf30ff810806c795747
Author: James Antill <james>
Date:   Fri Sep 7 15:21:01 2012 -0400

    Have str(repo) mean repo.id again, as multiple callers have assumed it.

Comment 18 Kamil Páral 2012-09-10 09:37:23 UTC
PackageKit-0.8.3-2.fc18 works as root, not as an ordinary user (at least in GNOME) - bug 855784.

Comment 19 Kamil Páral 2012-09-10 17:06:57 UTC
# journalctl -a | grep polkit
Sep 10 16:56:24 localhost dbus-daemon[411]: dbus[411]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Sep 10 16:56:24 localhost dbus[411]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Sep 10 16:56:24 localhost polkitd[475]: Started polkitd version 0.107
Sep 10 16:56:24 localhost polkitd[475]: Loading rules from directory /etc/polkit-1/rules.d
Sep 10 16:56:24 localhost polkitd[475]: Loading rules from directory /usr/share/polkit-1/rules.d
Sep 10 16:56:24 localhost polkitd[475]: Finished loading, compiling and executing 2 rules
Sep 10 16:56:24 localhost polkitd[475]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Sep 10 16:56:40 localhost polkitd[475]: Registered Authentication Agent for unix-session:1 (system bus name :1.35 [gnome-shell --mode=gdm], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale C)
Sep 10 16:57:18 localhost polkitd[475]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.35, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale C) (disconnected from bus)
Sep 10 16:57:26 localhost polkitd[475]: Registered Authentication Agent for unix-session:2 (system bus name :1.72 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Sep 10 16:57:57 localhost polkitd[475]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action org.freedesktop.packagekit.package-install for system-bus-name::1.81 [<unknown>] (owned by unix-user:kparal)
Sep 10 16:58:08 localhost polkitd[475]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action org.freedesktop.packagekit.package-install for system-bus-name::1.82 [<unknown>] (owned by unix-user:kparal)
Sep 10 16:58:34 localhost polkitd[475]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action org.freedesktop.packagekit.package-install for system-bus-name::1.84 [<unknown>] (owned by unix-user:kparal)

Comment 20 Kamil Páral 2012-09-10 17:07:28 UTC
Damn, wrong bug. Sorry, the last comment shouldn't be here.

Comment 21 Kamil Páral 2012-09-11 12:54:29 UTC
This concrete issue is fixed in F18 Alpha RC2.

Comment 22 Fedora Update System 2012-09-12 13:53:41 UTC
yum-3.4.3-44.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/yum-3.4.3-44.fc18

Comment 23 Fedora Update System 2012-09-12 19:12:18 UTC
Package yum-3.4.3-44.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-3.4.3-44.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13862/yum-3.4.3-44.fc18
then log in and leave karma (feedback).

Comment 24 Adam Williamson 2012-09-12 19:15:39 UTC
If we pulled the yum that changes this into F18 Alpha, would we have to revert the PackageKit change?

Comment 25 Fedora Update System 2012-09-12 20:36:03 UTC
PackageKit-0.8.3-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 26 Kevin Kofler 2012-09-12 23:09:11 UTC
> If we pulled the yum that changes this into F18 Alpha, would we have to revert
> the PackageKit change?

No.

* The PackageKit change fixes PackageKit to use repo.id instead of str(repo).
* The yum change makes str(repo) do the same thing as repo.id again.

Either of the changes should be sufficient to fix the bug, but having both together cannot hurt.

Comment 27 Fedora Update System 2012-09-20 20:38:17 UTC
yum-3.4.3-44.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 28 Elia Devito 2013-12-16 01:11:18 UTC
on Fedora 20 Beta I have this issue when I try to install a rpm from apper

Comment 29 Jeffrey 2013-12-29 19:47:28 UTC
I just installed Fedora 20 (new from scratch, not an updated install) and am getting the same issue with packages I am trying to install. E.g., Firefox, Chrome, etc. I did not get this error when Fedora automatically found the system updates just after the install. It started when I starting installing new apps. Dispite the error messages tho, both Firefox and Chrome did install and are running.

Comment 30 Kevin Kofler 2013-12-29 21:40:45 UTC
You're probably seeing bug #995723.


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