在 RHEL 9 上 brew install 失败,提示“设备上没有剩余空间”,我该如何修复?

在 RHEL 9 上 brew install 失败,提示“设备上没有剩余空间”,我该如何修复?

我不太熟悉如何解决此类问题,有人知道需要做什么才能解决这个问题吗?

[randomusr@jumphost ~]$ brew install hello
==> Downloading https://ghcr.io/v2/homebrew/core/hello/manifests/2.12.1
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/1ea4c3c37828c1113de2100e5188b954c72e9c25fcbc67c76cc55cfeec2d4ab6--hello-2.12.1.bottle_manifest.json
==> Fetching dependencies for hello: xz, binutils and gcc
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.6.0
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/dae61a60095680979c8a199f93b6d78d4cc0891501b87f0855e924cfd9831dbd--xz-5.6.0.bottle_manifest.json
==> Fetching xz
==> Downloading https://ghcr.io/v2/homebrew/core/xz/blobs/sha256:5828e7adadf0ed4d0cc68c487b6f132355e3e81561500c64fb62a0eb68b5cba3
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/5963177a5744041ad05d9cec10a0d6c65dc586087141ed4684e8e60e16d75835--xz--5.6.0.x86_64_linux.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/manifests/2.41_1
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/5719c1ab7c1a761142ecbf7e99d196b1a5e6c1cae43737424dae6237609d4b86--binutils-2.41_1.bottle_manifest.json
==> Fetching binutils
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/blobs/sha256:ff5d14a01dbfc4e423713561d02e704b90577eb32feb7ee276b1a4065eb05a47
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/a391417ee34628d4c46248b066ebef5802b87998f610b247dc7e98af7842fee1--binutils--2.41_1.x86_64_linux.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/manifests/13.2.0-2
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/1d624841f5f550e4bbc04910c0cfb20b89d0fc7f90ab213cead29d1518479e2b--gcc-13.2.0-2.bottle_manifest.json
==> Fetching gcc
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:28257893721f3b163e4364b0ae437dcfdf5e3fd22b8d6d703fa8e02821d0dcd2
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/b9f7349e3560b18d9a07e1f287e743c352211c1bdedceb97c283208c9e5ceb98--gcc--13.2.0.x86_64_linux.bottle.2.tar.gz
==> Installing hello dependency: gcc
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/manifests/13.2.0-2
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/1d624841f5f550e4bbc04910c0cfb20b89d0fc7f90ab213cead29d1518479e2b--gcc-13.2.0-2.bottle_manifest.json
==> Installing dependencies for gcc: binutils
==> Installing gcc dependency: binutils
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/manifests/2.41_1
Already downloaded: /home/randomusr/.cache/Homebrew/downloads/5719c1ab7c1a761142ecbf7e99d196b1a5e6c1cae43737424dae6237609d4b86--binutils-2.41_1.bottle_manifest.json
==> Pouring binutils--2.41_1.x86_64_linux.bottle.tar.gz
cp: error writing '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/ld.gold': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/nm': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/objcopy': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/objdump': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/ranlib': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/readelf': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/size': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/srconv': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/strings': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/strip': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/sysdump': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/windmc': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/windres': No space left on device
cp: cannot create directory '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/etc': No space left on device
Error: Failure while executing; `/usr/bin/env cp -pR /var/tmp/homebrew-unpack20240305-117418-bx866h/binutils/. /home/linuxbrew/.linuxbrew/Cellar/binutils` exited with 1. Here's the output:
cp: error writing '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/ld.gold': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/nm': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/objcopy': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/objdump': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/ranlib': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/readelf': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/size': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/srconv': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/strings': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/strip': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/sysdump': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/windmc': No space left on device
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/bin/windres': No space left on device
cp: cannot create directory '/home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1/etc': No space left on device
[randomusr@jumphost /]$ df -h
Filesystem                 Size  Used Avail Use% Mounted on
devtmpfs                   4.0M     0  4.0M   0% /dev
tmpfs                      3.8G     0  3.8G   0% /dev/shm
tmpfs                      1.5G  1.6M  1.5G   1% /run
/dev/mapper/rootvg-rootlv  2.0G  583M  1.5G  29% /
/dev/mapper/rootvg-usrlv    10G  2.5G  7.6G  25% /usr
/dev/mapper/rootvg-tmplv   2.0G   47M  2.0G   3% /tmp
/dev/mapper/rootvg-homelv 1014M  630M  385M  63% /home
/dev/mapper/rootvg-varlv   8.0G  932M  7.1G  12% /var
/dev/sda2                  496M  302M  194M  61% /boot
/dev/sda1                  200M  7.0M  193M   4% /boot/efi
/dev/loop0                  41M   41M     0 100% /var/lib/snapd/snap/snapd/20671
/dev/loop1                  75M   75M     0 100% /var/lib/snapd/snap/core22/1122
/dev/loop2                  20M   20M     0 100% /var/lib/snapd/snap/kubelogin/34
/dev/loop3                  18M   18M     0 100% /var/lib/snapd/snap/helm/397
tmpfs                      768M  4.0K  768M   1% /run/user/1001
[randomusr@jumphost /]$ df -i
Filesystem                 Inodes IUsed   IFree IUse% Mounted on
devtmpfs                   976951   437  976514    1% /dev
tmpfs                      982173     1  982172    1% /dev/shm
tmpfs                      819200   913  818287    1% /run
/dev/mapper/rootvg-rootlv 1048576  1333 1047243    1% /
/dev/mapper/rootvg-usrlv  5242880 89787 5153093    2% /usr
/dev/mapper/rootvg-tmplv  1048576    55 1048521    1% /tmp
/dev/mapper/rootvg-homelv  524288 12865  511423    3% /home
/dev/mapper/rootvg-varlv  4194304  3460 4190844    1% /var
/dev/sda2                  256000   368  255632    1% /boot
/dev/sda1                       0     0       0     - /boot/efi
/dev/loop0                    658   658       0  100% /var/lib/snapd/snap/snapd/20671
/dev/loop1                  14443 14443       0  100% /var/lib/snapd/snap/core22/1122
/dev/loop2                      8     8       0  100% /var/lib/snapd/snap/kubelogin/34
/dev/loop3                     12    12       0  100% /var/lib/snapd/snap/helm/397
tmpfs                      196434    20  196414    1% /run/user/1001
[randomusr@jumphost /]$ echo $HOMEBREW_TEMP
/var/tmp

编辑 使用命令parted然后print free检查驱动器上的可用空间。然后我找到并遵循了答案这里/home按建议延长。

答案1

我看到(并在评论中证实)您只有/home1GB 大小。因此最好扩展(到合理大小)并重试。

相关内容