apt 更新失败:libp11-kit.so.0:未定义符号:ffi_type_pointer,版本 LIBFFI_BASE_7.0

Shi*_*ang 5 linux ubuntu apt

当我跑步时sudo apt update,我得到:

$ sudo apt update
/usr/lib/apt/methods/http: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
/usr/lib/apt/methods/https: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
/usr/lib/apt/methods/https: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
/usr/lib/apt/methods/https: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
/usr/lib/apt/methods/https: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
/usr/lib/apt/methods/https: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
/usr/lib/apt/methods/http: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
/usr/lib/apt/methods/http: symbol lookup error: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0
Reading package lists... Done
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (127)
E: Method /usr/lib/apt/methods/https did not start correctly
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (127)
E: Method /usr/lib/apt/methods/https did not start correctly
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (127)
E: Method /usr/lib/apt/methods/https did not start correctly
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (127)
E: Method /usr/lib/apt/methods/https did not start correctly
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (127)
E: Method /usr/lib/apt/methods/https did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Failed to fetch http://hwraid.le-vert.net/ubuntu/dists/precise/InRelease  
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/focal/InRelease  
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/focal-updates/InRelease  
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/focal-backports/InRelease  
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/focal-security/InRelease  
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/focal-proposed/InRelease  
E: Failed to fetch http://neurodeb.pirsquared.org/dists/data/InRelease  
E: Failed to fetch http://neurodeb.pirsquared.org/dists/xenial/InRelease  
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

似乎已libp11-kit.so损坏,我可以通过重新安装来解决问题libp11-kit-dev。但由于apt update不再起作用,我不知道如何实现这一点。或者也许还有其他解决方案或建议?

Shi*_*ang -1

我刚刚意识到错误是由于 libffi 损坏造成的,我尝试通过http://ubuntu.pkgs.org/20.04/ubuntu-main-amd64/libffi7_3.3-4_amd64.deb.html 下载deb 文件:/ /archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb并安装它并且dpkg -i它可以工作!

  • @SarveshThakur我能够使用`rm ${CONDA_PREFIX}/lib/libffi.7.so ${CONDA_PREFIX}/lib/libffi.so.7`在Ubuntu 20.04上解决这个问题问题是那些动态链接到libffi8 ,这是不正确的。 (12认同)
  • 您好,我遇到了同样的错误,但这并不能解决我的问题!(导入错误:/lib/x86_64-linux-gnu/libp11-kit.so.0:未定义符号:ffi_type_pointer,版本 LIBFFI_BASE_7.0)知道出了什么问题吗? (5认同)
  • 我遇到了同样的问题,通过将 python 从 3.8.18 降级到 3.8.10 解决了( conda install python=3.8.10 ) (2认同)