Using Live_USB with reinstall option can fix the dependencies errors, even 
there was a grub2 error. After I reboot system, the grub2 error with 
shim-signed and grub-efi-amd64-signed errors.
I use `sudo apt install grub-pc` to solve the shim-signed error, and I found 
x86_64-efi directory's name changed to i386-pc.
And then I use the following solution to fixed the grub-refi-amd64-signed error:
```
sudo mount /dev/sda5 /mnt # 把root分区挂在/mnt目录,你可以通过ll /mnt查看其内容应该与ll /显示的是一样的内容
sudo mount /dev/sda1 /mnt/boot/efi # 挂在efi分区到引导目录中,挂在这一步你可以对比ll 
/mnt/boot/efi挂在前后的区别

sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

apt-get install grub-efi-amd64
grub-install --recheck --no-floppy --force

echo "configfile (hd0,gpt#)/boot/grub.cfg" > /boot/efi/ubuntu/grub.cfg # 
告诉grub从/boot加载grub.cfg
update-grub # 建立grub菜单列表
exit # 退出chroot模式

### 卸载挂在分区 ###
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/boot/efi
sudo umount /mnt/boot
```
After those two processing, there is no errors about efi.
Maybe there are some bugs in auto-upgrading from 16.04 LTS to 18.04 LTS. So I 
met some errors with `apt` method for upgrading.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768695

Title:
  package shim-signed 1.34.9+13-0ubuntu2 failed to install/upgrade:
  installed shim-signed package post-installation script subprocess
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/1768695/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to