Public bug reported: update-grub cannot run on a live session. When a user installs a package in a live session, installation is successful but it ends with the following message:
[...] Refreshing boot menu INFO Updating GRUB menu ERROR "update-grub" returned an error: exit status 1 We should detect the type of session and not run update-grub if it is a live session. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: zsys (not installed) ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24 Uname: Linux 5.4.0-18-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.20.11-0ubuntu21 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Thu Apr 2 11:15:07 2020 InstallationDate: Installed on 2014-07-15 (2088 days ago) InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520) SourcePackage: zsys UpgradeStatus: Upgraded to focal on 2018-03-24 (739 days ago) ** Affects: zsys (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1870304 Title: Do not run update-grub in live session To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zsys/+bug/1870304/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs