So I tried resolving this issue for 2 days and tried every solution found on the internet but nothing works. So I installed debian10 and I use a bridge adapter. I will post the