Unable to install R 3.5.0 in Ubuntu Bionic Beaver (18.04)












8















I was delighted to hear that R developers finally shipped R 3.5 through their CRAN mirrors and decided to install it immediately.I added the requisite PPA as mentioned in the CRAN website,deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu bionic-cran35/ but after running the commandsudo apt-get update,I found the following warning.



expected bionic-cran35/ but got bionic



The screenshot is attached here for further clarity.
R_Bionic_installation_error



I was too optimistic and went on with the next codesudo apt-get install r-base and as expected, the installation failed. The errors are shown here.



   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-recommended (= 3.5.0-1bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


It is worth mentioning that it is not a secure APT related problem and I had already added the required apt-key . Also, I do not have any previous R installation in my system.I need the updated version out there.(The R in Bionic Universe is still 3.4.4)



Am I missing something?



UPDATE : The bug has been fixed by Michael Rutter and his Debian team. A big thanks to everyone involved.










share|improve this question

























  • Thank you @steeldriver for your quick response. I have edited the question with the required error codes.Please note that I am trying to install base R with sudo apt-get install r-base code.

    – pineapple
    Jun 13 '18 at 17:13








  • 3





    It seems that you should contact Michael Rutter and inform him about two problems - warning W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic) and dependency problem while installing r-base. As temporary solution you can use marutter PPA as described in this answer.

    – N0rbert
    Jun 13 '18 at 20:52













  • Thanks @N0rbert for the suggestion. Sure, I will send a mail to the mailing list.

    – pineapple
    Jun 14 '18 at 10:43


















8















I was delighted to hear that R developers finally shipped R 3.5 through their CRAN mirrors and decided to install it immediately.I added the requisite PPA as mentioned in the CRAN website,deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu bionic-cran35/ but after running the commandsudo apt-get update,I found the following warning.



expected bionic-cran35/ but got bionic



The screenshot is attached here for further clarity.
R_Bionic_installation_error



I was too optimistic and went on with the next codesudo apt-get install r-base and as expected, the installation failed. The errors are shown here.



   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-recommended (= 3.5.0-1bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


It is worth mentioning that it is not a secure APT related problem and I had already added the required apt-key . Also, I do not have any previous R installation in my system.I need the updated version out there.(The R in Bionic Universe is still 3.4.4)



Am I missing something?



UPDATE : The bug has been fixed by Michael Rutter and his Debian team. A big thanks to everyone involved.










share|improve this question

























  • Thank you @steeldriver for your quick response. I have edited the question with the required error codes.Please note that I am trying to install base R with sudo apt-get install r-base code.

    – pineapple
    Jun 13 '18 at 17:13








  • 3





    It seems that you should contact Michael Rutter and inform him about two problems - warning W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic) and dependency problem while installing r-base. As temporary solution you can use marutter PPA as described in this answer.

    – N0rbert
    Jun 13 '18 at 20:52













  • Thanks @N0rbert for the suggestion. Sure, I will send a mail to the mailing list.

    – pineapple
    Jun 14 '18 at 10:43
















8












8








8


1






I was delighted to hear that R developers finally shipped R 3.5 through their CRAN mirrors and decided to install it immediately.I added the requisite PPA as mentioned in the CRAN website,deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu bionic-cran35/ but after running the commandsudo apt-get update,I found the following warning.



expected bionic-cran35/ but got bionic



The screenshot is attached here for further clarity.
R_Bionic_installation_error



