OpenSuse リポジトリの URL を HTTPS に変更するにはどうすればいいですか?

OpenSuse リポジトリの URL を HTTPS に変更するにはどうすればいいですか?

変わりたい

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

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

yast -> ソフトウェア リポジトリ -> 編集 -> リポジトリの一部を編集 -> https (以前はプレーンな http) を "x" しましたが、次のエラー メッセージが表示されるだけです:

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

しかし、手動で試してみると、http と https の両方が失敗します。

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:~ # 

答え1

yast を使用する代わりに、テキスト エディターを使用して*.repo以下のテキスト ファイルを編集することもできます。/etc/zypp/repos.d/

テストするには

$ zypper ref

ちなみに、curl -L ...リダイレクトに従うために使用します。

関連情報