OK, so, after further research and testing, I learned the following: 1: It is not necessary to bind-mount all of /run - just /run/systemd/resolve does the trick. 2: There's no need to add "libreoffice-l10n-$LOCALE" to the packages.conf file - one of the packages already there must depend on it, since my latest solution still ends up with the bug solved even without modifying packages.conf.
I am submitting a patch which solves this bug. The patch should be applied to /etc/calamares/modules/mount.conf. I have tested this and verified that it works on Lubuntu 22.04 Jammy. ** Patch added: "Bind-mounts /run/systemd/resolve from the live environment to the installed system during installation, allowing packages to be installed at OS install time." https://bugs.launchpad.net/ubuntu/+source/calamares-settings-ubuntu/+bug/1970270/+attachment/5592730/+files/libreOfficeLocalizationFix.diff -- You received this bug notification because you are a member of Ubuntu Studio Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1970270 Title: LibreOffice localization is not working out of the box Status in calamares-settings-ubuntu package in Ubuntu: Confirmed Status in calamares-settings-ubuntu source package in Impish: Won't Fix Status in calamares-settings-ubuntu source package in Jammy: Confirmed Status in calamares-settings-ubuntu source package in Kinetic: Confirmed Bug description: Using Lubuntu 22.04 within a virtual machine made using virt-manager, KVM, and QEMU. When Lubuntu 22.04 is installed in a language other than English, the LibreOffice UI displays in English, despite the user's language choice. The issue can be worked around by running "sudo apt update" followed by "sudo apt install libreoffice-l10n-<lang>", where <lang> is replaced with the 2-character language code (for example, de or fr). This will cause LibreOffice to display in the correct language. I have tested using both German and French language options at install time - the problem exists in both scenarios. Reproducibility: 100% Steps to reproduce (edited to be more precise): 1: Open virt-manager. 2: Add a connection to "QEMU User session". 3: Create a new virtual machine under "QEMU User session". I set the OS as "Ubuntu 21.04", since that's the newest version of Ubuntu that my version of virt-manager supports. I gave the VM 20 GB of hard drive space, 4 GB of RAM, and 2 CPU cores. I didn't make any other customizations. 4: Once the VM is running, select "Try or install Lubuntu" in the GRUB prompt. 5: Once Lubuntu is done booting, double-click "Install Lubuntu 22.04". 6: At the first screen of the installation, select a language other than American English. I tried using German and French, and they both reproduced the issue. 7: Use the default keyboard settings for your chosen language. 8: Use the "Erase disk" option when choosing where to install Lubuntu. 9: Set your name as "User", your username as "user", your computer name as "user-germantest", and your password as "z". I also enabled automatic login here. 10: Wait for the installation to finish, then reboot. 11: Open LibreOffice Writer. Expected result: The UI should be displayed in the language selected at install time. Actual result: The UI displays in English, regardless of the language selected at install time. Additional notes: I am using LibreOffice version 7.3.2 within the VM. I am using fully- updated Ubuntu Studio 21.10 as the host OS. Prior to running "sudo apt update", there are no LibreOffice localization packages available in apt (as verified by doing "apt- cache search l10n"). After the update, the packages appear. I have not yet tested Ubuntu 22.04 for this problem, so I do not know if this applies to Ubuntu as a whole, or to Lubuntu alone. I do intend to test this in the near future. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/calamares-settings-ubuntu/+bug/1970270/+subscriptions -- Mailing list: https://launchpad.net/~ubuntustudio-bugs Post to : ubuntustudio-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntustudio-bugs More help : https://help.launchpad.net/ListHelp