Wie ändere ich OpenSuse-Repository-URLs in HTTPS?

Wie ändere ich OpenSuse-Repository-URLs in HTTPS?

Ich will es verändern

http://download.opensuse.org/tumbleweed/repo/oss/

Zu

https://download.opensuse.org/tumbleweed/repo/oss/

in Yast -> Software-Repositorys -> Bearbeiten -> Teile des Repository bearbeiten -> „x“ das https (vorher war es einfaches http), aber es gibt nur die Fehlermeldung:

Download (curl) error for 'https://download.opensuse.org/update/tumbleweed/repo/repoindex.xml': 
Error code: Bad URL
Error message: Protocol "http" not supported or disabled in libcurl

Aber wenn ich es manuell versuche, schlagen sowohl http als auch https fehl:

linux-4tur:~ # curl https://download.opensuse.org/update/tumbleweed/repo/repoindex.xml
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://download.opensuse.org/repositories/openSUSE:/Factory:/Update/standard/repo/repoindex.xml">here</a>.</p>
<hr>
<address>Apache/2.2.12 (Linux/SUSE) Server at download.opensuse.org Port 443</address>
</body></html>
linux-4tur:~ # curl http://download.opensuse.org/update/tumbleweed/repo/repoindex.xml
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://download.opensuse.org/repositories/openSUSE:/Factory:/Update/standard/repo/repoindex.xml">here</a>.</p>
<hr>
<address>Apache/2.2.12 (Linux/SUSE) Server at download.opensuse.org Port 80</address>
</body></html>
linux-4tur:~ # 

Antwort1

Anstatt yast zu verwenden, können Sie die *.repofolgenden Textdateien /etc/zypp/repos.d/mit einem Texteditor bearbeiten.

Sie können testen über

$ zypper ref

Verwenden Sie übrigens curl -L ...Weiterleitungen zum Folgen.

verwandte Informationen