2

I am trying to install r-base in my just installed Ubuntu 14.04 system.

However, I get the following error (only last few lines of output is shown here):

0 upgraded, 70 newly installed, 0 to remove and 5 not upgraded.
Need to get 457 kB/71.9 MB of archives.
After this operation, 156 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err http://in.archive.ubuntu.com/ubuntu/ trusty/universe r-cran-cluster amd64 1.14.4-1
  403  Forbidden [IP: 91.189.88.149 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/cluster/r-cran-cluster_1.14.4-1_amd64.deb  403  Forbidden [IP: 91.189.88.149 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I tried apt-get update, apt-get upgrade and apt-get update --fix-missing. Before fixing the missing files, I used to get a warning at the end of the apt-get update that some key is missing. However, using it with --fix-missing solved that error. But still there is error while installing r-base.

Through the Software Center, I get the same error with title: Failed to download package files, Check your internet connection. Error is as below.

Error: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/cluster/r-cran-cluster_1.14.4-1_amd64.deb 403  Forbidden [IP: 91.189.91.26 80]

My internet connection is fine. When I try to open above link in browser, it says "access denied".

How can I get access? Or from where else can I find the same file? I am new to Ubuntu. I found some other problems of 403 forbidden error but none helped me and they were for different specific cases (not like mine).


UPDATE

Trying this link's deb file using dpkg gives output as below

darshil@darshil-Lenovo-G580:~/Downloads$ sudo dpkg -i r-cran-cluster_2.0.4-1trusty0_amd64.deb 
Selecting previously unselected package r-cran-cluster.
(Reading database ... 185096 files and directories currently installed.)
Preparing to unpack r-cran-cluster_2.0.4-1trusty0_amd64.deb ...
Unpacking r-cran-cluster (2.0.4-1trusty0) ...
dpkg: dependency problems prevent configuration of r-cran-cluster:
 r-cran-cluster depends on r-base-core (>= 3.2.5-1trusty0); however:
  Package r-base-core is not installed.
 r-cran-cluster depends on r-api-3; however:
  Package r-api-3 is not installed.

dpkg: error processing package r-cran-cluster (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 r-cran-cluster
dc95
  • 123
  • 10

2 Answers2

1

Try to install r from CRAN. Add

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

to your /etc/apt/sources.list then add the key to archive

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

Then everything should be OK

sudo apt-get update
sudo apt-get install r-base r-recommended rstudio

P.S. Don't forget to update repository in sources.list after upgrading to a new version of Ubuntu. List of available versions and some setup instructions.

Slowpoke
  • 218
0

I finally figured out that it was my service provider's problem. For some reason the network at my institute was blocking this single file. So I installed r-base from terminal at another network (from another place) and it worked flawlessly!

dc95
  • 123
  • 10