ฉันพยายามติดตั้งr-baseเวอร์ชั่นล่าสุด (2.15.2) ไม่สำเร็จ เห็นได้ชัดว่าแพ็คเกจRRcppจะไม่ติดตั้งสำหรับรุ่น R 2.14.1 - เป็นรุ่นที่ติดตั้งให้ฉัน
ฉันไม่แน่ใจว่าจะเปลี่ยนความพยายามในการติดตั้งของฉันอย่างไร / อย่างไร / ที่ปรากฏด้านล่าง โปรดทราบว่าฉันใช้ ubuntu-12.04.1-server-i386
เวอร์ชันที่ติดตั้งปัจจุบันคือ R เวอร์ชั่น 2.14.1 (2011-12-22):
$ sudo apt-get install r-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
r-base is already the newest version.
การรวมข้อมูลเวอร์ชั่นไม่ได้ช่วย:
$ sudo apt-get install r-base=2.15.1-5ubuntu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '2.15.1-5ubuntu1' for 'r-base' was not found
การเปลี่ยนแปลงตามคำแนะนำ CRAN Ubuntu จากhttp://cran.r-project.org/bin/linux/ubuntu/README :
เพิ่มไปยัง
/etc/apt/sources.listdeb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu quantal/อัปเดตและติดตั้ง
$ sudo apt-get update $ 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 (>= 2.15.2-1quantal2) but it is not going to be installed Depends: r-recommended (= 2.15.2-1quantal2) 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เป็นรุ่น 'ล่าสุด' จริง ๆ แล้วติดตั้ง / ปรับปรุงถ้าไม่ดูคำตอบของฉันลิงค์ด้านล่าง หากคุณต้องการติดตามข่าวสารล่าสุดของRรุ่นล่าสุดขอแนะนำว่าสิ่งเหล่านี้มาจากsid(แม้ว่าคุณอาจจะต้องระมัดระวังเมื่อใช้ระบบทั้งหมดของคุณในsid... ) stackoverflow.com/questions/1401904/…
                
sudo apt-get upgradeหรือsudo apt-get dist-upgrade?