I was too optimistic and went on with the next codesudo apt-get install r-base and as expected, the installation failed. The errors are shown here.



   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-recommended (= 3.5.0-1bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


It is worth mentioning that it is not a secure APT related problem and I had already added the required apt-key . Also, I do not have any previous R installation in my system.I need the updated version out there.(The R in Bionic Universe is still 3.4.4)



Am I missing something?



UPDATE : The bug has been fixed by Michael Rutter and his Debian team. A big thanks to everyone involved.










share|improve this question
















I was delighted to hear that R developers finally shipped R 3.5 through their CRAN mirrors and decided to install it immediately.I added the requisite PPA as mentioned in the CRAN website,deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu bionic-cran35/ but after running the commandsudo apt-get update,I found the following warning.



expected bionic-cran35/ but got bionic



The screenshot is attached here for further clarity.
R_Bionic_installation_error



I was too optimistic and went on with the next codesudo apt-get install r-base and as expected, the installation failed. The errors are shown here.



   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-recommended (= 3.5.0-1bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


It is worth mentioning that it is not a secure APT related problem and I had already added the required apt-key . Also, I do not have any previous R installation in my system.I need the updated version out there.(The R in Bionic Universe is still 3.4.4)



Am I missing something?



UPDATE : The bug has been fixed by Michael Rutter and his Debian team. A big thanks to everyone involved.







software-installation 18.04 r






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 17 '18 at 11:28







pineapple

















asked Jun 13 '18 at 16:37









pineapplepineapple

12118




12118













  • Thank you @steeldriver for your quick response. I have edited the question with the required error codes.Please note that I am trying to install base R with sudo apt-get install r-base code.

    – pineapple
    Jun 13 '18 at 17:13








  • 3





    It seems that you should contact Michael Rutter and inform him about two problems - warning W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic) and dependency problem while installing r-base. As temporary solution you can use marutter PPA as described in this answer.

    – N0rbert
    Jun 13 '18 at 20:52













  • Thanks @N0rbert for the suggestion. Sure, I will send a mail to the mailing list.

    – pineapple
    Jun 14 '18 at 10:43





















  • Thank you @steeldriver for your quick response. I have edited the question with the required error codes.Please note that I am trying to install base R with sudo apt-get install r-base code.

    – pineapple
    Jun 13 '18 at 17:13








  • 3





    It seems that you should contact Michael Rutter and inform him about two problems - warning W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic) and dependency problem while installing r-base. As temporary solution you can use marutter PPA as described in this answer.

    – N0rbert
    Jun 13 '18 at 20:52













  • Thanks @N0rbert for the suggestion. Sure, I will send a mail to the mailing list.

    – pineapple
    Jun 14 '18 at 10:43



















Thank you @steeldriver for your quick response. I have edited the question with the required error codes.Please note that I am trying to install base R with sudo apt-get install r-base code.

– pineapple
Jun 13 '18 at 17:13







Thank you @steeldriver for your quick response. I have edited the question with the required error codes.Please note that I am trying to install base R with sudo apt-get install r-base code.

– pineapple
Jun 13 '18 at 17:13






3




3





It seems that you should contact Michael Rutter and inform him about two problems - warning W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic) and dependency problem while installing r-base. As temporary solution you can use marutter PPA as described in this answer.

– N0rbert
Jun 13 '18 at 20:52







It seems that you should contact Michael Rutter and inform him about two problems - warning W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic) and dependency problem while installing r-base. As temporary solution you can use marutter PPA as described in this answer.

– N0rbert
Jun 13 '18 at 20:52















Thanks @N0rbert for the suggestion. Sure, I will send a mail to the mailing list.

– pineapple
Jun 14 '18 at 10:43







Thanks @N0rbert for the suggestion. Sure, I will send a mail to the mailing list.

– pineapple
Jun 14 '18 at 10:43












1 Answer
1






active

oldest

votes


















8














I am posting this answer so that it might help someone stumbling over the same problem. The problem was solved with a roundabout trick - it was experimental but it did work out.



So, I was trying to install R 3.5.0 from CRAN directly and it refused to get installed as mentioned in the question. The idea was to install whatever existing version in Ubuntu Bionic (18.04) and upgrade to 3.5.0 (instead of installing R from scratch).



The detailed steps are :




  1. For now remove the source
    deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ from Software sources.



  2. Basic cleanup :-



    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get upgrade



  3. Install whatever existing version in Ubuntu Bionic with



    sudo apt-get install r-base


  4. Re-add the source deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/



  5. sudo apt-get update



    -- still shows the warning expected bionic-cran35/ but got bionic



    Ignore and proceed with sudo apt-get upgrade




  6. Upgrade all the existing packages in Linux



    sudo apt-get dist-upgrade



And the last command (6th) actually does the job --- R 3.5.0.



PS - The warning still displays in the screen when I update the sources but right now appears to be innocuous. Hopefully the next R update will fix that.



UPDATE : Infact, the bug has been fixed. So we can directly install R as per CRAN website from now on.






share|improve this answer


























  • This helped me: r-bloggers.com/…

    – esperluette
    Jan 16 at 20:54











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1046289%2funable-to-install-r-3-5-0-in-ubuntu-bionic-beaver-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









8














I am posting this answer so that it might help someone stumbling over the same problem. The problem was solved with a roundabout trick - it was experimental but it did work out.



So, I was trying to install R 3.5.0 from CRAN directly and it refused to get installed as mentioned in the question. The idea was to install whatever existing version in Ubuntu Bionic (18.04) and upgrade to 3.5.0 (instead of installing R from scratch).



The detailed steps are :




  1. For now remove the source
    deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ from Software sources.



  2. Basic cleanup :-



    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get upgrade



  3. Install whatever existing version in Ubuntu Bionic with



    sudo apt-get install r-base


  4. Re-add the source deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/



  5. sudo apt-get update



    -- still shows the warning expected bionic-cran35/ but got bionic



    Ignore and proceed with sudo apt-get upgrade




  6. Upgrade all the existing packages in Linux



    sudo apt-get dist-upgrade



