Falcon wrote: ↑Thu May 01, 2025 5:34 pm
Okay, I used the Live-USB GRUB menu to navigate to a boot loader for MX-21, as opposed to Live-USB. I think it was correct because I got the usual login screen. So that much works at least.
I really appreciate the time that you are devoting to helping me solve this issue.
OK, great,
And now the big news, the show stopper you have seen above
Code: Select all
Installing for i386-pc platform.
grub-install: error: cannot copy `/usr/share/locale/sr.gmo' to `/boot/grub/locale/sr.mo': Is a directory.
is a real one. And caused by something completely differently.
Seems to be related to a faulty package "xfce4-weather-plugin", which created all those "/usr/share/locale/*.gmo"
directories as these gmo, stuff rather looks like pacakge build artifatcts and do not belong under /usr/share/locale/,
where you normally only find valid local files like "*.mo".
So in case some other faulty gmo-artifcates are hanging around.
Simplest "workaround" would be to instruct grub-install to not install any translation files.
This way:
When booted into the installed system with help of
->MX LiveUSB->LiveBootMenu->Switch to GRUB->Search fot "GRUB cfg":
* Do open within the installed system terminal as normal user.
* Do check the device names (check this always before running grub-install)
with help of lsblk -f, so you are sure /dev/sda is you install drive.
Now run this:
Code: Select all
sudo grub-install --locale-directory=/tmp /dev/sda
where we use a "trick" to tell grub-install to search for locales with a /tmp directory, where it would not find any.
Effectively tells "grub-install" to not install any locale translations, which you don't need as the default is in English anyway.
The command should complete without any error.
Now to be sure, also do re-generated fresh the grub menu with:
Note ; The above command could also have been run from the "Chroot Rescue" visited system, in case
you would not have any grub menu already with the system, and "Chroot Rescue " would be the only way
to fix grub.
You may consider to purge/remove the faulty package xfce4-weather-plugin
which caused the show-stopper gmo-locale dirs, by running this:
Code: Select all
sudo apt purge xfce4-weather-plugin
afterwards, you would probably not need the no-locale trick "--locale-directory=/tmp" to get grub-install run successfully.
Good Luck.
+++EDIT+++
Just checked again, the show stopper which caused grub-install to fail seems only xfce4-weather-plugin on MX-21
Code: Select all
apt policy xfce4-weather-plugin
xfce4-weather-plugin:
Installed: 0.11.3-0.1~mx21+1
Candidate: 0.11.3-0.1~mx21+1
xfce4-weather-plugin (0.11.3-0.1~mx21+1) mx; urgency=medium
maybe our MX maintainer:
Code: Select all
xfce4-weather-plugin (0.11.3-0.1~mx21+1) mx; urgency=medium
* New upstream version 0.11.3.
-- Steven Pusser <stevep@mxlinux.org> Wed, 05 Feb 2025 11:31:02 -0800
would consider to rebuild, in order to avoid those build artifacts directories:
Code: Select all
/usr/share/locale/ar.gmo
/usr/share/locale/ast.gmo
/usr/share/locale/be.gmo
/usr/share/locale/bg.gmo
/usr/share/locale/ca.gmo
/usr/share/locale/cs.gmo
/usr/share/locale/da.gmo
/usr/share/locale/de.gmo
/usr/share/locale/el.gmo
/usr/share/locale/en_AU.gmo
/usr/share/locale/en_GB.gmo
/usr/share/locale/es.gmo
/usr/share/locale/et.gmo
/usr/share/locale/eu.gmo
/usr/share/locale/fi.gmo
/usr/share/locale/fr.gmo
/usr/share/locale/gl.gmo
/usr/share/locale/he.gmo
/usr/share/locale/hr.gmo
/usr/share/locale/hu.gmo
/usr/share/locale/hye.gmo
/usr/share/locale/id.gmo
/usr/share/locale/is.gmo
/usr/share/locale/it.gmo
/usr/share/locale/ja.gmo
/usr/share/locale/ko.gmo
/usr/share/locale/lt.gmo
/usr/share/locale/lv.gmo
/usr/share/locale/ms.gmo
/usr/share/locale/nb.gmo
/usr/share/locale/nl.gmo
/usr/share/locale/nn.gmo
/usr/share/locale/oc.gmo
/usr/share/locale/pa.gmo
/usr/share/locale/pl.gmo
/usr/share/locale/pt.gmo
/usr/share/locale/pt_BR.gmo
/usr/share/locale/ru.gmo
/usr/share/locale/sk.gmo
/usr/share/locale/sl.gmo
/usr/share/locale/sq.gmo
/usr/share/locale/sr.gmo
/usr/share/locale/sv.gmo
/usr/share/locale/te.gmo
/usr/share/locale/th.gmo
/usr/share/locale/tr.gmo
/usr/share/locale/ug.gmo
/usr/share/locale/uk.gmo
/usr/share/locale/ur.gmo
/usr/share/locale/ur_PK.gmo
/usr/share/locale/zh_CN.gmo
/usr/share/locale/zh_TW.gmo
@Stevo