我正在尝试从 Arch 用户存储库(AUR)安装 android-studio。我遇到错误,设备上没有剩余空间
Arch 用户存储库 (AUR) 的输出 - 详细信息
Dload Upload Total Spent Left Speed
100 737M 100 737M 0 0 4497k 0 0:02:48 0:02:48 --:--:-- 4908k
-> Found android-studio.desktop
==> Validating source files with sha256sums...
android-studio-ide-171.4443003-linux.zip ... Passed
android-studio.desktop ... Passed
==> Extracting sources...
-> Extracting android-studio-ide-171.4443003-linux.zip with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "android-studio"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
cat: write error: No space left on device
bsdtar: Write error
==> ERROR: Failed to create package file.
使用终端
➜ ~ df -h
Filesystem Size Used Avail Use% Mounted on
dev 3.8G 0 3.8G 0% /dev
run 3.8G 1.3M 3.8G 1% /run
/dev/mapper/AntergosVG-AntergosRoot 102G 91G 6.5G 94% /
tmpfs 3.8G 62M 3.7G 2% /dev/shm
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/sda1 243M 109M 118M 48% /boot
tmpfs 3.8G 3.8G 0 100% /tmp
tmpfs 769M 20K 769M 1% /run/user/1000
现在我清理了 /tmp 上的一些空间
➜ ~ df -h
Filesystem Size Used Avail Use% Mounted on
dev 3.8G 0 3.8G 0% /dev
run 3.8G 1.3M 3.8G 1% /run
/dev/mapper/AntergosVG-AntergosRoot 102G 91G 6.5G 94% /
tmpfs 3.8G 63M 3.7G 2% /dev/shm
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/sda1 243M 109M 118M 48% /boot
tmpfs 3.8G 8.0K 3.8G 1% /tmp
tmpfs 769M 20K 769M 1% /run/user/1000
然后我尝试重新安装 android-studio 但仍然有同样的错误。我不知道为什么下载 737MB 的文件后,该建筑需要 3.8GB。如何将 /tmp 目录的大小增加到 4.5GB?
答案1
重新挂载/tmp:
# mount -o remount,size=4500M /tmp