Linux desktops generally are not plagued by spyware and the like. I associate pop-ups with browsers rather than operating systems. Assuming you use Firefox, you can configure it to block pop-ups. In fact, you can configure it to block most but to allow specific pop-ups so that you can use certain websites that make use of pop-ups.
This was first published in October 2005