Bugzilla – Bug 1145694
zypper ar obs://... fails to operate correctly
Last modified: 2019-08-15 10:25:19 UTC
Using zypper ar obs://<uri> fails to add a valid repo: > zypper ar obs://home:firstyear:branches:openSUSE:Factory home:firstyear:branches:openSUSE:Factory Guessed: platform = openSUSE_Tumbleweed Adding repository 'home:firstyear:branches:openSUSE:Factory' .........................................................................................................................................................................[done] Repository 'home:firstyear:branches:openSUSE:Factory' successfully added URI : https://download.opensuse.org/repositories/home:/firstyear:/branches:/openSUSE:/Factory/openSUSE_Tumbleweed Enabled : Yes GPG Check : Yes Autorefresh : No Priority : 99 (default priority) Repository priorities in effect: (See 'zypper lr -P' for details) 97 (raised priority) : 2 repositories 99 (default priority) : 4 repositories {root@ldapkdc 10:23} /home/william/development/389ds I0> zypper ref Retrieving repository 'home:firstyear:branches:openSUSE:Factory' metadata ...........................................................................................................................................................[error] Repository 'home:firstyear:branches:openSUSE:Factory' is invalid. [home:firstyear:branches:openSUSE:Factory|https://download.opensuse.org/repositories/home:/firstyear:/branches:/openSUSE:/Factory/openSUSE_Tumbleweed] Valid metadata not found at specified URL Please check if the URIs defined for this repository are pointing to a valid repository. However, adding it via the manual repo file works: > wget https://download.opensuse.org/repositories/home:/firstyear:/branches:/openSUSE:/Factory/openSUSE_Factory/home:firstyear:branches:openSUSE:Factory.repo zypper ar -r home:firstyear:branches:openSUSE:Factory.repo libdb Adding repository 'Branch project for package libdb-4_8 (openSUSE_Factory)' ............................................................................................................................[done] Repository 'Branch project for package libdb-4_8 (openSUSE_Factory)' successfully added URI : http://download.opensuse.org/repositories/home:/firstyear:/branches:/openSUSE:/Factory/openSUSE_Factory/ Enabled : Yes GPG Check : Yes Autorefresh : No Priority : 99 (default priority) Repository priorities in effect: (See 'zypper lr -P' for details) 97 (raised priority) : 2 repositories 99 (default priority) : 4 repositories {root@ldapkdc 11:19} /tmp I0> zypper ref Retrieving repository 'Branch project for package libdb-4_8 (openSUSE_Factory)' metadata ------------------------------------------------------------------------------------------------------------------[|] New repository or package signing key received: Repository: Branch project for package libdb-4_8 (openSUSE_Factory) Key Name: home:firstyear OBS Project <home:firstyear@build.opensuse.org> Key Fingerprint: 390B27E5 F7EF55A5 56AA6883 F61E332B A108F92B Key Created: Fri 02 Nov 2018 14:57:25 AEST Key Expires: Sun 10 Jan 2021 14:57:25 AEST Rpm Name: gpg-pubkey-a108f92b-5bdbd935 As a result, this likely means that a regression in zypper exists where zypper ar obs://url fails :(
> https://download.opensuse.org/...Factory/openSUSE_Tumbleweed > http://download.opensuse.org/...Factory/openSUSE_Factory/ Zypper told that it 'Guessed: platform = openSUSE_Tumbleweed', as you did not specify one. The working link reveals that 'openSUSE_Factory' is what's provided by the project. It should work, if you pass 'openSUSE_Factory' as platform (or use 'openSUSE_Tumbleweed' as reponame in the project). > [man zypper] > These URIs have the form of obs://project/[platform] > > If platform is omitted, openSUSE_$releasever is used unless a value for > obs.platform is defined in zypper.conf. If you are following openSUSE_Factory > or openSUSE_Tumbleweed you may need to set these as your default platform. > But we can only guess, how the directory containing the repository that fits > your distribution is named on the server. In case of doubt you need to look > up the right URL in a browser.