select not found and unable to locate package select












0















I am trying to install Java 11 in Dockerfile according to this article How To Install Oracle Java 11 In Ubuntu, but have some problems while running this line:



select true | sudo /usr/bin/debconf-set-selections shows error:




/bin/sh: 1: select: not found




Try to install select by using apt-get -y install select, it shows:




E: Unable to locate package select




What should I do ? How do install select command on Ubuntu ?



Dockerfile



FROM ubuntu:16.04

RUN add-apt-repository ppa:linuxuprising/java &&
apt-get -y update &&
apt-get -y install select &&
echo oracle-java11-installer shared/accepted-oracle-license-v1-2 &&
select true | /usr/bin/debconf-set-selections &&
apt-get -y -f install oracle-java11-set-default









share|improve this question




















  • 2





    That's only half the line - the whole line is echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections i.e. oracle-java11-installer shared/accepted-oracle-license-v1-2 select true is a single string that is being echoed to the sudo command. (FYI select is a builtin command in bash - but that's not relevant here.) It would have been clearer if the author of the instructions had put quotes around it imho.

    – steeldriver
    Mar 13 at 7:05













  • @steeldriver thanks, it works now.

    – Corey
    Mar 13 at 7:36
















0















I am trying to install Java 11 in Dockerfile according to this article How To Install Oracle Java 11 In Ubuntu, but have some problems while running this line:



select true | sudo /usr/bin/debconf-set-selections shows error:




/bin/sh: 1: select: not found




Try to install select by using apt-get -y install select, it shows:




E: Unable to locate package select




What should I do ? How do install select command on Ubuntu ?



Dockerfile



FROM ubuntu:16.04

RUN add-apt-repository ppa:linuxuprising/java &&
apt-get -y update &&
apt-get -y install select &&
echo oracle-java11-installer shared/accepted-oracle-license-v1-2 &&
select true | /usr/bin/debconf-set-selections &&
apt-get -y -f install oracle-java11-set-default









share|improve this question




















  • 2





    That's only half the line - the whole line is echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections i.e. oracle-java11-installer shared/accepted-oracle-license-v1-2 select true is a single string that is being echoed to the sudo command. (FYI select is a builtin command in bash - but that's not relevant here.) It would have been clearer if the author of the instructions had put quotes around it imho.

    – steeldriver
    Mar 13 at 7:05













  • @steeldriver thanks, it works now.

    – Corey
    Mar 13 at 7:36














0












0








0








I am trying to install Java 11 in Dockerfile according to this article How To Install Oracle Java 11 In Ubuntu, but have some problems while running this line:



select true | sudo /usr/bin/debconf-set-selections shows error:




/bin/sh: 1: select: not found




Try to install select by using apt-get -y install select, it shows:




E: Unable to locate package select




What should I do ? How do install select command on Ubuntu ?



Dockerfile



FROM ubuntu:16.04

RUN add-apt-repository ppa:linuxuprising/java &&
apt-get -y update &&
apt-get -y install select &&
echo oracle-java11-installer shared/accepted-oracle-license-v1-2 &&
select true | /usr/bin/debconf-set-selections &&
apt-get -y -f install oracle-java11-set-default









share|improve this question
















I am trying to install Java 11 in Dockerfile according to this article How To Install Oracle Java 11 In Ubuntu, but have some problems while running this line:



select true | sudo /usr/bin/debconf-set-selections shows error:




/bin/sh: 1: select: not found




Try to install select by using apt-get -y install select, it shows:




E: Unable to locate package select




What should I do ? How do install select command on Ubuntu ?



Dockerfile



FROM ubuntu:16.04

RUN add-apt-repository ppa:linuxuprising/java &&
apt-get -y update &&
apt-get -y install select &&
echo oracle-java11-installer shared/accepted-oracle-license-v1-2 &&
select true | /usr/bin/debconf-set-selections &&
apt-get -y -f install oracle-java11-set-default






16.04 apt java docker






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 13 at 6:45







Corey

















asked Mar 13 at 6:26









CoreyCorey

10716




10716








  • 2





    That's only half the line - the whole line is echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections i.e. oracle-java11-installer shared/accepted-oracle-license-v1-2 select true is a single string that is being echoed to the sudo command. (FYI select is a builtin command in bash - but that's not relevant here.) It would have been clearer if the author of the instructions had put quotes around it imho.

    – steeldriver
    Mar 13 at 7:05













  • @steeldriver thanks, it works now.

    – Corey
    Mar 13 at 7:36














  • 2





    That's only half the line - the whole line is echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections i.e. oracle-java11-installer shared/accepted-oracle-license-v1-2 select true is a single string that is being echoed to the sudo command. (FYI select is a builtin command in bash - but that's not relevant here.) It would have been clearer if the author of the instructions had put quotes around it imho.

    – steeldriver
    Mar 13 at 7:05













  • @steeldriver thanks, it works now.

    – Corey
    Mar 13 at 7:36








2




2





That's only half the line - the whole line is echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections i.e. oracle-java11-installer shared/accepted-oracle-license-v1-2 select true is a single string that is being echoed to the sudo command. (FYI select is a builtin command in bash - but that's not relevant here.) It would have been clearer if the author of the instructions had put quotes around it imho.

– steeldriver
Mar 13 at 7:05







That's only half the line - the whole line is echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections i.e. oracle-java11-installer shared/accepted-oracle-license-v1-2 select true is a single string that is being echoed to the sudo command. (FYI select is a builtin command in bash - but that's not relevant here.) It would have been clearer if the author of the instructions had put quotes around it imho.

– steeldriver
Mar 13 at 7:05















@steeldriver thanks, it works now.

– Corey
Mar 13 at 7:36





@steeldriver thanks, it works now.

– Corey
Mar 13 at 7:36










0






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',
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%2f1125225%2fselect-not-found-and-unable-to-locate-package-select%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1125225%2fselect-not-found-and-unable-to-locate-package-select%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

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b