I think the problem is in ibus-preferences, which had "English (US)" selected as its keyboard. On the "Advanced" tab, I checked "Use system keyboard layout" (was unchecked beforehand). That alteration has survived 2 reboots, with the keyboard setting now correctly reflecting the physical keyboard layout.
It would seem to be a mistake to have ibus-preferences duplicating (and overriding) the system keyboard setup, especially when it is hidden under "references", and not so easily found as the System / Keyboard settings. I also note that the Ibus-Preferences keyboard list appears to lack any reference to plain vanilla "English (UK)". Something critical changed here between 18.04 LTS and 20.04 LTS. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1898338 Title: keyboard layout unstable after LTS upgrade to 20.04 Status in linux package in Ubuntu: Confirmed Bug description: After the upgrade the keyboard, set as 'English (UK)' appeared to be using a US layout, with double-quote(") and 'at' sign(@) transposed, and key left of 'z' giving "<"/">" instead of "\"/"|" - and pound sign (GBP: £) not (yet) found. Corrected by adding Estonian layout, then selecting English (UK) (now correct in Preview), then deleting Estonian layout. The layout reverted after some sudo operations, and was corrected in the same manner. After bootup today, the keyboard was again showing the same problems. The same fix was again effective (though I don't suppose Estonian has anything much to do with it!). This behaviour is dangerous in the shell, when a pipe sign is replaced by a redirection sign. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu27.9 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: mbm 1431 F.... pulseaudio CasperMD5CheckResult: skip CurrentDesktop: X-Cinnamon DistroRelease: Ubuntu 20.04 InstallationDate: Installed on 2017-03-09 (1303 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) MachineType: Dell Inc. Inspiron 5767 Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-48-generic root=UUID=beba05d5-5ee1-4288-a1c2-c425658b569f ro quiet splash pcie_aspm=off vt.handoff=7 ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60 RelatedPackageVersions: linux-restricted-modules-5.4.0-48-generic N/A linux-backports-modules-5.4.0-48-generic N/A linux-firmware 1.187.3 Tags: focal Uname: Linux 5.4.0-48-generic x86_64 UpgradeStatus: Upgraded to focal on 2020-09-30 (2 days ago) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 11/30/2016 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.0.9 dmi.board.name: 0PH0G6 dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.0.9:bd11/30/2016:svnDellInc.:pnInspiron5767:pvr:rvnDellInc.:rn0PH0G6:rvrA00:cvnDellInc.:ct10:cvr: dmi.product.family: Inspiron dmi.product.name: Inspiron 5767 dmi.product.sku: 077E dmi.sys.vendor: Dell Inc. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1898338/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp