无法再加载 rgdal

use*_*317 5 ubuntu r gdal rgdal

我在 Ubuntu 上将我的 GDAL 更新为 2.2.2,现在rgdal在 R 中失败。当我尝试加载时收到此消息rgdal(我也尝试更新rgdal,但没有成功)。

Error in get(method, envir = home) : 
  lazy-load database '/home/R/x86_64-pc-linux-gnu-library/3.3/rgdal/R/rgdal.rdb' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
  restarting interrupted promise evaluation
2: In get(method, envir = home) :
  restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1
Error: package or namespace load failed for ‘rgdal’
Run Code Online (Sandbox Code Playgroud)

关于如何解决这个问题的任何想法?

小智 0

我通过更新和升级我的系统解决了这个问题:

sudo apt update & sudo apt upgrade
Run Code Online (Sandbox Code Playgroud)