It is used as "ugly, unpleasant to see, offending morals". It surely comes from the Norse agg ("hate, rejection"), -like ("mode, as such"), which later evolved into the suffix -ly (to create adjectives).
* Only one "like" per meaning and day, the more "likes" the meaning will appear higher in the list