What is the meaning of Ugh?

Used to express repugnance, disgust, or annoyance.

Used to express inarticulate vocalisations, such as used by a caveman.

oh!

egg

Source: wiktionary.org