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

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

変えたい

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

到着

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

yast - >ソフトウェアリポジトリ - >編集 - >リポジトリセクションの編集 - > "x" https(以前は一般的なhttpでした)エラーメッセージのみが表示されます。

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 ...リダイレクトトラッキング用です。

おすすめ記事