github上的解決方案
https://github.com/archlinuxfr/yaourt/issues/287
curl_easy_perform()返回值說明
在移植別人的sdk的時候發現
errno 2 好像是缺少一個文件的意思.
curl_easy_perform()返回值說明
CURLE_SSL_CACERT_BADFILE, /* 77 - could not load CACERT file, missing 77: problem with the SSL CA cert (path? access rights?)
https://curl.haxx.se/docs/caextract.html
從這個網站上下載最新的cacert.pem 然后放在/etc/ssl/certs/ca-certificates.crt,這樣就不會報錯了.
應該是缺少ca(好像是認證信息的意思)