128M的VPS重装了Debian 9系统,发现apt-get竟然报错。。。提示 /run/systemd 空间不足。

Failed to reload daemon: Refusing to reload, not enough space available on /run/systemd. Currently, 8.5M are free, but a safety buffer of 16.0M is enforced.
Processing triggers for systemd (232-25+deb9u3) ...
Failed to reload daemon: Refusing to reload, not enough space available on /run/systemd. Currently, 8.5M are free, but a safety buffer of 16.0M is enforced.

查看了一下,发现缓存区的确没有16M,只有12M,/run/systemd 空间不足。

修改 /etc/fstab 文件,添加:

tmpfs    /run    tmpfs    nosuid,noexec,size=18M,nr_inodes=4096    0    0

保存文件,重启系统,再df -h查看:

root@GaseousPesky-VM:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             47M     0   47M   0% /dev
tmpfs            18M  2.5M   16M  14% /run
/dev/vda1       4.8G  1.1G  3.5G  25% /
tmpfs            58M     0   58M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            58M     0   58M   0% /sys/fs/cgroup
tmpfs            12M     0   12M   0% /run/user/0

问题得以解决。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注