F
F
fdkur342018-10-30 17:21:43
linux
fdkur34, 2018-10-30 17:21:43

How to automatically accept a license in Opera?

I know that there is a command to automatically accept a license in VirtualBox

echo virtualbox-ext-pack virtualbox-ext-pack/license select true | debconf-set-selections

is there something similar in Opera? so that you can enter the answer YES automatically.
so that there are no such messages
5bd8687d59e7a684502879.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qlkvg, 2018-10-31
@fdkur34

You have misunderstood what the opera wants from you. This dialog has nothing to do with the license - it's a suggestion to add the opera repositories to your package manager. The logical question is why the team

echo "deb https://deb.opera.com/opera-stable/ stable non-free" | tee -a /etc/apt/sources.list.d/opera-stable.list

does not add a repository? If you download the opera-stable package and unzip it, you will see the config file in the DEBIAN folder. It has a line
if grep -q '^\s*deb\s*http://deb.opera.com/' /etc/apt/sources.list && ! test -f /etc/apt/sources.list.d/opera.list

Which checks if you accidentally added an opera repository. If not added, then the same dialog pops up. The problem is that you are running a command that adds the opera-stable.list file while the check is looking for either the opera.list file or an entry in the system-wide sources.list.
Where did you get your command from? According to the link you left, the commands are different
sudo add-apt-repository 'deb https://deb.opera.com/opera-stable/ stable non-free'
wget -qO- https://deb.opera.com/archive.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install opera-stable

They add an entry to sources.list and it seems like the check should fail without a dialog being displayed. But the most interesting is yet to come. These crooked monkeys check the repository like this regular expression '^\s*deb\s*http://deb.opera.com/'
A in the instructions says to add http s ://deb.opera.com/' . And the check naturally breaks off.
What can be done? Write a script that will download the package before installation, unpack it, remove the config file from there, pack it back and install it through dpkg.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question