Problem while doing zypper up

Today, I did update on all my systems and the only one with a nVidia card is mine. During the update everything seemed to be going as usual until very near the ens I got a purple warning message:

update-bootloader: 2022-02-20 15:09:50 <3> update-bootloader-2374 run_command.294: '/usr/lib/bootloader/grub2-efi/config' failed with exit code 127, output: 
<<<<<<<<<<<<<<<< 
+ /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg 
/etc/default/grub: command substitution: line 31: unexpected EOF while looking for matching `'' 
/etc/default/grub: line 31: variable: command not found 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
Updating bootloader failed 
warning: %posttrans(nvidia-gfxG05-kmp-default-470.103.01_k5.3.18_57-lp153.50.1.x86_64.rpm) scriptlet failed, exit status 1 
update-bootloader: 2022-02-20 15:09:51 &lt;3&gt; update-bootloader-6593 run_command.294: '/usr/lib/bootloader/grub2-efi/install' failed with exit code 127, output: 
&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; 
target = x86_64-efi 
+ /usr/sbin/shim-install --config-file=/boot/grub2/grub.cfg 
/etc/default/grub: command substitution: line 31: unexpected EOF while looking for matching `'' 
/etc/default/grub: command substitution: line 45: syntax error: unexpected end of file 
/etc/default/grub: line 31: variable: command not found 
>>>>>>>>>>>>>>>> 
update-bootloader: 2022-02-20 15:09:51 <3> update-bootloader-6593 run_command.294: '/usr/lib/bootloader/grub2-efi/config' failed with exit code 127, output: 
<<<<<<<<<<<<<<<< 
+ /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg 
/etc/default/grub: command substitution: line 31: unexpected EOF while looking for matching `'' 
/etc/default/grub: line 31: variable: command not found 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
Executing %posttrans scripts ..........................................................................................................................................................................................[done] 
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.

What should I do to correct this before I reboot?

Bart

Check your grub.cfg file for an extra (‘’) that is causing the grub-mkconfig command to end unexpectedly.
There is likely a double or maybe even a missing symbol in the file.

Just remove it and re-run grub2-mkconfig.

Looks to me like the spurious or absent character is in /etc/default/grub rather than /boot/grub2/grub.cfg. I’d hate to be the one to try and find one in the latter.

Had you edited /etc/default/grub yourself?

Show your full /etc/default/grub.

SOLVED!

I found the problem. I had modified the file using kate. While in the process, I thought I had left the kate window to do something, don’t remember what, and apparently entered some keystrokes into the window I was looking at, not the active one, which was kate!

I guess I need to make the inactive windows more transparent.

Bart

That probably happens to everyone in some shape or form, some time or other. :slight_smile: