About 5 years ago when I had the case of of about a 3 year old desktop
computer I noticed and had to replace a fan that didn't work anymore, bad
bearings. They make defective bearings and they end up in computer fans. It
working in Windows and not Ubuntu sounds like something else but it could
be on the edge of going bad permanently.