linux - 错误 : grub-efi-amd64-signed & shim-signed

标签 linux

p我需要解决以下问题

我没有 linux 经验,所以请给我简单的解释和输入命令行并修复问题的代码,谢谢!

我检查了其他线程,发现了类似但不相同的问题。

问题

manolis@manolis-300-0xx:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  netplan.io
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up grub-efi-amd64-signed (1.93.8+2.02-2ubuntu8.7) ...
Installing for x86_64-efi platform.
Could not prepare Boot variable: No space left on device
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for shim-signed:
 shim-signed depends on grub-efi-amd64-signed; however:
  Package grub-efi-amd64-signed is not configured yet.

dpkg: error processing package shim-signed (--configure):
 dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
 grub-efi-amd64-signed
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

背景信息

NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

manolis@manolis-300-0xx:~$ echo ${BASH_VERSION%%[^0-9.]*}
4.4.19

manolis@manolis-300-0xx:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1,9G     0  1,9G   0% /dev
tmpfs           387M  2,0M  385M   1% /run
/dev/sda2       916G  207G  663G  24% /
tmpfs           1,9G   61M  1,9G   4% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/loop0      3,8M  3,8M     0 100% /snap/gnome-system-monitor/51
/dev/loop2       88M   88M     0 100% /snap/core/5742
/dev/loop1       15M   15M     0 100% /snap/gnome-logs/45
/dev/loop4      141M  141M     0 100% /snap/gnome-3-26-1604/70
/dev/loop6       13M   13M     0 100% /snap/gnome-characters/117
/dev/loop7       13M   13M     0 100% /snap/gnome-characters/124
/dev/loop9      140M  140M     0 100% /snap/gnome-3-26-1604/64
/dev/loop10      35M   35M     0 100% /snap/gtk-common-themes/319
/dev/loop8      2,3M  2,3M     0 100% /snap/gnome-calculator/238
/dev/loop5      128K  128K     0 100% /snap/tree/15
/dev/loop11     3,8M  3,8M     0 100% /snap/gnome-system-monitor/54
/dev/loop12      13M   13M     0 100% /snap/gnome-characters/139
/dev/loop13      88M   88M     0 100% /snap/core/5662
/dev/loop3      2,3M  2,3M     0 100% /snap/gnome-calculator/260
/dev/loop14      43M   43M     0 100% /snap/gtk-common-themes/701
/dev/loop15      15M   15M     0 100% /snap/gnome-logs/43
/dev/loop16      15M   15M     0 100% /snap/gnome-logs/40
/dev/loop17     141M  141M     0 100% /snap/gnome-3-26-1604/74
/dev/loop18      88M   88M     0 100% /snap/core/5548
/dev/loop19     2,3M  2,3M     0 100% /snap/gnome-calculator/222
/dev/loop20     3,8M  3,8M     0 100% /snap/gnome-system-monitor/57
/dev/sda1       511M  6,1M  505M   2% /boot/efi
tmpfs           387M   40K  387M   1% /run/user/1000
/dev/sdb1       1,9T  108G  1,8T   6% /media/manolis/Maxtor
tmpfs           387M   16K  387M   1% /run/user/120

manolis@manolis-300-0xx:~$ sudo apt install udo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  udo
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 205 kB of archives.
After this operation, 598 kB of additional disk space will be used.
Get:1 http://it.archive.ubuntu.com/ubuntu bionic/universe amd64 udo amd64 6.4.1-4 [205 kB]
Fetched 205 kB in 0s (1.520 kB/s)
Selecting previously unselected package udo.
(Reading database ... 168775 files and directories currently installed.)
Preparing to unpack .../archives/udo_6.4.1-4_amd64.deb ...
Unpacking udo (6.4.1-4) ...
Setting up udo (6.4.1-4) ...
Setting up grub-efi-amd64-signed (1.93.8+2.02-2ubuntu8.7) ...
Installing for x86_64-efi platform.
Could not prepare Boot variable: No space left on device
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
dpkg: dependency problems prevent processing triggers for shim-signed:
 shim-signed depends on grub-efi-amd64-signed; however:
  Package grub-efi-amd64-signed is not configured yet.

dpkg: error processing package shim-signed (--configure):
 dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
 grub-efi-amd64-signed
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

为什么我有所有这些“/dev/loop”??? 如何清理和增加空间:“无法准备启动变量:设备上没有剩余空间”

这样做是正确的还是危险的:

rm -r/dev/loop*

祝一切顺利!

最佳答案

以下在 Ubuntu 18.04LTS 上对我来说效果很好

在以下命令上:使用 sudo 或以 root 身份运行

sudo apt-get purge grub\*
sudo apt-get install grub-efi
sudo apt-get autoremove
sudo update-grub

-或-

sudo su

输入密码然后运行

apt-get purge grub\*
apt-get install grub-efi
apt-get autoremove
update-grub

关于linux - 错误 : grub-efi-amd64-signed & shim-signed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53203528/

相关文章:

linux - 在 Linux 上唤醒 cpu 调用哪个函数

linux - 该内核需要 x86-64 CPU,但仅检测到 i686 CPU

linux - 获取可提供给AWS安全性的网站IP地址

linux - 在 dirname 和 basename 上获取 "Permission denied"

linux - 如果每个结果使用多个命令,则无法获得 bash

c++ - 如何从使用::dlopen 打开的库中获取 linux 中动态加载的库的名称?

python - ssh 使用 Python 限制命令

javascript - npm 无法构建 socket.io,错误为 "Not compatible with your version of node/npm: commander@0.5.0"

c - 逐 block 反转文件内容

c++ - 加密和解密未显示正确的值