There is a known bug in GTK used by Ubuntu Intrepid's 8.10 desktop environment Gnome that causes trouble when printing from a GTK application, such as evince or gedit. The applications do not print and an error occurs: Too many failed attempts. OpenOffice against it, and even the test page tool in cups administration won't show that behavior.
Check your error log:
tail -f /var/log/cups/error_log
E [26/Jan/2009:10:45:13 +0100] Print-Job: Unauthorized
The message "Print-Job: Unauthorized" indicates the problem. Here is how to fix it:
1. Stop the cups daemon to prevent cups from reseting your modifications
sudo /etc/init.d/cups stop
2. Edit your cups configuration with the editor of your choice and comment out these lines
sudo vi /etc/cups/printers.conf
To prevent cups to place thoose lines again in your config file you may want to make it immutable with
sudo chattr +i /etc/cups/printers.conf
3. Start cups again
sudo /etc/init.d/cups start
4. Try to print with gedit - it should work now.
Did it work for you? Drop a comment...