How can the list of software repositories be "reset"

I tried to add a repository by some cut and paste and the result was that the list is corrupted

When opening the “Software repositories” in Yast
I now get the following message:

There were errors while restoring the repository configuration.
/etc/zypp/repos.d/KDE_4.1.3(STABLE) .repo: Line 2 is missing ‘=’ sign

No repository list will show up and trying to “re-add” repositories result in errors.

Is there any way that the “repository configuration” can be re-set?


su -

cd /etc/zypp/repos.d

and delete the “bad” “.repo”-file(s).

OR!


sudo edit /etc/zypp/repos.d/_KDE_4.1.3_(STABLE).repo

and add the = sign on the second line after name. :wink:

I’m getting amazed how educated people fail to read simple things.

I don’t want to be considered negative but there are so many situations where people could just read and think for a second and solve the problem by themselves but no, they can’t be bothered with thinking, they need to start a thread:P

Does it have to shout for you people what to do?
Have you all lost thinking capabilities??

Again sorry for sounding so negative but i’m getting tired with such threads.

I’m also getting tired with my seminar work about problems of Graph theory and the title of this thread was very interesting because I’ve never seen a question like this before - maybe because the solution is trivial. :slight_smile:

To be fair, it doesn’t sound like the OP made that alteration via the command line, and I suspect they don’t know how to repair it via it either.

If that’s the case then this is vastly less a silly question than many of those that pass without comment - particularly because being a situation that is obvious to someone familiar with CLI, it’s less likely to crop up in the forum, so searching is useless.

Sudo edit is pseudocode and won’t do anything unless I’m very much mistaken - you want


kdesu kwrite /etc/zypp/repos.d/_KDE_4.1.3_(STABLE).repo

if you’re using KDE, and


gnomesu gedit /etc/zypp/repos.d/_KDE_4.1.3_(STABLE).repo

for gnome.

Sorry… what? :slight_smile:

I’m not on my SUSE box to check, but I wasn’t aware of “sudo edit” doing anything…?

Edit: But a quick google seems to indicate that you’re right - I had no idea, sorry. :slight_smile: