我认为 Pixelbook 附带的 Linux beta 是 Ubuntu,所以在终端中输入了一些错误,我无法再追溯。现在我在尝试安装 R 时遇到依赖错误。
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 (>= 3.5.3-1xenial) but it is not going to be installed
Depends: r-recommended (= 3.5.3-1xenial) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
这是输出
apt policy r-recommended
-recommended:
Installed: (none)
Candidate: 3.5.3-1xenial
Version table:
3.5.3-1xenial 500
500 https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ Packages
3.5.3-1~stretchcran.0 500
500 https://cloud.r-project.org/bin/linux/debian stretch-cran35/ Packages
3.5.2-1xenial 500
500 https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ Packages
3.5.2-1~stretchcran.0 500
500 https://cloud.r-project.org/bin/linux/debian stretch-cran35/ Packages
3.5.1-2xenial 500
500 https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ Packages
3.5.1-1xenial 500
500 https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ Packages
3.5.0-1xenial 500
500 https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ Packages
3.3.3-1 500
500 https://deb.debian.org/debian stretch/main amd64 Packages
根据我的研究,我认为这是由于尝试使用不同的方法安装多个版本的 R,但我不知道如何修复它,因为我的像素本上没有 Linux 界面,只有终端.我试图删除所有 r-base、r-core 依赖项但无济于事。有人可以帮忙吗?