OS: TW MicroOS
I created file at:
cat /etc/zypp/zypp.conf.d/AgreeLicenses.conf
autoAgreeWithLicenses = yes
Results:
sudo journalctl -xeu transactional-update.service
...
Continue? [y/n/v/...? shows all options] (y): y
transactional-update[663128]: Do you agree with the terms of the license? [yes/no] (no): no
transactional-update[663128]: Aborting installation due to the need for license confirmation.
transactional-update[663128]: Please restart the operation in interactive mode and confirm your agreement with required licenses, or use the --auto-agree-with-licenses option.
transactional-update[663131]: Do you agree with the terms of the license? [yes/no] (no): no
transactional-update[663131]: Aborting installation due to the need for license confirmation.
transactional-update[663131]: Please restart the operation in interactive mode and confirm your agreement with required licenses, or use the --auto-agree-with-licenses option.
transactional-update[663128]: Application returned with exit status 4.
transactional-update[663131]: Application returned with exit status 4.
...
Did some search online and found only questions but no real answers, like there’s no fix to this? Should I edit the transactional-update.service itself (adding “–auto-agree-with-licenses” argument to the exec line?
@moshpuke Hi, it doesn’t look there, use a /etc/transactional-update.conf file instead.
Ref: https://manpages.opensuse.org/Tumbleweed/transactional-update/transactional-update.conf.5.en.html
Note /etc/transactional-update.conf takes precedence.
1 Like
Thanks for the link. I did not find /etc/transactional-update.conf on the system so it must be created.
A reference file (also used for reading the default values) can be found in /usr/etc/transactional-update.conf. Additionally packages may overwrite these default values by putting files into /usr/etc/transactional-update.conf.d/; files in that directory will be read alphabetically, assignments in later files will overwrite previous assignments. Admin settings in /etc/transactional-update.conf will have the highest precedence.
This is actually quite confusing to me. Normally one should put custom conf under “conf.d” folders, but it seems not the case for microOS?
I have put the autoAgreeWithLicenses = yesinside /etc/transactional-update.conffor now and will see.
Well, no. Use “conf.d” for config snippets that would otherwise go in “zypp.conf”. However, " autoAgreeWithLicenses" setting belongs in “zypper.conf” and not in “zypp.conf”.
Thanks. I now see zypper.conf alongside zypp.conf. In zypper.conf there’s indeed this option available already. Will try this one and see.
I have put the autoAgreeWithLicenses = yes inside /etc/transactional-update.conf for now and will see.
This is wrong and get returned in log:
“/etc/transactional-update.conf: line 1: autoAgreeWithLicenses: command not found”
It shouldn’t be any different on MicroOS than it is on Kalpa:
sudo sed -i 's/# autoAgreeWithLicenses = no/autoAgreeWithLicenses = yes/' /etc/zypp/zypper.conf
This doesn’t get set in /etc/transactional-update.conf transactional-update doesn’t know squat about licenses, packages or anything else. It’s just calling zypper for those transactions.