![Ubuntu 16.04 上的 Openconnect](https://linux22.com/image/1502968/Ubuntu%2016.04%20%E4%B8%8A%E7%9A%84%20Openconnect.png)
我将笔记本从 Ubuntu 14.04 升级到了 16.04。从那时起,Openconnect 就停止工作了,并且在启动时出现以下错误消息:
openconnect:加载共享库时出错:libgnutls.so.26:无法打开共享对象文件:没有此文件或目录
所有其他库似乎都在那里:
ldd $(which openconnect)
linux-vdso.so.1 => (0x00007fff991ef000)
libopenconnect.so.5 => /usr/local/lib/libopenconnect.so.5 (0x00007f39c815d000)
libgnutls.so.26 => not found
libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f39c7da2000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f39c79d9000)
libgnutls.so.26 => not found
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f39c776f000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f39c7314000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f39c70fa000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f39c6e94000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f39c6c90000)
libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007f39c68fc000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f39c66d9000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f39c63d0000)
/lib64/ld-linux-x86-64.so.2 (0x00005563d4f55000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f39c61c8000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f39c5faa000)
libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007f39c44f3000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f39c4171000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f39c3f5a000)
Ubuntu 存储库中似乎不再提供该软件包。不过有一个 Openconnect 软件包,但它应该如何工作呢?
答案1
我需要
- apt 清除 openconnect
- apt autoremove(删除 libopenconnect)
- 安装 openconnect
现在 openconnect 链接到较新的(且可用的)libgnutls30。