I Can not access oracle jdk via command line or terminal in linux mint how can I use sudo apt-get install then? [on hold]

I am in one of countries which oracle has a restriction on. whenever I want to install or update a programe in linux (I have linux mint) I face the error that say “cannot download jdk”. I didn’t know system needs to update jdk for download and install pycharm and texlive, but it does. and while it should be done through terminal (sudo apt-get install) I cannot set browser vpn to access oracle website. I would really appreciate it if any one who knows the answer or had the same problem and overcame it, says any suggestion.