安装r-base-dev时的问题 [英] Issues in installing r-base-dev
问题描述
I am currently using Ubuntu 12.04 64 bit .I was trying to install R as specified on this link . I am successfully able to install r-base but getting errors when trying to install r-base-dev . Here is the error
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-dev : Depends: gfortran but it is not installable
Depends: libblas-dev but it is not installable or
libatlas-base-dev but it is not going to be installed
Depends: liblapack-dev but it is not installable or
libatlas-base-dev but it is not going to be installed
Depends: libreadline-dev but it is not installable
Depends: libjpeg-dev but it is not installable
Depends: libpcre3-dev but it is not installable
Depends: libpng-dev but it is not installable
Depends: libbz2-dev but it is not installable
Depends: cdbs but it is not installable
E: Unable to correct problems, you have held broken packages.
我已经添加了该链接中所述的安全密钥,以及/etc/apt/sources.list
的以下行deb http://cran.r-project.org/bin/linux/ubuntu precise/
I have added the security key as stated in that link as well as the following line deb http://cran.r-project.org/bin/linux/ubuntu precise/
to /etc/apt/sources.list
我还添加了以下ppa:sudo add-apt-repository ppa:marutter/rrutter
.
I have also added the following ppa : sudo add-apt-repository ppa:marutter/rrutter
.
任何帮助都是可取的.
Any help would be appreciable.
PS:我也对/var/lib/apt/lists中的列表表示怀疑,因此我删除并重新创建了它.仍然有相同的错误.
PS: I was also doubtful with my lists in /var/lib/apt/lists so I deleted and created it again. Still having the same error .
推荐答案
我确保启用了受限存储库和Universe存储库(在我的情况下已禁用).为此,请按 Alt + F2 类型software-properties-gtk,然后按 Enter .
I made sure that the restricted and universe repositories are enabled (which was disabled in case of mine ). For doing this , Hit Alt + F2 type software-properties-gtk and hit Enter.
在Ubuntu Software
选项卡下,启用所有存储库.
之后运行
Under Ubuntu Software
tab enable all the repositories.
After which run
sudo apt-get update
再次运行
sudo apt-get install r-base-dev
成功完成.
我从此链接
这篇关于安装r-base-dev时的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!