Perhaps from Irish; compare Irish ababú! (a battle-cry), Gaelic ub! ub! (expressing contempt, etc.), ubh ubh! (expressing disgust).