2

I've read through similar questions/guides:

I'm guessing there are some general assumptions I am missing from the instructions they are giving because I'm coming out lost.

Question 1:

I'm running 12.04 so going off the guide from CRAN should I put

deb http://cran.rstudio.com/bin/linux/ubuntu quantal/

in /etc/apt/sources.list ? Can it go on any empty line or is there an order I need to follow?

Question 2:

When I follow the next step in the CRAN guide, I do an update and install. I am following the guide as I understand it but there are 'thistles in my socks'. I don't know what is wrong. I'm still loading in to 2.14 when I load into R.

XXXXXXXXXXXXXXx:~$ sudo apt-get update
Ign http://cran.cnr.Berkeley.edu quantal/ Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg                    
Hit http://us.archive.ubuntu.com precise Release.gpg                           
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]         
Get:2 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]       
Ign http://cran.cnr.Berkeley.edu quantal/ Release                              
Hit http://security.ubuntu.com precise-security Release                        
Hit http://us.archive.ubuntu.com precise Release                               
Hit http://extras.ubuntu.com precise Release.gpg                               
Get:3 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]           
Hit http://security.ubuntu.com precise-security/main Sources                   
Hit http://extras.ubuntu.com precise Release                                   
Hit http://security.ubuntu.com precise-security/restricted Sources             
Hit http://security.ubuntu.com precise-security/universe Sources               
Hit http://security.ubuntu.com precise-security/multiverse Sources             
Hit http://security.ubuntu.com precise-security/main amd64 Packages            
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages      
Hit http://security.ubuntu.com precise-security/universe amd64 Packages        
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages      
Hit http://security.ubuntu.com precise-security/main i386 Packages             
Hit http://security.ubuntu.com precise-security/restricted i386 Packages       
Hit http://security.ubuntu.com precise-security/universe i386 Packages         
Get:4 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]         
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages       
Hit http://security.ubuntu.com precise-security/main TranslationIndex          
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex    
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex    
Hit http://security.ubuntu.com precise-security/universe TranslationIndex      
Hit http://extras.ubuntu.com precise/main Sources                              
Hit http://us.archive.ubuntu.com precise/main Sources                          
Hit http://us.archive.ubuntu.com precise/restricted Sources                    
Hit http://us.archive.ubuntu.com precise/universe Sources                      
Hit http://us.archive.ubuntu.com precise/multiverse Sources                    
Hit http://us.archive.ubuntu.com precise/main amd64 Packages                   
Ign http://ppa.launchpad.net precise Release.gpg                               
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages             
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages               
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages             
Hit http://us.archive.ubuntu.com precise/main i386 Packages                    
Hit http://security.ubuntu.com precise-security/main Translation-en            
Hit http://security.ubuntu.com precise-security/multiverse Translation-en      
Hit http://security.ubuntu.com precise-security/restricted Translation-en      
Hit http://extras.ubuntu.com precise/main amd64 Packages                       
Hit http://extras.ubuntu.com precise/main i386 Packages                        
Ign http://extras.ubuntu.com precise/main TranslationIndex                     
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages              
Hit http://us.archive.ubuntu.com precise/universe i386 Packages                
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages              
Hit http://us.archive.ubuntu.com precise/main TranslationIndex                 
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex           
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex           
Hit http://security.ubuntu.com precise-security/universe Translation-en        
Ign http://ppa.launchpad.net precise Release                                   
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex             
Get:5 http://us.archive.ubuntu.com precise-updates/main Sources [454 kB]       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Get:6 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,028 B]
Get:7 http://us.archive.ubuntu.com precise-updates/universe Sources [106 kB]   
Err http://cran.cnr.Berkeley.edu quantal/ Packages                             
  404  Not Found
Err http://ppa.launchpad.net precise/main Sources                              
  404  Not Found
Err http://ppa.launchpad.net precise/main amd64 Packages                       
  404  Not Found
Err http://ppa.launchpad.net precise/main i386 Packages                        
  404  Not Found
Ign http://cran.cnr.Berkeley.edu quantal/ Translation-en_US                    
Ign http://extras.ubuntu.com precise/main Translation-en_US                    
Ign http://cran.cnr.Berkeley.edu quantal/ Translation-en                       
Get:8 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,909 B]
Ign http://extras.ubuntu.com precise/main Translation-en                       
Get:9 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [764 kB]
Ign http://ppa.launchpad.net precise/main Translation-en_US                   
Ign http://ppa.launchpad.net precise/main Translation-en
Get:10 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [12.2 kB]
Get:11 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [239 kB]
Get:12 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [15.3 kB]
Get:13 http://us.archive.ubuntu.com precise-updates/main i386 Packages [788 kB]
Get:14 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [12.2 kB]
Get:15 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [244 kB]
Get:16 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [15.4 kB]
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex         
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex   
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex   
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex     
Get:17 http://us.archive.ubuntu.com precise-backports/main Sources [4,850 B]   
Get:18 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:19 http://us.archive.ubuntu.com precise-backports/universe Sources [37.8 kB]
Get:20 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B]
Get:21 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [6,183 B]
Get:22 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:23 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [39.2 kB]
Get:24 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,206 B]
Get:25 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,182 B]
Get:26 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:27 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [39.0 kB]
Get:28 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B]
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex       
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex 
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex 
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex   
Hit http://us.archive.ubuntu.com precise/main Translation-en                   
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en             
Hit http://us.archive.ubuntu.com precise/restricted Translation-en             
Hit http://us.archive.ubuntu.com precise/universe Translation-en               
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en           
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en     
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en     
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en       
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en         
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en   
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en   
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en     
Fetched 2,916 kB in 21s (135 kB/s)                                             
W: Failed to fetch http://cran.cnr.Berkeley.edu/CRAN/bin/linux/ubuntu/quantal/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/dists/precise/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
XXXXXXXXXXXXXXXx:~$ sudo apt-get install r-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
r-base is already the newest version.
The following packages were automatically installed and are no longer required:
  efibootmgr gir1.2-ubuntuoneui-3.0 libubuntuoneui-3.0-1
  thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
cylondude
  • 201
  • 1
  • 4
  • 12
  • Follow the instructions here to fix the 404 problem. Then invoke sudo add-apt-repository 'deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu quantal/' and try again with sudo apt-get update. – Richard Apr 13 '14 at 19:22
  • The top answer worked for me:

    http://stackoverflow.com/questions/16093331/how-to-install-r-version-3-0

    – cylondude Apr 13 '14 at 19:29
  • Okay, if you want you can add all the info as an answer here to help future users.. – Richard Apr 13 '14 at 19:31
  • I tried but SO defaulted to put my answer as a comment because it was too short. – cylondude Apr 13 '14 at 19:42
  • Yes, just a link wouldn't be a complete answer, but if you copy the info in your own words it would be helpful to future readers. – Richard Apr 13 '14 at 23:09

1 Answers1

0

It appears the answer to my first question is yes, just put the line anywhere in the document on its own line.

And while I don't have a proper knowledge of how it worked, following the steps from
https://stackoverflow.com/questions/16093331/how-to-install-r-version-3-0 worked for me.

I then had a problem with getting the dependency packages working which you can read up at: https://stackoverflow.com/questions/23047700/trouble-installing-shiny-dependencies-on-ubtuntu-12-04-to-host-apps-on-shiny-ser

cylondude
  • 201
  • 1
  • 4
  • 12