ZMD/Libzypp Troubleshooting

Şuraya atla: kullan, ara

This page try to provide the most fresh documentation about workarounds and fixes in ZMD/Libzypp world.

rug can't add new unsigned repositories

If you're trying to add a custom repository and you got an error like this:

# rug sa --type=YUM http://foobar.com/sled-10-i586 foobar-sles

Adding YUM service http://foobar.com/sled-10-i586...                                                                                                                     
                                                                33%
ERROR: Could not add 'http://foobar.com/sled-10-i586': Failed
to parse XML metadata: Unsigned file '/repodata/repomd.xml
(file:/var/cache/zmd/web/files/foobar.com/sled-10-i586/)'

Solution 1: Have the repository cryptographically signed

For YUM repositories it is a very easy process, documented in Secure Installation Sources.

Solution 2: As root, run the next command

rug set security-level checksum 

and then try to add it again. You will be able to see the repository and the catalog.

Note that this is unsecure and allows remote attackers that are able to modify this repository or your internet access to run code on your machine.