And the last command (6th) actually does the job --- R 3.5.0.



PS - The warning still displays in the screen when I update the sources but right now appears to be innocuous. Hopefully the next R update will fix that.



UPDATE : Infact, the bug has been fixed. So we can directly install R as per CRAN website from now on.






share|improve this answer


























  • This helped me: r-bloggers.com/…

    – esperluette
    Jan 16 at 20:54
















8














I am posting this answer so that it might help someone stumbling over the same problem. The problem was solved with a roundabout trick - it was experimental but it did work out.



So, I was trying to install R 3.5.0 from CRAN directly and it refused to get installed as mentioned in the question. The idea was to install whatever existing version in Ubuntu Bionic (18.04) and upgrade to 3.5.0 (instead of installing R from scratch).



The detailed steps are :




  1. For now remove the source
    deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ from Software sources.



  2. Basic cleanup :-



    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get upgrade



  3. Install whatever existing version in Ubuntu Bionic with



    sudo apt-get install r-base


  4. Re-add the source deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/



  5. sudo apt-get update



    -- still shows the warning expected bionic-cran35/ but got bionic



    Ignore and proceed with sudo apt-get upgrade




  6. Upgrade all the existing packages in Linux



    sudo apt-get dist-upgrade



And the last command (6th) actually does the job --- R 3.5.0.



PS - The warning still displays in the screen when I update the sources but right now appears to be innocuous. Hopefully the next R update will fix that.



UPDATE : Infact, the bug has been fixed. So we can directly install R as per CRAN website from now on.






share|improve this answer


























  • This helped me: r-bloggers.com/…

    – esperluette
    Jan 16 at 20:54














8












8








8







I am posting this answer so that it might help someone stumbling over the same problem. The problem was solved with a roundabout trick - it was experimental but it did work out.



So, I was trying to install R 3.5.0 from CRAN directly and it refused to get installed as mentioned in the question. The idea was to install whatever existing version in Ubuntu Bionic (18.04) and upgrade to 3.5.0 (instead of installing R from scratch).



The detailed steps are :




  1. For now remove the source
    deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ from Software sources.



  2. Basic cleanup :-



    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get upgrade



  3. Install whatever existing version in Ubuntu Bionic with



    sudo apt-get install r-base


  4. Re-add the source deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/



  5. sudo apt-get update



    -- still shows the warning expected bionic-cran35/ but got bionic



    Ignore and proceed with sudo apt-get upgrade




  6. Upgrade all the existing packages in Linux



    sudo apt-get dist-upgrade



And the last command (6th) actually does the job --- R 3.5.0.



PS - The warning still displays in the screen when I update the sources but right now appears to be innocuous. Hopefully the next R update will fix that.



UPDATE : Infact, the bug has been fixed. So we can directly install R as per CRAN website from now on.






share|improve this answer















I am posting this answer so that it might help someone stumbling over the same problem. The problem was solved with a roundabout trick - it was experimental but it did work out.



So, I was trying to install R 3.5.0 from CRAN directly and it refused to get installed as mentioned in the question. The idea was to install whatever existing version in Ubuntu Bionic (18.04) and upgrade to 3.5.0 (instead of installing R from scratch).



The detailed steps are :




  1. For now remove the source
    deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ from Software sources.



  2. Basic cleanup :-



    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get upgrade



  3. Install whatever existing version in Ubuntu Bionic with



    sudo apt-get install r-base


  4. Re-add the source deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/



  5. sudo apt-get update



    -- still shows the warning expected bionic-cran35/ but got bionic



    Ignore and proceed with sudo apt-get upgrade




  6. Upgrade all the existing packages in Linux



    sudo apt-get dist-upgrade



And the last command (6th) actually does the job --- R 3.5.0.



PS - The warning still displays in the screen when I update the sources but right now appears to be innocuous. Hopefully the next R update will fix that.



UPDATE : Infact, the bug has been fixed. So we can directly install R as per CRAN website from now on.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 17 '18 at 11:31

























answered Jun 16 '18 at 12:40









pineapplepineapple

12118




12118













  • This helped me: r-bloggers.com/…

    – esperluette
    Jan 16 at 20:54



















  • This helped me: r-bloggers.com/…

    – esperluette
    Jan 16 at 20:54

















This helped me: r-bloggers.com/…

– esperluette
Jan 16 at 20:54





This helped me: r-bloggers.com/…

– esperluette
Jan 16 at 20:54


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1046289%2funable-to-install-r-3-5-0-in-ubuntu-bionic-beaver-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

is 'sed' thread safe

How to make a Squid Proxy server?