我最近尝试通过 安装 Boost CPP 库sudo apt-get install libboost-all-dev
。它要求删除几个包,所以我错误地对该提示说了“是”。直到后来我才意识到几个重要的包都不见了,包括几个 ubuntu 库。当我尝试重新启动计算机时,它进入紧急模式并返回输出
[ TIME ] Timed out waiting for device /dev/disk/by-uuid/56D3-ED3F.
[DEPEND] Dependency failed for
File System Check on /dev/disk/by-uuid/56D3-ED3F.
[DEPEND] Dependency failed for /boot/efi.
[DEPEND] Dependency failed for Local File Systems.
emergency.service
finalrd.service
console-setup.service
systemd-tmpfiles-setup.service systemd-update-utmp.service
systemd-resolved.service
[FATLED] Failed to start Load AppArmor profiles.
You are in emergency mode. After logging in, type “journalctl -xb” to view system logs, “systemctl reboot”, “systemctl default” or “exit” to boot into default mode.
Press Enter for maintenance
(or press Control-D to continue):
然后我用我的密码登录。cat /etc/fstab
返回
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust waay to name devices
# that works even if disks are added and removed. See fstab(5).
#
# ‹file system> <mount point> <type> ‹options> <dump> <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=c8143cd9-5cfc-4eae-a634-51881a2e62a0 / ext4 errors=remount-ro 0
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=56D3-ED3F /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
blkid
返回
/dev/nvme0n1p1: UUID="56D3-ED3F" BLOCKSIZE="S12" TYPE="vfat" PARTLABEL"EFI System Partition" PARTUUID="2bafb09c-7bo3-47b9-b13a-b17736215c71"
/dev/nvme0n1p2: UUID="c8143cd9-5cfc-4eae-a634-51881a2e62a0" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="f18e5ddb-cec1-4c1e-8fa5-f57ffc64c63a"
[some other device mounts]
systemctl --failed
返回
UNIT LOAD ACTIVE SUB DESCRIPTION
* apparmor.service loaded failed failed Load AppArmor profiles
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
因此,似乎卸载这些库后我无法正常重启,因为 AppArmor 搞砸了(并且可能其他东西也损坏了)。我无法卸载 libboost 包并重新安装已删除的包,因为似乎此启动终端中没有 WiFi 连接。
有人能帮我吗?即使是“App Armor 无法加载配置文件”也几乎没有任何在线文档。我在 Lambda Tensorbook 上运行 Ubuntu 20.04.5 LTS。请告诉我我需要提供哪些其他信息。