- edited description
updater.linux can't download mirror list
Updater can't download mirror list. Running as root won't help.
I am using ubuntu 16.04 LTS
uname -a: Linux ntn 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
curl -V: curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
[WARN]Updater v0.0.10 (c) 2012-2015 by dalerank is part of CaesarIA (http://bitbucket.org/dalerank/caesaria).
[WARN]
[WARN]No proxy configured.
[WARN]Step thread started: 0
[WARN]----------------------------------------------------------------------------
Initialising...[WARN] OK
[WARN]Step thread started: 1
[WARN]----------------------------------------------------------------------------
Cleaning up previous update session...[WARN] OK
[WARN]Step thread started: 2
[WARN]----------------------------------------------------------------------------
Update mirrors information...
[WARN]Downloading mirror list from http://sourceforge.net/projects/opencaesar3/files/update/mirrors.txt...
[WARN] FAILED
[WARN]ERROR Unsupported protocol
[WARN] Mirrors download failed: Unsupported protocol
[WARN]
Done downloading mirrors.
[WARN] Found 0 mirrors.
[WARN] No mirror information available - cannot continue.
[WARN]Step thread started: 2
[WARN]----------------------------------------------------------------------------
Update mirrors information...
and it tries to download the file forever
Comments (3)
-
reporter -
Same problem here. Ubuntu 14.04. I had just cloned the repo, compiled, and ran
bin/updater.linux
and had this problem.Just to see what would happen, I commented out the code in
updater/updater.cpp
that makes the request for the mirrors file, downloaded the mirrors file into the top level of the repo, and reranbin/updater.linux
. The result was:[WARN]Step thread started: 3 [WARN]---------------------------------------------------------------------------- Downloading stable version info... [ ] 0.0% at 0 bytes/sec [WARN] FAILED [WARN]ERROR Unsupported protocol [WARN]Connection Error.
So it seems there is a problem with the HTTP request code. I just discovered Caesaria today but it seems to use a curl library. Anybody know where the "Unsupported protocol" message is coming from?
-
This issue is related to your linked version of cURL not having SSL enabled. Your system cURL may have it enabled, but CaesarIA needs to find it or it will link to a static version shipped with the repo (compiled without SSL support).
I solved this issue following these steps:
- Download, compile and install cURL (set flag
--with-ssl
) [link]
$ curl --version curl 7.50.1 (x86_64-pc-linux-gnu) libcurl/7.50.1 OpenSSL/1.0.1f zlib/1.2.8 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
- Compile CaesarIA again using my system cURL (BUILD_CURL:BOOL=OFF)
@dalerank I suppose it is possible to set SSL flag into the cURL CMakeLists used by CaesarIA to compile cURL dependency.
- Download, compile and install cURL (set flag
- Log in to comment