Curl (35) 嘗試安裝 Gitlab Ubuntu 伺服器 18.04

Curl (35) 嘗試安裝 Gitlab Ubuntu 伺服器 18.04

您好,我正在嘗試在虛擬伺服器 Ubuntu 18.04 上安裝 gitlab,如下這些步驟來自官方網站。

但在第二步時curl -v https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash我收到:

    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 54.153.54.194...
* TCP_NODELAY set
* Connected to packages.gitlab.com (54.153.54.194) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.gitlab.com:443
* stopped the pause stream!
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.gitlab.com:443

捲曲版本:捲曲7.58.0; OpenSSL:1.1.1

有人知道我該如何解決這個問題嗎?或至少進行更深入的調查。

謝謝

編輯: wget 也不起作用。它返回:

--2021-08-05 19:40:01--  https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh
Resolving packages.gitlab.com (packages.gitlab.com)... 54.153.54.194, 2600:1f1c:2d4:8900:17a1:2e94:9f90:f91e
Connecting to packages.gitlab.com (packages.gitlab.com)|54.153.54.194|:443... connected.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.

答案1

通常,當您遇到這樣的憑證錯誤時,您應該始終確保您正在訪問正確的網站,並且您沒有被重定向到其他地方..但就您而言,我認為情況並非如此。

為了解決這個問題,請執行以下操作:

apt-get clean && apt-get update && apt-get upgrade

這應該清理你的儲存庫快取並更新所有內容。您有舊版的curl和OpenSSL,我認為這個問題與OpenSSL有關。

升級一切,它應該可以工作。

如果沒有,要繞過 ssl 檢查,請使用:

curl --insecure https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh

相關內容