To answer your question:
You can format a drive in Ubuntu with the HFS+ format by using either gparted
or by installing the hfsprogs
package - use sudo apt-get install hfsprogs
to install the program.
As for the additional details in your post, it is concerning that you have determined through Google that your drive has failed. To properly determine if your drive has failed, you need get the SMART diagnostic info from the drive itself. If it responds back with anything but "Verified" then your drive has a problem.
It is also important to note that "formatting" a drive will not repair it. You will just make those bad sectors availble for writing again which can and will lead to data loss.
Under OS X, you can get it by issuing the command:
diskutil info diskx | grep SMART
(Substitute x with your disk number; most likely 0)
However, that may not be enough. There is a free utility I have used to verify my drives, it's called DriveDX and it's reporting capability is completely free.
Before formatting your drive, I highly suggest you take a look into these areas first.