I managed to add the repository through YAST, but was trying to add the repository through the command line before that.
So my problem is fixed, but it annoys me, I failed doing it through the comandline
In the below example of what I tried, I left part of the url away, so people are not gonna try to add this repository.
sudo zypper ar https://download.opensuse.org/repositories/
sudo zypper ar -f https://download.opensuse.org/repositories/
Both do not seem to work. I googled and don’t see what’s wrong with the command ?
That is not something others can start working on.
To begin with, please always copy/paste things complete: the prompt/command line, the output (if it is there) and he next prompt line. Only so we can see what you did and saw.
Also, where is your conclusion based on? Please explain why you think so.
Also, when you read
you will see that the add repo command is defined as
addrepo (ar) [options] URI alias
Thus the alias is required. so your command is already syntacticaly wrong.
Here is a typical command that I use after install:
zypper ar -f http://packman.inode.at/suse/openSUSE_Leap_15.1/ packman
Note that “packman” at the end. That’s the alias for this repo. The alias seems to be a required part of the command, and you omitted it.
The alias becomes part of the filename in “/etc/zypp/repos.d”. When you use Yast to setup a repo, it creates an alias out of the name or url that you used. But, at the command line, it seems to be required.