我使用的是 Ubuntu 20.04。 R 版本 4.0.2。 我已经使用 R 很长时间了,一切正常。 今天,在尝试安装新软件包时出现此错误:
** checking absolute paths in shared objects and dynamic libraries
readelf: symbol lookup error: readelf: undefined symbol: ctf_arc_bufopen, version LIBCTF_1.0
Error in system(paste("readelf -d", shQuote(l)), intern = TRUE) :
error in running command
我尝试删除并重新安装 R 和所有软件包,但现在对于以前安装的软件包也会发生同样的事情。所以我认为问题不是由 R 本身引起的。 我最近没有做任何 R 更新。
答案 0 :(得分:0)
首先非常感谢Chris对问题的提示。它实际上与 ctf-suite
相关。
执行 grep libctf*
时返回:
ii libctf0:amd64 2.35.1-1ubuntu1
amd64 Compact C Type Format library (runtime, BFD dependency)
所以我尝试了:
sudo apt-get install libctf-nobfd0
它实际上解决了问题。 我设法安装了所有需要的软件包。