Failure to open port, failure to jump start errors

Hi, I am running Arduino IDE 1.8.12 under Ubuntu 16.04 Linux on a virtual machine of my Mac. Quite

often, I get errors like: Failure to open port, failure to jump start

So far, it seems that if I quite the application and restart again, the problem is solved. Anybody knows how

to fix this without having to quit and restart all the time?

Does it has to do with the modemmamager?

I tried: sudo apt-get purge modemmanager

but I got the unable to locate package modemmanager error.