【问题标题】:Can not download Intellij via PPA - SSL certificate issue无法通过 PPA 下载 Intellij - SSL 证书问题
【发布时间】:2017-08-29 15:01:37
【问题描述】:

您好,我在 VirtualBox(Windows 主机)下运行 Linux Mint 18.2,由于 SSL 证书问题,我无法通过 PPA 安装 Intellij IDEA。
步骤:

sudo add-apt-repository ppa:mmk2410/intellij-idea-community
sudo apt update
sudo apt install intellij-idea-community

获取以下日志:

The following additional packages will be installed:
  lib32ncurses5 lib32tinfo5 lib32z1 lib32z1-dev zlib1g-dev
The following NEW packages will be installed:
  intellij-idea-community lib32ncurses5 lib32tinfo5 lib32z1 lib32z1-dev zlib1g-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/460 kB of archives.
After this operation, 1,541 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package lib32tinfo5.
(Reading database ... 252386 files and directories currently installed.)
Preparing to unpack .../lib32tinfo5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking lib32tinfo5 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package lib32ncurses5.
Preparing to unpack .../lib32ncurses5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking lib32ncurses5 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package lib32z1.
Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking lib32z1 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package lib32z1-dev.
Preparing to unpack .../lib32z1-dev_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking lib32z1-dev (1:1.2.8.dfsg-2ubuntu4.1) ...
Preparing to unpack .../intellij-idea-community_2017.2.2-1_all.deb ...
--2017-08-29 17:48:04--  https://download-cf.jetbrains.com/idea/ideaIC-2017.2.2.tar.gz
Resolving download-cf.jetbrains.com (download-cf.jetbrains.com)... 146.112.252.204, 146.112.252.210, 146.112.252.211, ...
Connecting to download-cf.jetbrains.com (download-cf.jetbrains.com)|146.112.252.204|:443... connected.
ERROR: cannot verify download-cf.jetbrains.com's certificate, issued by ‘O=Cisco,CN=Cisco Umbrella Secondary SubCA lon-SG’:
  Unable to locally verify the issuer's authority.
To connect to download-cf.jetbrains.com insecurely, use ``--no-check-certificate'.
dpkg: error processing archive /var/cache/apt/archives/intellij-idea-community_2017.2.2-1_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 5
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/intellij-idea-community_2017.2.2-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

当然,当我尝试使用 chrome 从他们的网站手动下载这个想法时,我遇到了同样的 SSL 问题。 我找不到关于这个问题的任何线索,但我知道我无法用 Ubuntu 16.04 重新创建问题(一切都按预期工作)。

有人可以为我提供解决此问题的明确步骤吗?

【问题讨论】:

  • 当我尝试访问该 URI 时没有收到任何 SSL 警告 - 也许他们(jetbrains)已经修复了他们的 https 设置?如果没有,您的连接可能会被拦截(例如强制门户),在这种情况下,您无法直接访问该页面实际上是一件好事
  • @umläute:你在尝试使用 Mint 18.2 吗?因为我刚才试过了,还是不行。
  • @umläute:这肯定不是连接问题,因为我在同一个网络中使用其他操作系统下载它没有问题。

标签: linux ubuntu linux-mint


【解决方案1】:

证书失败的最常见问题是系统时间错误。

因此,请确保您机器上的时间(大致)正确,最好通过配置ntp(但手动输入也可能足够好)。

$ sudo apt-get install ntpdate
$ sudo ntpdate-debian

说明

证书仅在特定时间范围内有效,例如从 2017-04-202017-10-20。 如果您的系统将时间重置为(例如)1970-01-01,您将无法访问该网页(因为您系统的 POV 证书无效)

【讨论】:

  • 机器上的时间是对的,不是这样的。
【解决方案2】:

你试过了吗

sudo apt-get update
sudo apt-get install ca-certificates

在安装 intellij-idea-community 之前?

【讨论】:

  • 是的,不是这样的。
【解决方案3】:

进一步调查问题后,似乎与我们办公室网络中的防火墙有关。

更新 /etc/resolv.conf 以包含 nameserver 8.8.8.8 而不是 nameserver 127.0.1.1 解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-07-14
    • 1970-01-01
    • 2014-11-22
    • 2016-08-02
    • 2015-11-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多