Just install av tools:
sudo apt-get install libav-tools
and convert the your file/s:
avcon -i inputApeFile.ape outputFlacFile.flac
That's one easy of many ways to convert APE files in Ubuntu.
md5sum myFileToCheck
sha1sum myFileToCheckBoth commands compute the corresponding checksum of your file, so you can compare than with the original checksums.