Unable to use either Yast Software management or zypper due to bad key

This is a recent upgrade to Leap.

# uname -a
Linux linux-nx75.site 4.1.13-5-default #1 SMP PREEMPT Thu Nov 26 16:35:17 UTC 2015 (49475c3) x86_64 x86_64 x86_64 GNU/Linux

All was running well until I added new repositories using Yast>Software Repositories. All appeared to go well until I then went to *Software Management *and it would not load. The error message that was displayed said:

An error occurred during repository initialization./etc/zypp/repos.d/Vitualization

.repo: Section ]: Line 1 contains garbage (no ‘=’ or ',|/' in key)

I then tried the following:

linux-nx75:~ # zypper lr
Unexpected exception.
/etc/zypp/repos.d/Vitualization
.repo: Section ]: Line 1 contains garbage (no '=' or ',|/\' in key)
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.
linux-nx75:~ # zypper rr Vitualization
Unexpected exception.
/etc/zypp/repos.d/Vitualization
.repo: Section ]: Line 1 contains garbage (no '=' or ',|/\' in key)
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.
linux-nx75:~ # zypper clean
Unexpected exception.
/etc/zypp/repos.d/Vitualization
.repo: Section ]: Line 1 contains garbage (no '=' or ',|/\' in key)
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.

Any suggestions?

I have followed the link provided and found no help there. I am willing to submit a bug report, but at this point I can’t provide any detail other than what’s in this post.

I would be flying blind, but I would look in the file Virtualization.repo. It’s located in the folder /etc/zypp/repos.d/

1: look inside the file /etc/zypp/repos.d/Virtualization.repo and if it does indeed contain junk in a line, delete the file then reinstall the repo again
OR
2: I would delete the repo named “Vitualization” and then see if zypper started to work again. And then create/add-back-in the repo again and see if the problem has gone.

[those two might actually be the same thing done different ways]

Good call, thanx