Finely chop onions and cook in oil until lightly browned. Add garlic and lemon juice; stir well. Add tomato sauce, sugar, salt, and pepper. Simmer for 15 to 20 minutes.
Meanwhile, grate cheese and cook/drain pasta.
Stir grated cheese into sauce mixture. Add pasta and mix well.