![恶性循环:无 DPKG 且设备上没有剩余空间](https://linux22.com/image/1166687/%E6%81%B6%E6%80%A7%E5%BE%AA%E7%8E%AF%EF%BC%9A%E6%97%A0%20DPKG%20%E4%B8%94%E8%AE%BE%E5%A4%87%E4%B8%8A%E6%B2%A1%E6%9C%89%E5%89%A9%E4%BD%99%E7%A9%BA%E9%97%B4.png)
GCP 上的 Ubuntu 18.04.02 LTS
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/root 3870720 158973 3711747 5% /
devtmpfs 1923380 387 1922993 1% /dev
tmpfs 1924177 1 1924176 1% /dev/shm
tmpfs 1924177 554 1923623 1% /run
tmpfs 1924177 8 1924169 1% /run/lock
tmpfs 1924177 18 1924159 1% /sys/fs/cgroup
/dev/loop0 12823 12823 0 100% /snap/core/7270
/dev/loop1 23213 23213 0 100% /snap/google-cloud-sdk/86
/dev/loop2 12820 12820 0 100% /snap/core/6964
/dev/sda15 0 0 0 - /boot/efi
/dev/loop3 23074 23074 0 100% /snap/google-cloud-sdk/88
tmpfs 1924177 10 1924167 1% /run/user/1001
尝试对启动分区进行任何操作,例如
ls -l
>>>...
>>>cannot copy extracted data for './usr/lib/file/magic.mgc' to '/usr/lib/file/magic.mgc.
dpkg-new': failed to write (No space left on device)
分区损坏
sudo apt-get remove linux-headers-4.15.0-1036-gcp
>>>E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct th
e problem.
尝试时也一样
sudo apt remove p7zip-full
没有空间来修复损坏的分区!
sudo dpkg --configure
>>>dpkg: error: failed to write status database record about 'libstdc++6:amd64' to '/var/l
ib/dpkg/status': No space left on device$