尝试安装 R 4.0.1,但遇到 Ubuntu 问题
Trying to install R 4.0.1, but having an issue with Ubuntu
我尝试在我的 ubuntu 服务器中升级 R 的最新版本,按照其他博客,我从我的服务器卸载 R 并尝试按照以下步骤安装:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'
sudo apt update
我从这里开始按照这些步骤操作 https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04
当我尝试 运行 最后一个命令时: sudo apt-get install r-base
我收到这个错误:
sudo apt install r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 4.0.2-1.1804.0) but it is not going to be installed
Depends: r-recommended (= 4.0.2-1.1804.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
apt-cache policy r-base
产量:
-base:
Installed: (none)
Candidate: 4.0.2-1.1804.0
Version table:
4.0.2-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.1-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.0-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
3.6.3-2 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
3.4.4-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.3-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.2-2xenial2 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.2-1xenial1 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.1-2xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.1-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.0-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.3-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.2-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.1-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.0-2xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.0-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.2.5-1xenial 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
感谢您的帮助!
我 运行 遇到了同样的问题...您使用的是哪种处理器?这发生在我身上是因为我在 arm64 机器上安装,而主 c运行 存储库没有该体系结构的包。我在 /etc/apt/sources.list 中删除了对 c运行 存储库的引用(仅使用文本编辑器)并从 http://ports.ubuntu.com/ubuntu-ports 安装。这工作正常,但我的 R 版本比 c运行 存储库上可用的版本旧。我要么必须为包找到不同的来源,要么在本地编译,要么使用 R 3.4.4。
您引用的输出是部分的,我们看不到它真正背后的内容。
我的怀疑是二进制文件所依赖的其他包太旧了。 通常 apt install
命令假定一个当前 系统。所以也许试试
sudo apt update
sudo apt upgrade
sudo apt install r-base
并用您看到的任何“奇怪”错误更新您的问题。我也在几台机器上维护着底层的 Debian 软件包 r-base
和 运行 这些相同的 Ubuntu 二进制文件,没有任何问题。
我尝试在我的 ubuntu 服务器中升级 R 的最新版本,按照其他博客,我从我的服务器卸载 R 并尝试按照以下步骤安装:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'
sudo apt update
我从这里开始按照这些步骤操作 https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04
当我尝试 运行 最后一个命令时: sudo apt-get install r-base
我收到这个错误:
sudo apt install r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 4.0.2-1.1804.0) but it is not going to be installed
Depends: r-recommended (= 4.0.2-1.1804.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
apt-cache policy r-base
产量:
-base:
Installed: (none)
Candidate: 4.0.2-1.1804.0
Version table:
4.0.2-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.1-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.0-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
3.6.3-2 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
3.4.4-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.3-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.2-2xenial2 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.2-1xenial1 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.1-2xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.1-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.4.0-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.3-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.2-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.1-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.0-2xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.3.0-1xenial0 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
3.2.5-1xenial 500
500 https://cran.rstudio.com/bin/linux/ubuntu xenial/ Packages
感谢您的帮助!
我 运行 遇到了同样的问题...您使用的是哪种处理器?这发生在我身上是因为我在 arm64 机器上安装,而主 c运行 存储库没有该体系结构的包。我在 /etc/apt/sources.list 中删除了对 c运行 存储库的引用(仅使用文本编辑器)并从 http://ports.ubuntu.com/ubuntu-ports 安装。这工作正常,但我的 R 版本比 c运行 存储库上可用的版本旧。我要么必须为包找到不同的来源,要么在本地编译,要么使用 R 3.4.4。
您引用的输出是部分的,我们看不到它真正背后的内容。
我的怀疑是二进制文件所依赖的其他包太旧了。 通常 apt install
命令假定一个当前 系统。所以也许试试
sudo apt update
sudo apt upgrade
sudo apt install r-base
并用您看到的任何“奇怪”错误更新您的问题。我也在几台机器上维护着底层的 Debian 软件包 r-base
和 运行 这些相同的 Ubuntu 二进制文件,没有任何问题。