Como alterar o repo urls do OpenSuse para HTTPS?

0

Eu quero mudar

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

para

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

no yast - > repositórios de software - > editar - > editar partes do repo - > "x" o https (antes de ser http simples), mas 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 com a mão, tanto http quanto 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:~ # 
    
por Peter 30.04.2017 / 14:53

1 resposta

0

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

Você pode testar via

$ zypper ref

A BTW usa curl -L ... para seguir redirecionamentos.

    
por 30.04.2017 / 20:31