package dependency error











up vote
0
down vote

favorite












I just want to start by saying that my initial goal was to execute the following command:



$ sudo apt-get install build-essential cmake unzip pkg-config

But, then i received the following error:



enter code hereReading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu2).
unzip is already the newest version (6.0-21ubuntu1).
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:
cmake : Depends: libcurl4 (>= 7.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Then, i followed the link :How do I resolve unmet dependencies after adding a PPA?, followed the steps there but I still couldn't succeed. The first problem I ran into was when running:



sudo apt-get upgrade


as, I got the following error:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
r-cran-boot r-cran-codetools r-cran-spatial
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


Then , I tried removing them ( as i read in one of the threads) by using the command: sudo apt-get remove <packagename>
But I still couldn't fix it. This lead to another error as follows:



$sudo apt-get remove r-base-core
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-cran-boot : Depends: r-base-core (>= 3.4.1-2xenial0) but it is not going to be installed
Depends: r-api-3
r-cran-codetools : Depends: r-base-core but it is not going to be installed
r-cran-spatial : Depends: r-base-core (>= 3.2.5-1xenial) but it is not going to be installed
Depends: r-api-3
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


Which kind of brings me full circle I guess and i have no idea what to do next. Any help would be much much appreciated. Thank you.



EDIT:As per the comment, I've added the output of apt-cache policy r-base-core r-cran-boot:



$apt-cache policy r-base-core r-cran-boot

r-base-core:
Installed: 3.4.4-1xenial0
Candidate: 3.4.4-1xenial0
Version table:
*** 3.4.4-1xenial0 100
100 /var/lib/dpkg/status
3.4.4-1ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
r-cran-boot:
Installed: 1.3-20-1xenial0
Candidate: 1.3-20-1.1
Version table:
1.3-20-1.1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
*** 1.3-20-1xenial0 100
100 /var/lib/dpkg/status









share|improve this question




















  • 1




    You'll have to tell us your version of Ubuntu; there are references to 16.04 LTS (xenial) in your messages, but the build-essential package you have is a 18.04 LTS (bionic) package (packages.ubuntu.com/search?keywords=build-essential). (packages.ubuntu.com/search?keywords=libcurl4)
    – guiverc
    Nov 24 at 6:33












  • @guiverc , my bad, I'm using Ubuntu 18.04 but i upgraded to this from 16.04.
    – pramesh shakya
    Nov 24 at 6:55






  • 1




    On clean 18.04 LTS without any PPAs all mentioned packages may be installed without errors. Do you have any PPAs? Please add output of apt-cache policy r-base-core r-cran-boot to the question.
    – N0rbert
    Nov 24 at 8:44










  • "You have requested an impossible situation" usually means that you have made unwise choices of the sources for your packages. It often means that you have added a source that provides wrong-release, wrong-version, or otherwise incompatible packages. Or if you have already removed the unwise source, you still have packages from that unwise source installed that must be removed.
    – user535733
    Nov 24 at 14:45










  • @user535733 I'm not very well versed with linux and i appreciate the help, would you happen to know any solution to resolve this issue? Thank you
    – pramesh shakya
    Nov 24 at 17:28















up vote
0
down vote

favorite












I just want to start by saying that my initial goal was to execute the following command:



$ sudo apt-get install build-essential cmake unzip pkg-config

But, then i received the following error:



enter code hereReading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu2).
unzip is already the newest version (6.0-21ubuntu1).
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:
cmake : Depends: libcurl4 (>= 7.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Then, i followed the link :How do I resolve unmet dependencies after adding a PPA?, followed the steps there but I still couldn't succeed. The first problem I ran into was when running:



sudo apt-get upgrade


as, I got the following error:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
r-cran-boot r-cran-codetools r-cran-spatial
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


Then , I tried removing them ( as i read in one of the threads) by using the command: sudo apt-get remove <packagename>
But I still couldn't fix it. This lead to another error as follows:



$sudo apt-get remove r-base-core
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-cran-boot : Depends: r-base-core (>= 3.4.1-2xenial0) but it is not going to be installed
Depends: r-api-3
r-cran-codetools : Depends: r-base-core but it is not going to be installed
r-cran-spatial : Depends: r-base-core (>= 3.2.5-1xenial) but it is not going to be installed
Depends: r-api-3
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


Which kind of brings me full circle I guess and i have no idea what to do next. Any help would be much much appreciated. Thank you.



EDIT:As per the comment, I've added the output of apt-cache policy r-base-core r-cran-boot:



$apt-cache policy r-base-core r-cran-boot

r-base-core:
Installed: 3.4.4-1xenial0
Candidate: 3.4.4-1xenial0
Version table:
*** 3.4.4-1xenial0 100
100 /var/lib/dpkg/status
3.4.4-1ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
r-cran-boot:
Installed: 1.3-20-1xenial0
Candidate: 1.3-20-1.1
Version table:
1.3-20-1.1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
*** 1.3-20-1xenial0 100
100 /var/lib/dpkg/status









share|improve this question




















  • 1




    You'll have to tell us your version of Ubuntu; there are references to 16.04 LTS (xenial) in your messages, but the build-essential package you have is a 18.04 LTS (bionic) package (packages.ubuntu.com/search?keywords=build-essential). (packages.ubuntu.com/search?keywords=libcurl4)
    – guiverc
    Nov 24 at 6:33












  • @guiverc , my bad, I'm using Ubuntu 18.04 but i upgraded to this from 16.04.
    – pramesh shakya
    Nov 24 at 6:55






  • 1




    On clean 18.04 LTS without any PPAs all mentioned packages may be installed without errors. Do you have any PPAs? Please add output of apt-cache policy r-base-core r-cran-boot to the question.
    – N0rbert
    Nov 24 at 8:44










  • "You have requested an impossible situation" usually means that you have made unwise choices of the sources for your packages. It often means that you have added a source that provides wrong-release, wrong-version, or otherwise incompatible packages. Or if you have already removed the unwise source, you still have packages from that unwise source installed that must be removed.
    – user535733
    Nov 24 at 14:45










  • @user535733 I'm not very well versed with linux and i appreciate the help, would you happen to know any solution to resolve this issue? Thank you
    – pramesh shakya
    Nov 24 at 17:28













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I just want to start by saying that my initial goal was to execute the following command:



$ sudo apt-get install build-essential cmake unzip pkg-config

But, then i received the following error:



enter code hereReading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu2).
unzip is already the newest version (6.0-21ubuntu1).
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:
cmake : Depends: libcurl4 (>= 7.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Then, i followed the link :How do I resolve unmet dependencies after adding a PPA?, followed the steps there but I still couldn't succeed. The first problem I ran into was when running:



sudo apt-get upgrade


as, I got the following error:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
r-cran-boot r-cran-codetools r-cran-spatial
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


Then , I tried removing them ( as i read in one of the threads) by using the command: sudo apt-get remove <packagename>
But I still couldn't fix it. This lead to another error as follows:



$sudo apt-get remove r-base-core
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-cran-boot : Depends: r-base-core (>= 3.4.1-2xenial0) but it is not going to be installed
Depends: r-api-3
r-cran-codetools : Depends: r-base-core but it is not going to be installed
r-cran-spatial : Depends: r-base-core (>= 3.2.5-1xenial) but it is not going to be installed
Depends: r-api-3
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


Which kind of brings me full circle I guess and i have no idea what to do next. Any help would be much much appreciated. Thank you.



EDIT:As per the comment, I've added the output of apt-cache policy r-base-core r-cran-boot:



$apt-cache policy r-base-core r-cran-boot

r-base-core:
Installed: 3.4.4-1xenial0
Candidate: 3.4.4-1xenial0
Version table:
*** 3.4.4-1xenial0 100
100 /var/lib/dpkg/status
3.4.4-1ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
r-cran-boot:
Installed: 1.3-20-1xenial0
Candidate: 1.3-20-1.1
Version table:
1.3-20-1.1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
*** 1.3-20-1xenial0 100
100 /var/lib/dpkg/status









share|improve this question















I just want to start by saying that my initial goal was to execute the following command:



$ sudo apt-get install build-essential cmake unzip pkg-config

But, then i received the following error:



enter code hereReading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu2).
unzip is already the newest version (6.0-21ubuntu1).
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:
cmake : Depends: libcurl4 (>= 7.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Then, i followed the link :How do I resolve unmet dependencies after adding a PPA?, followed the steps there but I still couldn't succeed. The first problem I ran into was when running:



sudo apt-get upgrade


as, I got the following error:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
r-cran-boot r-cran-codetools r-cran-spatial
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


Then , I tried removing them ( as i read in one of the threads) by using the command: sudo apt-get remove <packagename>
But I still couldn't fix it. This lead to another error as follows:



$sudo apt-get remove r-base-core
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-cran-boot : Depends: r-base-core (>= 3.4.1-2xenial0) but it is not going to be installed
Depends: r-api-3
r-cran-codetools : Depends: r-base-core but it is not going to be installed
r-cran-spatial : Depends: r-base-core (>= 3.2.5-1xenial) but it is not going to be installed
Depends: r-api-3
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


Which kind of brings me full circle I guess and i have no idea what to do next. Any help would be much much appreciated. Thank you.



EDIT:As per the comment, I've added the output of apt-cache policy r-base-core r-cran-boot:



$apt-cache policy r-base-core r-cran-boot

r-base-core:
Installed: 3.4.4-1xenial0
Candidate: 3.4.4-1xenial0
Version table:
*** 3.4.4-1xenial0 100
100 /var/lib/dpkg/status
3.4.4-1ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
r-cran-boot:
Installed: 1.3-20-1xenial0
Candidate: 1.3-20-1.1
Version table:
1.3-20-1.1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
*** 1.3-20-1xenial0 100
100 /var/lib/dpkg/status






apt 18.04 package-management dependencies






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 17:26

























asked Nov 24 at 6:15









pramesh shakya

12




12








  • 1




    You'll have to tell us your version of Ubuntu; there are references to 16.04 LTS (xenial) in your messages, but the build-essential package you have is a 18.04 LTS (bionic) package (packages.ubuntu.com/search?keywords=build-essential). (packages.ubuntu.com/search?keywords=libcurl4)
    – guiverc
    Nov 24 at 6:33












  • @guiverc , my bad, I'm using Ubuntu 18.04 but i upgraded to this from 16.04.
    – pramesh shakya
    Nov 24 at 6:55






  • 1




    On clean 18.04 LTS without any PPAs all mentioned packages may be installed without errors. Do you have any PPAs? Please add output of apt-cache policy r-base-core r-cran-boot to the question.
    – N0rbert
    Nov 24 at 8:44










  • "You have requested an impossible situation" usually means that you have made unwise choices of the sources for your packages. It often means that you have added a source that provides wrong-release, wrong-version, or otherwise incompatible packages. Or if you have already removed the unwise source, you still have packages from that unwise source installed that must be removed.
    – user535733
    Nov 24 at 14:45










  • @user535733 I'm not very well versed with linux and i appreciate the help, would you happen to know any solution to resolve this issue? Thank you
    – pramesh shakya
    Nov 24 at 17:28














  • 1




    You'll have to tell us your version of Ubuntu; there are references to 16.04 LTS (xenial) in your messages, but the build-essential package you have is a 18.04 LTS (bionic) package (packages.ubuntu.com/search?keywords=build-essential). (packages.ubuntu.com/search?keywords=libcurl4)
    – guiverc
    Nov 24 at 6:33












  • @guiverc , my bad, I'm using Ubuntu 18.04 but i upgraded to this from 16.04.
    – pramesh shakya
    Nov 24 at 6:55






  • 1




    On clean 18.04 LTS without any PPAs all mentioned packages may be installed without errors. Do you have any PPAs? Please add output of apt-cache policy r-base-core r-cran-boot to the question.
    – N0rbert
    Nov 24 at 8:44










  • "You have requested an impossible situation" usually means that you have made unwise choices of the sources for your packages. It often means that you have added a source that provides wrong-release, wrong-version, or otherwise incompatible packages. Or if you have already removed the unwise source, you still have packages from that unwise source installed that must be removed.
    – user535733
    Nov 24 at 14:45










  • @user535733 I'm not very well versed with linux and i appreciate the help, would you happen to know any solution to resolve this issue? Thank you
    – pramesh shakya
    Nov 24 at 17:28








1




1




You'll have to tell us your version of Ubuntu; there are references to 16.04 LTS (xenial) in your messages, but the build-essential package you have is a 18.04 LTS (bionic) package (packages.ubuntu.com/search?keywords=build-essential). (packages.ubuntu.com/search?keywords=libcurl4)
– guiverc
Nov 24 at 6:33






You'll have to tell us your version of Ubuntu; there are references to 16.04 LTS (xenial) in your messages, but the build-essential package you have is a 18.04 LTS (bionic) package (packages.ubuntu.com/search?keywords=build-essential). (packages.ubuntu.com/search?keywords=libcurl4)
– guiverc
Nov 24 at 6:33














@guiverc , my bad, I'm using Ubuntu 18.04 but i upgraded to this from 16.04.
– pramesh shakya
Nov 24 at 6:55




@guiverc , my bad, I'm using Ubuntu 18.04 but i upgraded to this from 16.04.
– pramesh shakya
Nov 24 at 6:55




1




1




On clean 18.04 LTS without any PPAs all mentioned packages may be installed without errors. Do you have any PPAs? Please add output of apt-cache policy r-base-core r-cran-boot to the question.
– N0rbert
Nov 24 at 8:44




On clean 18.04 LTS without any PPAs all mentioned packages may be installed without errors. Do you have any PPAs? Please add output of apt-cache policy r-base-core r-cran-boot to the question.
– N0rbert
Nov 24 at 8:44












"You have requested an impossible situation" usually means that you have made unwise choices of the sources for your packages. It often means that you have added a source that provides wrong-release, wrong-version, or otherwise incompatible packages. Or if you have already removed the unwise source, you still have packages from that unwise source installed that must be removed.
– user535733
Nov 24 at 14:45




"You have requested an impossible situation" usually means that you have made unwise choices of the sources for your packages. It often means that you have added a source that provides wrong-release, wrong-version, or otherwise incompatible packages. Or if you have already removed the unwise source, you still have packages from that unwise source installed that must be removed.
– user535733
Nov 24 at 14:45












@user535733 I'm not very well versed with linux and i appreciate the help, would you happen to know any solution to resolve this issue? Thank you
– pramesh shakya
Nov 24 at 17:28




@user535733 I'm not very well versed with linux and i appreciate the help, would you happen to know any solution to resolve this issue? Thank you
– pramesh shakya
Nov 24 at 17:28















active

oldest

votes











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: 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%2f1095585%2fpackage-dependency-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f1095585%2fpackage-dependency-error%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei