由于 LUKS 加密和分区而无法安装应用程序

由于 LUKS 加密和分区而无法安装应用程序

我将 Kali 与另一个操作系统一起安装到我的机器中,我所做的一件事是手动分区以使用此加密整个 Kali 分区指导。现在,每当我尝试更新时,都会收到未满足的依赖项错误,当我尝试修复它或安装第三方应用程序(在本例中为 Mulvad VPN)时,我会收到以下类型的错误。

dpkg: error processing archive /var/cache/apt/archives/g++-10_10.2.1-1_amd64.deb (--unpack):
 cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/10/cc1plus' to '/usr/lib/gcc/x86_64-linux-gnu/10/cc1plus.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

以下是我尝试运行时的完整输出sudo apt --修复损坏的安装

└─# sudo apt --fix-broken install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  cpp-10 g++-10 gcc-10
Suggested packages:
  gcc-10-locales g++-10-multilib gcc-10-doc gcc-10-multilib
The following packages will be upgraded:
  cpp-10 g++-10 gcc-10
3 upgraded, 0 newly installed, 0 to remove and 827 not upgraded.
21 not fully installed or removed.
Need to get 0 B/135 MB of archives.
After this operation, 454 MB disk space will be freed.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 312949 files and directories currently installed.)
Preparing to unpack .../g++-10_10.2.1-1_amd64.deb ...
Unpacking g++-10 (10.2.1-1) over (10.2.0-16) ...
dpkg: error processing archive /var/cache/apt/archives/g++-10_10.2.1-1_amd64.deb (--unpack):
 cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/10/cc1plus' to '/usr/lib/gcc/x86_64-linux-gnu/10/cc1plus.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../gcc-10_10.2.1-1_amd64.deb ...
Unpacking gcc-10 (10.2.1-1) over (10.2.0-16) ...
dpkg: error processing archive /var/cache/apt/archives/gcc-10_10.2.1-1_amd64.deb (--unpack):
 cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/10/lto1' to '/usr/lib/gcc/x86_64-linux-gnu/10/lto1.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../cpp-10_10.2.1-1_amd64.deb ...
Unpacking cpp-10 (10.2.1-1) over (10.2.0-16) ...
dpkg: error processing archive /var/cache/apt/archives/cpp-10_10.2.1-1_amd64.deb (--unpack):
 cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/10/cc1' to '/usr/lib/gcc/x86_64-linux-gnu/10/cc1.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/g++-10_10.2.1-1_amd64.deb
 /var/cache/apt/archives/gcc-10_10.2.1-1_amd64.deb
 /var/cache/apt/archives/cpp-10_10.2.1-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

现在我不知道如何继续。我在想是否应该调整分区大小,但这没有意义,因为我确信有足够的空间。只是不被认可而已。

我注意到的另一件事是,查看 / 中的文件夹属性,某些目录(例如 /root/、/opt/ 和 /usr/)已满并且没有空间。 /root/ 已满对我来说很有意义,因为我对 /root/ 目录进行了分区,但 /opt/ 和 /usr/ 目录对我来说很奇怪,因为我没有对这些目录进行分区。

这是我运行时的输出df

└─# df
Filesystem                  1K-blocks    Used Available Use% Mounted on
udev                          8129460       0   8129460   0% /dev
tmpfs                         1633860    1428   1632432   1% /run
/dev/mapper/CryptoKali-Root   9545920 9478772         0 100% /
tmpfs                         8169292       0   8169292   0% /dev/shm
tmpfs                            5120       0      5120   0% /run/lock
tmpfs                            4096       0      4096   0% /sys/fs/cgroup
/dev/mapper/CryptoKali-var    9545920 1913256   7128040  22% /var
/dev/mapper/CryptoKali-tmp    9545920   36944   9004352   1% /tmp
/dev/mapper/CryptoKali-home  68066648 1042392  63523612   2% /home
/dev/sda5                      945144   94196    785720  11% /boot
tmpfs                         1633856      56   1633800   1% /run/user/1000

我知道还有其他方法可以安装和使用 Kali,例如持久的实时 USB 或虚拟机,但我想要进行双重引导并使其正常工作。

谁能帮我?

答案1

我在想是否应该调整分区大小,但这没有意义,因为我确定有足够的空间。只是不被认可而已。

你的df输出表明/ full,这是你所有apt错误的来源。你应该减少/home和增加/

相关内容