Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

All other answers I find only end up pointing to instructions: http://cran.r-project.org/bin/linux/ubuntu/

So interpreting that site, added line:

deb http://r.meteo.uni.wroc.pl/bin/linux/ubuntu oneiric universe

to /etc/apt/sources.list and ran apt-get update.

(From experimentation I had to add the "universe" or "main" at the end to avoid parse error in the repositories list, preventing apt or synaptic from updating at all).

However the problem persists:

W: Failed to fetch http://r.meteo.uni.wroc.pl/bin/linux/ubuntu/dists/oneiric/main/binary-i386/Packa‌​ges 404 Not Found 

I enter that URL in a browser and clearly see that path is not there. However this is: http://r.meteo.uni.wroc.pl/bin/linux/ubuntu/oneiric/ (under which the Packages file actually lies, etc.)

Tried other mirrors, same problem.

lsb_release -a

Ubuntu 11.10

The version of R available initially prevents me from installing updated packages, eg.:

> install.packages("PerformanceAnalytics")
Installing package(s) into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package ‘PerformanceAnalytics’ is not available (for R version 2.13.1)

Where I am going wrong?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

change the line in /etc/apt/sources.list to

   deb http://r.meteo.uni.wroc.pl/bin/linux/ubuntu oneiric/

and retry

 apt-get update
share|improve this answer
    
Thanks. That pushed it forward to: dpkg: warning: files list file for package python-twisted-core' missing, assuming package has no files currently installed. (Reading database ... 246955 files and directories currently installed.) Preparing to replace python-twisted-core 11.0.0-2 (using .../python-twisted-core_11.0.0-2_all.deb) ... Unpacking replacement python-twisted-core ... dpkg: ../../src/archives.c:985: tarobject: Assertion r == stab.st_size' failed. –  Marcos Jun 19 '12 at 12:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.