我想在Ubuntu上将R从3.0.3更新到3.1.2。 我正在使用Ubuntu 14.04LTS,64位。
我按照以下步骤进行操作:
cd /etc/apt/
sudo gedit sources.list
我添加了以下这行代码:
deb http://cran.rstudio.com/bin/linux/ubuntu trusty/
那么:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base
已上传一些文件。
然后我检查了R版本:
sudo R
version
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 0.3
year 2014
month 03
day 06
svn rev 65126
language R
version.string R version 3.0.3 (2014-03-06)
nickname Warm Puppy
我仍然使用3.0.3版本,有人能帮我升级到3.1.2吗?
针对ECII的编辑:
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
blcr-util bwidget gcc-4.8-base:i386 ggobi jags libaudio2:i386 libcr0
libexpat1:i386 libffi6:i386 libfontconfig1:i386 libfreetype6:i386
libgcrypt11:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386 libglib2.0-0:i386
libglpk36 libgpg-error0:i386 libgstreamer-plugins-base1.0-0:i386
libgstreamer1.0-0:i386 libhwloc5 libibverbs1 libice6:i386 libjbig0:i386
libjpeg-turbo8:i386 libjpeg8:i386 libodbc1 libopenmpi1.6 liborc-0.4-0:i386
libqt4-dbus:i386 libqt4-declarative:i386 libqt4-network:i386
libqt4-opengl:i386 libqt4-script:i386 libqt4-sql:i386 libqt4-xml:i386
libqt4-xmlpatterns:i386 libqtcore4:i386 libqtdbus4:i386 libqtgui4:i386
libqtwebkit4:i386 libquantlib-1.2 libsm6:i386 libsprng2 libsqlite3-0:i386
libssl1.0.0:i386 libstdc++6:i386 libtiff4 libtiff5:i386 libtk8.5 libtorque2
libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386
libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386
libxi6:i386 libxml2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386
libxss1:i386 libxt6:i386 libxv1:i386 libxxf86vm1:i386
linux-headers-3.13.0-35 linux-headers-3.13.0-35-generic
linux-image-3.11.0-26-generic linux-image-3.13.0-35-generic
linux-image-extra-3.11.0-26-generic linux-image-extra-3.13.0-35-generic lynx
mpi-default-bin openmpi-bin openmpi-checkpoint openmpi-common skype-bin:i386
tk-table tk8.5 unixodbc
针对cdeterman的编辑:
sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub 2048g/79164387 2004-09-12
pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>
pub 4096R/C0B21F32 2012-05-11
uid Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
pub 4096R/EFE21092 2012-05-11
uid Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>
pub 1024D/3E5C1192 2010-09-20
uid Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>
pub 1024R/579F147D 2010-04-25
uid Launchpad RKWard Development Archive
pub 2048R/E084DAB9 2010-10-19 [expire : 2015-10-18]
uid Michael Rutter <marutter@gmail.com>
sub 2048R/1CFF3E8F 2010-10-19 [expire : 2015-10-18]
sudo apt-key list
确认密钥已成功添加吗?它应该在底部附近。另外,你不需要执行install r-base
命令,因为 R 已经安装好了。将仓库添加到你的 sources.list 中应该可以让sudo apt-get update && sudo apt-get upgrade
正常工作。 - cdetermandeb http://mirror.ibcp.fr/pub/CRAN/bin/linux/ubuntu/ trusty/
,但结果还是一样。@cdeterman:我也尝试了,但没有任何变化。@ECII 我更新了我的帖子,因为答案太长了,无法在评论中显示。 - Chika