Results 1 to 4 of 4

Thread: Adding a YUM repo to zypper, install fails with file not found on medium - File is there

  1. #1
    Join Date
    Sep 2015
    Location
    Sheffield, UK
    Posts
    30

    Default Adding a YUM repo to zypper, install fails with file not found on medium - File is there

    I want to install atlassian-plugin-sdk on an openSUSE laptop, atlassian only provide yum/deb install methods, there is a yum repo, and I found a post online which tells me I can add a yum repo to zypper using the following:

    Code:
    zypper ar -t YUM http://sdkrepo.atlassian.com/atlassian-sdk-stable.repo
    This appears to work fine, but then when I try to install with zypper:

    Code:
    zypper in atlassian-plugin-sdk
    File './sdk-installer-5.1.9.rpm' not found on medium 'http://sdkrepo.atlassian.com/rpm-stable'
    If I visit that page the file is there, I can then wget it and install via rpm. Is the method I'm using incorrect? Or is it some issue with the repo?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,483
    Blog Entries
    2

    Default Re: Adding a YUM repo to zypper, install fails with file not found on medium - File is there

    Quote Originally Posted by Rumbles View Post
    I want to install atlassian-plugin-sdk on an openSUSE laptop, atlassian only provide yum/deb install methods, there is a yum repo, and I found a post online which tells me I can add a yum repo to zypper using the following:

    Code:
    zypper ar -t YUM http://sdkrepo.atlassian.com/atlassian-sdk-stable.repo
    This appears to work fine, but then when I try to install with zypper:

    Code:
    zypper in atlassian-plugin-sdk
    File './sdk-installer-5.1.9.rpm' not found on medium 'http://sdkrepo.atlassian.com/rpm-stable'
    If I visit that page the file is there, I can then wget it and install via rpm. Is the method I'm using incorrect? Or is it some issue with the repo?
    Atlassian appears to not have created a YUM repo, your link interestingly only points to a gpgkeys source to enable authentication, but that file is missing info like the actual location of the YUM repo so IMO it's worthless.

    Looking a bit further, it's not hard to find the Atlassian RPM files, but again.. there is no YUM repo metadata file.

    Looking a bit even <further> it looks like Atlassian doesn't want to create a YUM repo for you (or they don't know how to do it), they want you to download the files to your own machine and set up a repo.
    https://developer.atlassian.com/docs...-or-mac-system

    So, OK.
    You can download all the files from the following location to a folder in your system or a Server in your network
    http://sdkrepo.atlassian.com/rpm-stable/

    But let's try something else... Let's see if we can point to Atlassian's repo location even if they don't seem to officially support it. I did the following which works...
    Code:
    zypper ar https://sdkrepo.atlassian.com/rpm-stable/ Atlassian_repo
    Note that in the above unlike your try I'm not pointing to the gpg file (which doesn't contain info about the repo location) and I gave the repo a name.

    Now you can refresh your repos, interestingly although the gpgkeys check is enabled possibly because the Atlassian repo location does not include a metadata file a check cannot be made, but will proceed without error.
    Code:
    zypper ref
    And now you can search the repo using ordinary zypper and YAST tools, so for instance the following should return the most current version
    Code:
    zypper se atlassian
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Sep 2015
    Location
    Sheffield, UK
    Posts
    30

    Wink Re: Adding a YUM repo to zypper, install fails with file not found on medium - File is there

    Wow, thanks for that detailed response! That does indeed work

  4. #4
    Join Date
    Sep 2015
    Location
    Sheffield, UK
    Posts
    30

    Default Re: Adding a YUM repo to zypper, install fails with file not found on medium - File is there

    Gah, spoke too soon, I still get this error when installing even though I can find the software package using search:

    File './sdk-installer-5.1.9.rpm' not found on medium 'https://sdkrepo.atlassian.com/rpm-stable/'

    Thanks regardless, as this method let me install the hipchat4 repo on openSUSE:

    Code:
    zypper ar https://atlassian.artifactoryonline.com/atlassian/hipchat-yum-client/ Atlassian_Hipchat4_repo
    This works fine and allows me to install the hipchat4 client available here.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •