Error Installing R on Ubuntu 18 Broken Packages

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I'm really struggling with installing R on Ubuntu 18. It's my first time with the OS...
I tried looking up other questions here in the website and had no luck, even with this on that is basically my problem: Dependency errors while installing R in Ubuntu 17.10



Anyway, I tried running sudo apt install r-base and the response is:



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.4.4-1xenial0) but it is not going to be installed
Depends: r-recommended (= 3.4.4-1xenial0) 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.


And no instruction I've seen here or in any other site seems to correct this issue... If anyone could help me I'd be so grateful! Thanks.







share|improve this question






















  • Did you upgrade from 16.04 and where those packages while being on 16.04.x ?
    – Videonauth
    May 4 at 12:03










  • I didn't upgrade. I had windows on this machine and then switched to ubuntu and am learning to use it properly now...
    – Lucas X
    May 4 at 12:10










  • Or did you install any PPA for r-base? None of the packages on my 18.04 have any xenial (16.04) dependencies mentioned. Or are you on 16.04? Please edit your question to include the output of lsb_release -a.
    – Videonauth
    May 4 at 12:11











  • And you can try to use my below posted solution for a fix and tell me how it goes.
    – Videonauth
    May 4 at 12:16










  • Install Ubuntu 16.04 instead. You should be able to use R reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
    – WinEunuuchs2Unix
    May 4 at 12:21














up vote
2
down vote

favorite












I'm really struggling with installing R on Ubuntu 18. It's my first time with the OS...
I tried looking up other questions here in the website and had no luck, even with this on that is basically my problem: Dependency errors while installing R in Ubuntu 17.10



Anyway, I tried running sudo apt install r-base and the response is:



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.4.4-1xenial0) but it is not going to be installed
Depends: r-recommended (= 3.4.4-1xenial0) 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.


And no instruction I've seen here or in any other site seems to correct this issue... If anyone could help me I'd be so grateful! Thanks.







share|improve this question






















  • Did you upgrade from 16.04 and where those packages while being on 16.04.x ?
    – Videonauth
    May 4 at 12:03










  • I didn't upgrade. I had windows on this machine and then switched to ubuntu and am learning to use it properly now...
    – Lucas X
    May 4 at 12:10










  • Or did you install any PPA for r-base? None of the packages on my 18.04 have any xenial (16.04) dependencies mentioned. Or are you on 16.04? Please edit your question to include the output of lsb_release -a.
    – Videonauth
    May 4 at 12:11











  • And you can try to use my below posted solution for a fix and tell me how it goes.
    – Videonauth
    May 4 at 12:16










  • Install Ubuntu 16.04 instead. You should be able to use R reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
    – WinEunuuchs2Unix
    May 4 at 12:21












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I'm really struggling with installing R on Ubuntu 18. It's my first time with the OS...
I tried looking up other questions here in the website and had no luck, even with this on that is basically my problem: Dependency errors while installing R in Ubuntu 17.10



Anyway, I tried running sudo apt install r-base and the response is:



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.4.4-1xenial0) but it is not going to be installed
Depends: r-recommended (= 3.4.4-1xenial0) 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.


And no instruction I've seen here or in any other site seems to correct this issue... If anyone could help me I'd be so grateful! Thanks.







share|improve this question














I'm really struggling with installing R on Ubuntu 18. It's my first time with the OS...
I tried looking up other questions here in the website and had no luck, even with this on that is basically my problem: Dependency errors while installing R in Ubuntu 17.10



Anyway, I tried running sudo apt install r-base and the response is:



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.4.4-1xenial0) but it is not going to be installed
Depends: r-recommended (= 3.4.4-1xenial0) 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.


And no instruction I've seen here or in any other site seems to correct this issue... If anyone could help me I'd be so grateful! Thanks.









share|improve this question













share|improve this question




share|improve this question








edited May 4 at 12:05









Suraj Rao

5172512




5172512










asked May 4 at 11:51









Lucas X

515




515











  • Did you upgrade from 16.04 and where those packages while being on 16.04.x ?
    – Videonauth
    May 4 at 12:03










  • I didn't upgrade. I had windows on this machine and then switched to ubuntu and am learning to use it properly now...
    – Lucas X
    May 4 at 12:10










  • Or did you install any PPA for r-base? None of the packages on my 18.04 have any xenial (16.04) dependencies mentioned. Or are you on 16.04? Please edit your question to include the output of lsb_release -a.
    – Videonauth
    May 4 at 12:11











  • And you can try to use my below posted solution for a fix and tell me how it goes.
    – Videonauth
    May 4 at 12:16










  • Install Ubuntu 16.04 instead. You should be able to use R reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
    – WinEunuuchs2Unix
    May 4 at 12:21
















  • Did you upgrade from 16.04 and where those packages while being on 16.04.x ?
    – Videonauth
    May 4 at 12:03










  • I didn't upgrade. I had windows on this machine and then switched to ubuntu and am learning to use it properly now...
    – Lucas X
    May 4 at 12:10










  • Or did you install any PPA for r-base? None of the packages on my 18.04 have any xenial (16.04) dependencies mentioned. Or are you on 16.04? Please edit your question to include the output of lsb_release -a.
    – Videonauth
    May 4 at 12:11











  • And you can try to use my below posted solution for a fix and tell me how it goes.
    – Videonauth
    May 4 at 12:16










  • Install Ubuntu 16.04 instead. You should be able to use R reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
    – WinEunuuchs2Unix
    May 4 at 12:21















