Como alterar os URLs do repositório OpenSuse para HTTPS?

Como alterar os URLs do repositório OpenSuse para HTTPS?

eu quero mudar

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

para

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

em yast -> repositórios de software -> editar -> editar partes do repositório -> "x" o https (antes era http simples), mas isso apenas me dá a mensagem de erro:

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

Mas se eu tentar manualmente, http e https falharão:

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

Responder1

Em vez de usar o yast, você pode editar os *.repoarquivos de texto abaixo /etc/zypp/repos.d/com um editor de texto.

Você pode testar através

$ zypper ref

Aliás, use curl -L ...para seguir redirecionamentos.

informação relacionada