[SOLVED]Leonardo on IDE 1.8.4 in Ubuntu 16

Hello
I have just installed Ubuntu 16.04.3 LTS on an old PC (64 bit)
IDE 1.8.4 is installed but initially I had trouble uploading any sketch to a Uno until I changed the user permissions (never had this problem with Ubuntu 12).
I can upload sketches to the Uno without a problem now, but so far, nothing works with a Leonardo. In IDE tools, the port /dev/ttyACM0(Arduino Leonardo) is there, but uploading fails with error

"avrdude: ser open() can't open device "/dev/ttyACM0": device or resource busy"

This problem exists on both versions of Ubuntu.
Uploading in Win 10 works fine as it always has.
Done quite a bit of searching, plugging and unplugging after compile, pressing RESET during the upload.
Grateful for any ideas please.
Thanks

See topichttps://forum.arduino.cc/index.php?topic=129647.0