pI需要修复以下问题
- 我没有在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”???我如何清理和增加空间:“无法准备 Boot 变量:设备”“上没有剩余空间
是正确的做,还是危险的:
rm -r /设备/循环 *
祝你一切顺利!
8条答案
按热度按时间zlhcx6iw1#
以下内容在Ubuntu 18.04LTS上运行良好
r6vfmomb2#
在我的例子中,Ubuntu 18.04安装在裸机服务器上,我必须执行以下命令:
这就产生了这样的变化:
在此之后,错误消失。
lzfw57am3#
我没有足够的代表来添加评论,但是“AAA SSS”的答案对我很有效。我在AskUbuntu论坛上找到了同样的答案。我把这个贴到谷歌搜索中。
我的情况出现在两个全新安装到18.04和从16.04升级到18.04,同样的错误由apt打印和引导失败。“dpkg -l”报告这些错误。
6psbrbz94#
以上尝试对我不起作用。
我也遇到了类似的错误,不知道我身上发生了什么,但我的/etc/default/grub文件在最近的一次更新中多添加了一行:
“/etc/默认值/grub”34升,1279摄氏度
在该文件的底部,我注解了它,事情再次为我工作!
g52tjvyc5#
这两条命令对我很有效。
ftf50wuq6#
将此命令作为一个命令运行,并在出现提示时回答y(是):
这是一个基于AAA SSS给出的答案的更快的方法。这对我很有效。
sqougxex7#
我有个问题
我发现这是因为可以解决安装
mokutil
的bugie3xauqp8#
看起来您在安装操作系统时禁用了
secure boot
,但现在它已启用。确保在BIOS中仍禁用
secure boot
选项。