楼主在公司的电脑报废了,换了统信电脑(PS统信电脑我也不熟,只知道装的系统大概就是类似Ubuntu的),安装 R 参考官网
update indices
sudo apt update -qq
# install two helper packages we need
sudo apt install --no-install-recommends software-properties-common dirmngr
# add the signing key (by Michael Rutter) for these repos
# To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# Fingerprint: E298A3A825C0D65DFD57CBB651716619E084DAB9
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt install --no-install-recommends r-base
安装 Rstudio 是sudo dpkg -i /data/home/user/R/rstudio-2024.04.02-764-amd64.deb
在终端执行R
可以正常打开 R,执行rstudio --no-sandbox
报错了,打开的页面上显示的错误如下。
Error Starting R
The R session failed to start.
RSTUDIO VERSION
RStudio 2024.04.2+764 "Chocolate Cosmos " (e4392fc9, 2024-06-05) for Ubuntu Jammy
[No error available]
/usr/lib/rstudio/resources/app/bin/rsession: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
OUTPUT
[No output emitted]
Log File
[No logs available]
终端上面显示的错误如下。
user@user-PC:~/R$ rstudio --no-sandbox
[6783:0914/145027.769589:ERROR:gl_factory.cc(120)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[6783:0914/145027.771484:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[6828:0914/145028.210348:ERROR:gl_factory.cc(120)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[6828:0914/145028.212175:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[6837:0914/145028.242120:ERROR:gl_factory.cc(120)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[6837:0914/145028.246583:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[6818:0914/145028.328346:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Warning: vkCreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:101)
at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:493)
at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:379)
at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:301)
at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:556)