Auto yes to the License Agreement on sudo apt-get -y install oracle-java7-installer

try this out: sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get update echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections sudo apt-get -y install oracle-java7-installer running 3rd and 4th command on my debian 7.1 helps, so I think the same can help on ubuntu as well

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead

Adding a key to /etc/apt/trusted.gpg.d is insecure because it adds the key for all repositories. This is exactly why apt-key had to be deprecated. Short version Do similar to what Signal does. If you want to use the key at https://example.com/EXAMPLE.gpg for a repository listed in /etc/apt/sources.list.d/EXAMPLE.list, use: sudo mkdir -p /etc/apt/keyrings/ wget -O- https://example.com/EXAMPLE.gpg … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)