由于错误而未能安装r-baseƔ 404 Not Found'和未满足的依赖关系

时间:2017-11-01 14:11:28

标签: r ubuntu debian install google-compute-engine

我不熟悉命令行并尝试将R安装到我的Google Cloud VM实例上。这是我的Ubuntu的版本。

Distributor ID: Debian
Description:    Debian GNU/Linux 9.2 (stretch)
Release:        9.2
Codename:       stretch

我一直在使用此链接指导我:http://cran.r-project.org/bin/linux/ubuntu

首先,我在我的source.list中添加了一个deb存储库。 我在source.list中添加的行是' deb https://cran.ma.imperial.ac.uk/bin/linux/ubuntu utopic /'。 然后我执行了以下操作。

kefei@pectendashboard:~$ sudo nano /etc/apt/sources.list
kefei@pectendashboard:~$ sudo apt-key adv --keyserver 
keyserver.ubuntu.com --recv-keys E084DAB9
Executing: /tmp/apt-key-gpghome.Zdt2MbceSW/gpg.1.sh --keyserver 
keyserver.ubuntu.com --recv-keys E084DAB9
gpg: key 51716619E084DAB9: "Michael Rutter <marutter@gmail.com>" not 
changed
gpg: Total number processed: 1
gpg:              unchanged: 1

我想知道&lt; gpg是什么意思:找不到有效的OpenPGP数据。&#39;

kefei@pectendashboard:~$ sudo add-apt-repository ppa:marutter/rdev
The latest developmental version of R for testing packages
More info: https://launchpad.net/~marutter/+archive/ubuntu/rdev
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmp3c2s3m12/pubring.gpg' created
gpg: /tmp/tmp3c2s3m12/trustdb.gpg: trustdb created
gpg: key 5E25F516B04C661B: public key "Launchpad PPA for marutter" 
imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

当我运行apt-get update时出现更多错误,主要是404错误。例如:

kefei@pectendashboard:~$ sudo apt-get update
Ign:23 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu 
bionic/main Translation-en_US   
Err:12 http://ppa.launchpad.net/marutter/rdev/ubuntu bionic/main amd64 
Packages                     
404  Not Found

然后是一系列警告和错误消息。

The repository 'http://ppa.launchpad.net/marutter/rdev/ubuntu bionic 
Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore 
potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user 
configuration details.
W: The repository 'http://ppa.launchpad.net/marutter/rrutter/ubuntu 
bionic Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore 
potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user 
configuration details.
W: The repository 'http://ppa.launchpad.net/ubuntugis/ubuntugis-
unstable/ubuntu bionic Release' does not have a Rel
ease file.
E: Failed to fetch 
http://ppa.launchpad.net/marutter/rdev/ubuntu/dists/bionic/main/binary-
amd64/Packages  
404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

在此之后,我跑了'sudo apt-get upgrade&#39;和&#39; sudo apt-get install r-base&#39;,获取以下消息。

kefei@pectendashboard:~$ sudo apt-get 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.4.2-2xenial2) but it is not going 
to be installed
      Depends: r-recommended (= 3.4.2-2xenial2) 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.

我已经尝试了许多源代码和存储库来安装r-base,但是仍然会出现相同的错误消息。如果有人能帮助我,我将非常感激。

0 个答案:

没有答案