Brother printer hl-l2320d off & on printing

It would seem it might be a printer or cable problem if it is happening with two different OS's (although both are Ubuntu based). Have you tried a different printer cable? Can you state why exactly it is not printing? Is the item getting to the printer or in the queue or spooling endlessly or does the printer not even recognize you sent a to print? Does what you are printing make a difference? Does color or grayscale make a difference? Is the power staying on or flickering, have you checked the printer's electrical outlet? Anything you can include would be helpful.