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
r-base
cannot have missing packages on CRAN. Trysudo apt-get update --fix-missing
and then try to install r-base again. – Slowpoke Apr 29 '16 at 20:09deb http://stat.ethz.ch/CRAN/bin/linux/ubuntu trusty/
and adding its key and then updating and installing (Got it from http://askubuntu.com/questions/503270/problem-with-project-r-installation). Still it gives same error for this one also. What could be the cause of this? Could it be that my device or network is blocking this particulardeb
file? Can you try opening thedeb
URL in your browser? – dc95 Apr 29 '16 at 20:19deb
file in the software center, it gives same error:Failed to fetch http://cran.rstudio.com/bin/linux/ubuntu/trusty/r-cran-cluster_2.0.4-1trusty0_amd64.deb 403 Forbidden
Maybe because they are also using CRAN for that file? I also tried it usingdpkg
but that too didn't work. I will put entire output is in the update of the question. Any idea what might be causing this? Someone outside my network tried to go thedeb
files through browser but it showed "Not Found". I don't understand. What is going on? – dc95 Apr 29 '16 at 20:45sudo apt-get install ia32-libs
thensudo apt-get install r-base:i386
– Slowpoke Apr 29 '16 at 20:49E: Package 'ia32-libs' has no installation candidate`
– dc95 Apr 29 '16 at 20:54gdebi
does it as shown here. I don't want to move this discussion to chat as someone can find it useful or find a solution while reading this. – Slowpoke Apr 29 '16 at 20:56sudo apt-get update
thensudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
. You also may need to install gdebi:sudo apt-get install gdebi-core
– Slowpoke Apr 29 '16 at 20:58