几个月前,我在这里使用 HOWTO 在 Ubunut 14.04 上安装了 Phusion Passenger:https ://www.phusionpassenger.com/library/install/apache/install/oss/trusty/
最近,在更新系统包(apt-get update)时,我注意到下面关于乘客存储库的错误。此时,我必须注释掉这些条目, /etc/apt/sources.list.d/passenger.list
以便在我的服务器上安装更新。我搜索了谷歌,似乎只得到了六个结果:(在我看来,Passenger repo 有一些 SSL 问题。有人知道出了什么问题以及如何解决这个问题吗?
Err https://oss-binaries.phusionpassenger.com trusty/main amd64 Packages
gnutls_handshake() failed: A TLS packet with unexpected length was received.
Err https://oss-binaries.phusionpassenger.com trusty/main i386 Packages
gnutls_handshake() failed: A TLS packet with unexpected length was received.
Ign https://oss-binaries.phusionpassenger.com trusty/main Translation-en
Fetched 2945 kB in 12s (241 kB/s)
W: Failed to fetch https://oss-binaries.phusionpassenger.com/apt/passenger/dists/trusty/main/binary-amd64/Packages gnutls_handshake() failed: A TLS packet with unexpected length was received.
W: Failed to fetch https://oss-binaries.phusionpassenger.com/apt/passenger/dists/trusty/main/binary-i386/Packages gnutls_handshake() failed: A TLS packet with unexpected length was received.
E: Some index files failed to download. They have been ignored, or old ones used instead.
好吧,由于没有人在这里回答,这就是我最终要做的。它比 Samsquanch 更油腻,但至少更新了乘客。希望有人有更好的答案。
一般的想法是使用
sources.list
在远程仓库上构建文件名的路径,然后使用 wget 下载并使用 dpkg 安装。passenger.list 的前缀必须转到 wget,然后附加
Filename:
您需要下载的 deb 的 Packages 文件中的部分。事实证明,当 Ubuntu 14.04
apt
方法https
(位于 下/usr/lib/apt/methods/
)是用 构建的时libcurl4-gnutls-dev
,它会给我带来这个问题。重建修复错误apt
。我不知道到底是怎么回事。可能与这个 Git 问题有关,确切的错误。我也正在通过代理。libcurl4-openssl-dev
gnutls_handshake()