Did you upgrade from 16.04 and where those packages while being on 16.04.x ?
– Videonauth
May 4 at 12:03




Did you upgrade from 16.04 and where those packages while being on 16.04.x ?
– Videonauth
May 4 at 12:03












I didn't upgrade. I had windows on this machine and then switched to ubuntu and am learning to use it properly now...
– Lucas X
May 4 at 12:10




I didn't upgrade. I had windows on this machine and then switched to ubuntu and am learning to use it properly now...
– Lucas X
May 4 at 12:10












Or did you install any PPA for r-base? None of the packages on my 18.04 have any xenial (16.04) dependencies mentioned. Or are you on 16.04? Please edit your question to include the output of lsb_release -a.
– Videonauth
May 4 at 12:11





Or did you install any PPA for r-base? None of the packages on my 18.04 have any xenial (16.04) dependencies mentioned. Or are you on 16.04? Please edit your question to include the output of lsb_release -a.
– Videonauth
May 4 at 12:11













And you can try to use my below posted solution for a fix and tell me how it goes.
– Videonauth
May 4 at 12:16




And you can try to use my below posted solution for a fix and tell me how it goes.
– Videonauth
May 4 at 12:16












Install Ubuntu 16.04 instead. You should be able to use R reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
– WinEunuuchs2Unix
May 4 at 12:21




Install Ubuntu 16.04 instead. You should be able to use R reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
– WinEunuuchs2Unix
May 4 at 12:21










1 Answer
1






active

oldest

votes

















up vote
4
down vote













thanks for the help!
But I found what was wrong in another post... this one:
How do I restore the default repositories?

It seems some code I used from another forum just ended up messing my repositories I guess?
Anyway, thanks everyone! Sorry I asked for help when I just needed to do more research :P



So what I did was:



  • run the following code: sudo rm /etc/apt/sources.list

  • then: sudo -i software-properties-gtk

Go to software-properties-gtk (run it in the console)and reset the repository to the one closest to me (geographically):



Should look like this



and then just reset the update configs to whatever suits you I guess, I put all to automatically update daily.


Then I just ran sudo apt-get intall r-base in and it worked!

Credit to the original post i mentioned earlier.






share|improve this answer






















  • Then I will delete my answer. but I guess after cleaning up your sources.list my solution will have brought you to the proper path, so please make this a proper answer to your question :) by editing and expanding it.
    – Videonauth
    May 4 at 12:33










  • Ok, but I think I don't understand what you said at the end... I should edit my answer so that I explain that you posted a answer that would have worked but I found another solution before trying yours? Sorry, I don't often user this type of forums :P don't really know the right way to do things...
    – Lucas X
    May 4 at 12:39










  • No post in your answer the steps it took you to fix your system. That I was saying. Questions and answers are not only for the OP, but for people stumbling over the same mistake/problem.
    – Videonauth
    May 4 at 12:41











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f1031946%2ferror-installing-r-on-ubuntu-18-broken-packages%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote













thanks for the help!
But I found what was wrong in another post... this one:
How do I restore the default repositories?

It seems some code I used from another forum just ended up messing my repositories I guess?
Anyway, thanks everyone! Sorry I asked for help when I just needed to do more research :P



So what I did was:



  • run the following code: sudo rm /etc/apt/sources.list

  • then: sudo -i software-properties-gtk

Go to software-properties-gtk (run it in the console)and reset the repository to the one closest to me (geographically):



Should look like this



and then just reset the update configs to whatever suits you I guess, I put all to automatically update daily.


Then I just ran sudo apt-get intall r-base in and it worked!

Credit to the original post i mentioned earlier.






share|improve this answer






















  • Then I will delete my answer. but I guess after cleaning up your sources.list my solution will have brought you to the proper path, so please make this a proper answer to your question :) by editing and expanding it.
    – Videonauth
    May 4 at 12:33










  • Ok, but I think I don't understand what you said at the end... I should edit my answer so that I explain that you posted a answer that would have worked but I found another solution before trying yours? Sorry, I don't often user this type of forums :P don't really know the right way to do things...
    – Lucas X
    May 4 at 12:39










  • No post in your answer the steps it took you to fix your system. That I was saying. Questions and answers are not only for the OP, but for people stumbling over the same mistake/problem.
    – Videonauth
    May 4 at 12:41















up vote
4
down vote













thanks for the help!
But I found what was wrong in another post... this one:
How do I restore the default repositories?

It seems some code I used from another forum just ended up messing my repositories I guess?
Anyway, thanks everyone! Sorry I asked for help when I just needed to do more research :P



So what I did was:



  • run the following code: sudo rm /etc/apt/sources.list

  • then: sudo -i software-properties-gtk

Go to software-properties-gtk (run it in the console)and reset the repository to the one closest to me (geographically):



Should look like this



and then just reset the update configs to whatever suits you I guess, I put all to automatically update daily.


Then I just ran sudo apt-get intall r-base in and it worked!

Credit to the original post i mentioned earlier.






share|improve this answer






















  • Then I will delete my answer. but I guess after cleaning up your sources.list my solution will have brought you to the proper path, so please make this a proper answer to your question :) by editing and expanding it.
    – Videonauth
    May 4 at 12:33










  • Ok, but I think I don't understand what you said at the end... I should edit my answer so that I explain that you posted a answer that would have worked but I found another solution before trying yours? Sorry, I don't often user this type of forums :P don't really know the right way to do things...
    – Lucas X
    May 4 at 12:39










  • No post in your answer the steps it took you to fix your system. That I was saying. Questions and answers are not only for the OP, but for people stumbling over the same mistake/problem.
    – Videonauth
    May 4 at 12:41













up vote
4
down vote










up vote
4
down vote









thanks for the help!
But I found what was wrong in another post... this one:
How do I restore the default repositories?

It seems some code I used from another forum just ended up messing my repositories I guess?
Anyway, thanks everyone! Sorry I asked for help when I just needed to do more research :P



So what I did was:



  • run the following code: sudo rm /etc/apt/sources.list

  • then: sudo -i software-properties-gtk

Go to software-properties-gtk (run it in the console)and reset the repository to the one closest to me (geographically):



Should look like this



and then just reset the update configs to whatever suits you I guess, I put all to automatically update daily.


Then I just ran sudo apt-get intall r-base in and it worked!

Credit to the original post i mentioned earlier.






share|improve this answer














thanks for the help!
But I found what was wrong in another post... this one:
How do I restore the default repositories?

It seems some code I used from another forum just ended up messing my repositories I guess?
Anyway, thanks everyone! Sorry I asked for help when I just needed to do more research :P



So what I did was:



  • run the following code: sudo rm /etc/apt/sources.list

  • then: sudo -i software-properties-gtk

Go to software-properties-gtk (run it in the console)and reset the repository to the one closest to me (geographically):



Should look like this



and then just reset the update configs to whatever suits you I guess, I put all to automatically update daily.


Then I just ran sudo apt-get intall r-base in and it worked!

Credit to the original post i mentioned earlier.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 4 at 13:06

























answered May 4 at 12:30









Lucas X

515




515











  • Then I will delete my answer. but I guess after cleaning up your sources.list my solution will have brought you to the proper path, so please make this a proper answer to your question :) by editing and expanding it.
    – Videonauth
    May 4 at 12:33










  • Ok, but I think I don't understand what you said at the end... I should edit my answer so that I explain that you posted a answer that would have worked but I found another solution before trying yours? Sorry, I don't often user this type of forums :P don't really know the right way to do things...
    – Lucas X
    May 4 at 12:39










  • No post in your answer the steps it took you to fix your system. That I was saying. Questions and answers are not only for the OP, but for people stumbling over the same mistake/problem.
    – Videonauth
    May 4 at 12:41

















  • Then I will delete my answer. but I guess after cleaning up your sources.list my solution will have brought you to the proper path, so please make this a proper answer to your question :) by editing and expanding it.
    – Videonauth
    May 4 at 12:33










  • Ok, but I think I don't understand what you said at the end... I should edit my answer so that I explain that you posted a answer that would have worked but I found another solution before trying yours? Sorry, I don't often user this type of forums :P don't really know the right way to do things...
    – Lucas X
    May 4 at 12:39










  • No post in your answer the steps it took you to fix your system. That I was saying. Questions and answers are not only for the OP, but for people stumbling over the same mistake/problem.
    – Videonauth
    May 4 at 12:41
















Then I will delete my answer. but I guess after cleaning up your sources.list my solution will have brought you to the proper path, so please make this a proper answer to your question :) by editing and expanding it.
– Videonauth
May 4 at 12:33




Then I will delete my answer. but I guess after cleaning up your sources.list my solution will have brought you to the proper path, so please make this a proper answer to your question :) by editing and expanding it.
– Videonauth
May 4 at 12:33












Ok, but I think I don't understand what you said at the end... I should edit my answer so that I explain that you posted a answer that would have worked but I found another solution before trying yours? Sorry, I don't often user this type of forums :P don't really know the right way to do things...
– Lucas X
May 4 at 12:39




Ok, but I think I don't understand what you said at the end... I should edit my answer so that I explain that you posted a answer that would have worked but I found another solution before trying yours? Sorry, I don't often user this type of forums :P don't really know the right way to do things...
– Lucas X
May 4 at 12:39












No post in your answer the steps it took you to fix your system. That I was saying. Questions and answers are not only for the OP, but for people stumbling over the same mistake/problem.
– Videonauth
May 4 at 12:41





No post in your answer the steps it took you to fix your system. That I was saying. Questions and answers are not only for the OP, but for people stumbling over the same mistake/problem.
– Videonauth
May 4 at 12:41













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1031946%2ferror-installing-r-on-ubuntu-18-broken-packages%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491