script auto accepting EULA / license agreement
I'm trying to script automation of a package (steamcmd).
The case figure is the user of the script has been informed pre-emptively of what EULA he/she has agreed to.
good now with that out of the way these are some packages for which this already works:
- ubuntu restricted extras
- corefonts : https://askubuntu.com/a/25614/307184
- and oracle java jdk : https://ubuntuforums.org/showthread.php?t=953779&page=2&s=afccde556ea4e48a02e45fd073789c31
none ever bothered to explain how they figured out the independent syntax for each of these but I'd like to finally get to the bottom of this so that anyone with the use of this ask ubuntu question may be able to automate installation for package N.
from what I gather the syntax is supposed to be something like :
echo PACKAGENAME PACKAGENAMEorUSERSPACE/accepted-PACKAGENAME-EULAPART select true | sudo debconf-set-selections
sudo apt install PACKAGENAME
although I haven't been able to get it to work thus far with many varients of :
echo steamcmd steamcmd/accepted-steamcmd-eula select true | sudo debconf-set-selections
apt bash scripts license
add a comment |
I'm trying to script automation of a package (steamcmd).
The case figure is the user of the script has been informed pre-emptively of what EULA he/she has agreed to.
good now with that out of the way these are some packages for which this already works:
- ubuntu restricted extras
- corefonts : https://askubuntu.com/a/25614/307184
- and oracle java jdk : https://ubuntuforums.org/showthread.php?t=953779&page=2&s=afccde556ea4e48a02e45fd073789c31
none ever bothered to explain how they figured out the independent syntax for each of these but I'd like to finally get to the bottom of this so that anyone with the use of this ask ubuntu question may be able to automate installation for package N.
from what I gather the syntax is supposed to be something like :
echo PACKAGENAME PACKAGENAMEorUSERSPACE/accepted-PACKAGENAME-EULAPART select true | sudo debconf-set-selections
sudo apt install PACKAGENAME
although I haven't been able to get it to work thus far with many varients of :
echo steamcmd steamcmd/accepted-steamcmd-eula select true | sudo debconf-set-selections
apt bash scripts license
add a comment |
I'm trying to script automation of a package (steamcmd).
The case figure is the user of the script has been informed pre-emptively of what EULA he/she has agreed to.
good now with that out of the way these are some packages for which this already works:
- ubuntu restricted extras
- corefonts : https://askubuntu.com/a/25614/307184
- and oracle java jdk : https://ubuntuforums.org/showthread.php?t=953779&page=2&s=afccde556ea4e48a02e45fd073789c31
none ever bothered to explain how they figured out the independent syntax for each of these but I'd like to finally get to the bottom of this so that anyone with the use of this ask ubuntu question may be able to automate installation for package N.
from what I gather the syntax is supposed to be something like :
echo PACKAGENAME PACKAGENAMEorUSERSPACE/accepted-PACKAGENAME-EULAPART select true | sudo debconf-set-selections
sudo apt install PACKAGENAME
although I haven't been able to get it to work thus far with many varients of :
echo steamcmd steamcmd/accepted-steamcmd-eula select true | sudo debconf-set-selections
apt bash scripts license
I'm trying to script automation of a package (steamcmd).
The case figure is the user of the script has been informed pre-emptively of what EULA he/she has agreed to.
good now with that out of the way these are some packages for which this already works:
- ubuntu restricted extras
- corefonts : https://askubuntu.com/a/25614/307184
- and oracle java jdk : https://ubuntuforums.org/showthread.php?t=953779&page=2&s=afccde556ea4e48a02e45fd073789c31
none ever bothered to explain how they figured out the independent syntax for each of these but I'd like to finally get to the bottom of this so that anyone with the use of this ask ubuntu question may be able to automate installation for package N.
from what I gather the syntax is supposed to be something like :
echo PACKAGENAME PACKAGENAMEorUSERSPACE/accepted-PACKAGENAME-EULAPART select true | sudo debconf-set-selections
sudo apt install PACKAGENAME
although I haven't been able to get it to work thus far with many varients of :
echo steamcmd steamcmd/accepted-steamcmd-eula select true | sudo debconf-set-selections
apt bash scripts license
apt bash scripts license
asked Mar 2 at 11:36
tatsutatsu
534433
534433
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
If you have access to a system on which the package is already installed, you should be able to use debconf-show
to query the database.
Ex.
$ sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
forsudo debconf-show steamcmd
I got* steam/question: I AGREE
, does that mean I have to type :echo steamcmd steam/question select I AGREE | sudo debconf-set-selections
?
– tatsu
Mar 2 at 12:45
with"I AGREE"
it worked for* steam/question:
but* steam/license
still showed up because it hadn't been viewed. the problem is it has no value. how can I set it as viewed without setting a value?
– tatsu
Mar 2 at 14:38
for future reference :echo RESET steam/license | sudo debconf-communicate steamcmd
allows me to unset the "viewed" tag.
– tatsu
Mar 2 at 14:41
okecho FSET steam/license seen true | sudo debconf-communicate steamcmd
sets the flag to "seen" : debian.org/doc/packaging-manuals/…
– tatsu
Mar 2 at 14:43
1
@tatsu why don't you write a complete answer and I will delete mine - it probably should have just been a comment in the first instance
– steeldriver
Mar 2 at 15:08
|
show 2 more comments
so as it turns out installing the app using the GUI once will allow you to then use debconf-show
to determine the correct syntax for your "auto-accept" for example :
sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
or
sudo debconf-show steam
* steam/question: I AGREE
* steam/license:
* steam/purge:
stars show modified entries,
among those there are modified entries that took no value.
For these, you'll have to enter :
echo steam steam/license note '' | sudo debconf-set-selections
for the one's where you want a value :
echo steam steam/question select "I AGREE" | sudo debconf-set-selections
or
echo msttcorefonts msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
depending on the value type.
once you've perfectly matched the expected.
sudo apt install thing-with-eula-normally
should breeze right on through the middle of your script without stopping it.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122466%2fscript-auto-accepting-eula-license-agreement%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you have access to a system on which the package is already installed, you should be able to use debconf-show
to query the database.
Ex.
$ sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
forsudo debconf-show steamcmd
I got* steam/question: I AGREE
, does that mean I have to type :echo steamcmd steam/question select I AGREE | sudo debconf-set-selections
?
– tatsu
Mar 2 at 12:45
with"I AGREE"
it worked for* steam/question:
but* steam/license
still showed up because it hadn't been viewed. the problem is it has no value. how can I set it as viewed without setting a value?
– tatsu
Mar 2 at 14:38
for future reference :echo RESET steam/license | sudo debconf-communicate steamcmd
allows me to unset the "viewed" tag.
– tatsu
Mar 2 at 14:41
okecho FSET steam/license seen true | sudo debconf-communicate steamcmd
sets the flag to "seen" : debian.org/doc/packaging-manuals/…
– tatsu
Mar 2 at 14:43
1
@tatsu why don't you write a complete answer and I will delete mine - it probably should have just been a comment in the first instance
– steeldriver
Mar 2 at 15:08
|
show 2 more comments
If you have access to a system on which the package is already installed, you should be able to use debconf-show
to query the database.
Ex.
$ sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
forsudo debconf-show steamcmd
I got* steam/question: I AGREE
, does that mean I have to type :echo steamcmd steam/question select I AGREE | sudo debconf-set-selections
?
– tatsu
Mar 2 at 12:45
with"I AGREE"
it worked for* steam/question:
but* steam/license
still showed up because it hadn't been viewed. the problem is it has no value. how can I set it as viewed without setting a value?
– tatsu
Mar 2 at 14:38
for future reference :echo RESET steam/license | sudo debconf-communicate steamcmd
allows me to unset the "viewed" tag.
– tatsu
Mar 2 at 14:41
okecho FSET steam/license seen true | sudo debconf-communicate steamcmd
sets the flag to "seen" : debian.org/doc/packaging-manuals/…
– tatsu
Mar 2 at 14:43
1
@tatsu why don't you write a complete answer and I will delete mine - it probably should have just been a comment in the first instance
– steeldriver
Mar 2 at 15:08
|
show 2 more comments
If you have access to a system on which the package is already installed, you should be able to use debconf-show
to query the database.
Ex.
$ sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
If you have access to a system on which the package is already installed, you should be able to use debconf-show
to query the database.
Ex.
$ sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
answered Mar 2 at 12:35
steeldriversteeldriver
70.6k11114187
70.6k11114187
forsudo debconf-show steamcmd
I got* steam/question: I AGREE
, does that mean I have to type :echo steamcmd steam/question select I AGREE | sudo debconf-set-selections
?
– tatsu
Mar 2 at 12:45
with"I AGREE"
it worked for* steam/question:
but* steam/license
still showed up because it hadn't been viewed. the problem is it has no value. how can I set it as viewed without setting a value?
– tatsu
Mar 2 at 14:38
for future reference :echo RESET steam/license | sudo debconf-communicate steamcmd
allows me to unset the "viewed" tag.
– tatsu
Mar 2 at 14:41
okecho FSET steam/license seen true | sudo debconf-communicate steamcmd
sets the flag to "seen" : debian.org/doc/packaging-manuals/…
– tatsu
Mar 2 at 14:43
1
@tatsu why don't you write a complete answer and I will delete mine - it probably should have just been a comment in the first instance
– steeldriver
Mar 2 at 15:08
|
show 2 more comments
forsudo debconf-show steamcmd
I got* steam/question: I AGREE
, does that mean I have to type :echo steamcmd steam/question select I AGREE | sudo debconf-set-selections
?
– tatsu
Mar 2 at 12:45
with"I AGREE"
it worked for* steam/question:
but* steam/license
still showed up because it hadn't been viewed. the problem is it has no value. how can I set it as viewed without setting a value?
– tatsu
Mar 2 at 14:38
for future reference :echo RESET steam/license | sudo debconf-communicate steamcmd
allows me to unset the "viewed" tag.
– tatsu
Mar 2 at 14:41
okecho FSET steam/license seen true | sudo debconf-communicate steamcmd
sets the flag to "seen" : debian.org/doc/packaging-manuals/…
– tatsu
Mar 2 at 14:43
1
@tatsu why don't you write a complete answer and I will delete mine - it probably should have just been a comment in the first instance
– steeldriver
Mar 2 at 15:08
for
sudo debconf-show steamcmd
I got * steam/question: I AGREE
, does that mean I have to type : echo steamcmd steam/question select I AGREE | sudo debconf-set-selections
?– tatsu
Mar 2 at 12:45
for
sudo debconf-show steamcmd
I got * steam/question: I AGREE
, does that mean I have to type : echo steamcmd steam/question select I AGREE | sudo debconf-set-selections
?– tatsu
Mar 2 at 12:45
with
"I AGREE"
it worked for * steam/question:
but * steam/license
still showed up because it hadn't been viewed. the problem is it has no value. how can I set it as viewed without setting a value?– tatsu
Mar 2 at 14:38
with
"I AGREE"
it worked for * steam/question:
but * steam/license
still showed up because it hadn't been viewed. the problem is it has no value. how can I set it as viewed without setting a value?– tatsu
Mar 2 at 14:38
for future reference :
echo RESET steam/license | sudo debconf-communicate steamcmd
allows me to unset the "viewed" tag.– tatsu
Mar 2 at 14:41
for future reference :
echo RESET steam/license | sudo debconf-communicate steamcmd
allows me to unset the "viewed" tag.– tatsu
Mar 2 at 14:41
ok
echo FSET steam/license seen true | sudo debconf-communicate steamcmd
sets the flag to "seen" : debian.org/doc/packaging-manuals/…– tatsu
Mar 2 at 14:43
ok
echo FSET steam/license seen true | sudo debconf-communicate steamcmd
sets the flag to "seen" : debian.org/doc/packaging-manuals/…– tatsu
Mar 2 at 14:43
1
1
@tatsu why don't you write a complete answer and I will delete mine - it probably should have just been a comment in the first instance
– steeldriver
Mar 2 at 15:08
@tatsu why don't you write a complete answer and I will delete mine - it probably should have just been a comment in the first instance
– steeldriver
Mar 2 at 15:08
|
show 2 more comments
so as it turns out installing the app using the GUI once will allow you to then use debconf-show
to determine the correct syntax for your "auto-accept" for example :
sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
or
sudo debconf-show steam
* steam/question: I AGREE
* steam/license:
* steam/purge:
stars show modified entries,
among those there are modified entries that took no value.
For these, you'll have to enter :
echo steam steam/license note '' | sudo debconf-set-selections
for the one's where you want a value :
echo steam steam/question select "I AGREE" | sudo debconf-set-selections
or
echo msttcorefonts msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
depending on the value type.
once you've perfectly matched the expected.
sudo apt install thing-with-eula-normally
should breeze right on through the middle of your script without stopping it.
add a comment |
so as it turns out installing the app using the GUI once will allow you to then use debconf-show
to determine the correct syntax for your "auto-accept" for example :
sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
or
sudo debconf-show steam
* steam/question: I AGREE
* steam/license:
* steam/purge:
stars show modified entries,
among those there are modified entries that took no value.
For these, you'll have to enter :
echo steam steam/license note '' | sudo debconf-set-selections
for the one's where you want a value :
echo steam steam/question select "I AGREE" | sudo debconf-set-selections
or
echo msttcorefonts msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
depending on the value type.
once you've perfectly matched the expected.
sudo apt install thing-with-eula-normally
should breeze right on through the middle of your script without stopping it.
add a comment |
so as it turns out installing the app using the GUI once will allow you to then use debconf-show
to determine the correct syntax for your "auto-accept" for example :
sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
or
sudo debconf-show steam
* steam/question: I AGREE
* steam/license:
* steam/purge:
stars show modified entries,
among those there are modified entries that took no value.
For these, you'll have to enter :
echo steam steam/license note '' | sudo debconf-set-selections
for the one's where you want a value :
echo steam steam/question select "I AGREE" | sudo debconf-set-selections
or
echo msttcorefonts msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
depending on the value type.
once you've perfectly matched the expected.
sudo apt install thing-with-eula-normally
should breeze right on through the middle of your script without stopping it.
so as it turns out installing the app using the GUI once will allow you to then use debconf-show
to determine the correct syntax for your "auto-accept" for example :
sudo debconf-show ttf-mscorefonts-installer
msttcorefonts/dldir:
msttcorefonts/error-mscorefonts-eula:
* msttcorefonts/accepted-mscorefonts-eula: true
* msttcorefonts/present-mscorefonts-eula:
msttcorefonts/dlurl:
msttcorefonts/baddldir:
or
sudo debconf-show steam
* steam/question: I AGREE
* steam/license:
* steam/purge:
stars show modified entries,
among those there are modified entries that took no value.
For these, you'll have to enter :
echo steam steam/license note '' | sudo debconf-set-selections
for the one's where you want a value :
echo steam steam/question select "I AGREE" | sudo debconf-set-selections
or
echo msttcorefonts msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
depending on the value type.
once you've perfectly matched the expected.
sudo apt install thing-with-eula-normally
should breeze right on through the middle of your script without stopping it.
answered Mar 2 at 22:19
tatsutatsu
534433
534433
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122466%2fscript-auto-accepting-eula-license-agreement%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
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