0

I tried following the directions in this post Installing latest version of R-base after several simpler techniques failed to upgrade my R (which is stuck on 3.0.2). Everything seems to have worked until the last instruction: sudo apt-get install r-base, which led to this message:

ubuntu@ip-10-0-1-108:/srv/shiny-server/atomic_junctions$ 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 (>= 3.2.2-1precise0) but it is not going to be installed
          Depends: r-recommended (= 3.2.2-1precise0) 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.

I thought this meant I needed to install the mentioned dependencies. I kept getting more and more errors relating to one package needing another until I gave up when trying this:

sudo apt-get install r-base r-base-core r-recommended r-base-html r-base-dev

which still leads to errors:

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-core : Depends: libtiff4 but it is not installable
E: Unable to correct problems, you have held broken packages.

So now I just don't have R installed at all. I need to upgrade as some packages I am using are not available for this old version of R. Any help/recommendations would be appreciated. Thanks.

9
  • try only with apt-get install r-base Oct 7, 2015 at 17:13
  • @AizuddinZali that just results in permission denied.
    – sunny
    Oct 7, 2015 at 17:19
  • of course you need sudo apt-get install r-base. Oct 7, 2015 at 17:39
  • @AizuddinZali then I don't understand your first comment.
    – sunny
    Oct 7, 2015 at 17:42
  • well, that is common sense that you cant install anything without root priviledges. Try my suggestion and let apt resolve the dependencies for you. Oct 7, 2015 at 17:44

1 Answer 1

0

For me the answer was trying another R mirror site. For some reason, the original site never worked and the error message didn't say anything suggesting this was the problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .