Error Installing R on Ubuntu 18 Broken Packages
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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.
apt package-management software-installation dependencies r
 |Â
show 3 more comments
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.
apt package-management software-installation dependencies r
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 oflsb_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 useR
reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
â WinEunuuchs2Unix
May 4 at 12:21
 |Â
show 3 more comments
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.
apt package-management software-installation dependencies r
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.
apt package-management software-installation dependencies r
edited May 4 at 12:05
![](https://i.stack.imgur.com/hXT0U.jpg?s=32&g=1)
![](https://i.stack.imgur.com/hXT0U.jpg?s=32&g=1)
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 oflsb_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 useR
reliably. Then after Ubuntu 18.04 is fixed you can upgrade.
â WinEunuuchs2Unix
May 4 at 12:21
 |Â
show 3 more comments
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 oflsb_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 useR
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
 |Â
show 3 more comments
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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