So I had initially set my keyboard to Switzerland (French- Macintosh) which worked almost on point (some commands did not correspond), but a few days ago, I woke up to a keyboard layout that was completely different (I think the one classically used in Windows OS, Shift+1=!
Shift+2=@
etc.), despite the same layout being selected and used.
Any ideas on how to fix this? I've the latest version of Ubuntu (running on VirtualBox).
Ok so by running
sudo dpkg-reconfigure keyboard-configuration
(which I had tried before), I needed to select the French-Switzerland default package, as the Macintosh one does not work ('cannot find "fr_mac" in "macintosh_vndr/ch".'). Better than before at least.