Ubuntu mega upload issue

Had a similar issue last year and was able to resolve it. This time not so much. I searched this community and did some of the older reply suggestions. I really love the XOD IDE.
I have the Mega attached to a robotic arm which works as it was programmed to do about a year ago. I had a Niece that wanted to see how it worked and do something different. I can not upload to the Mega, I can upload to the Uno and the Nano but not the Mega2560.
mega defaults to /Dev/ttys9.
The Uno defaults to /Dev/ttyACM0(Arduino(www.arduino.cc))

This is the message

     User configuration file does not exist or is not a regular file, skipping


     Using Port                    : /dev/ttyS9
     Using Programmer              : wiring
     Overriding Baud Rate          : 115200

avrdude: ser_open(): can’t set attributes for device “/dev/ttyS9”: Inappropriate ioctl for device
ioctl(“TIOCMGET”): Bad file descriptor

ioctl(“TIOCMGET”): Bad file descriptor

avrdude: ser_drain(): select(): Bad file descriptor
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): select(): Bad file descriptor
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): select(): Bad file descriptor
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): select(): Bad file descriptor
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): select(): Bad file descriptor
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): select(): Bad file descriptor
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): select(): Bad file descriptor
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

Error: exit status 1
Error during upload.
Upload failed
Command Process exited with code 1
Make sure the board is connected, the cable is working, the board model set correctly, the upload port belongs to the board, the board drivers are installed, the upload options (if any) match your board specs.

I think I got it figured out, I have 3 Mega 2560 controllers only 1 will communicate.I even tried on a windows computer and the same result. These are fairly old controllers I will have to trouble shoot the boards or get new ones. Thought I would pass it on.
thanks