At least with the Finnish keyboard layout, the @-sign does not work out of the box in Ubuntu on my old MacBook A1181, even with the Macintosh keyboard variant selected.
This can be fixed by going to:
System Settings -> Keyboard -> Shortcuts -> Typing
And changing the Alternative Character Key to Right Win.