如何在Amazon Linux上安装Open Connect客户端

如何在Amazon Linux上安装Open Connect客户端
sudo yum list all | grep openconnect
    NetworkManager-openconnect.x86_64       0.8.6.0-3.el6                  epel     
    openconnect.i686                        7.07-2.el6                     epel     
    openconnect.x86_64                      7.07-2.el6                     epel     
    openconnect-devel.i686                  7.07-2.el6                     epel     
    openconnect-devel.x86_64                7.07-2.el6                     epel 

尝试安装 NetworkManager-openconnect

sudo yum install NetworkManager-openconnect

最终出现依赖错误。

Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libgnome-keyring.so.0()(64bit)
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: NetworkManager >= 1:0.8.1
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libgdk-x11-2.0.so.0()(64bit)
Error: Package: openconnect-7.07-2.el6.x86_64 (epel)
           Requires: libpcsclite.so.1()(64bit)
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libgconf-2.so.4()(64bit)
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libnm-util.so.1()(64bit)
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libgtk-x11-2.0.so.0()(64bit)
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libgdk_pixbuf-2.0.so.0()(64bit)
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libnm-glib-vpn.so.1()(64bit)
Error: Package: NetworkManager-openconnect-0.8.6.0-3.el6.x86_64 (epel)
           Requires: libnm-glib.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

您能帮我在 Amazon Linux 上安装 occlient 吗?

答案1

我通过从源代码构建 openconnect 客户端而不是通过yum.

答案2

这是一个老问题,但当我尝试openconnect在运行 amazon linux 2 的 EC2 实例上使用 yum 安装时,遇到了同样的问题。我设法通过启用 epel 来修复它amazon-linux-extras

  • amazon-linux-extras install epel
  • amazon-linux-extras enable epel

然后为 yum 安装 epel 版本:

  • yum clean metadata
  • yum install epel-release

最后安装开放连接:

  • yum install openconnect

相关内容