Error: not enough space to unpack
Sometimes, an upgrade fails due to storage issues.
fpc1:
jinstall-host-qfx-5e-x86-64-22.2R3.15-secure.tgz: truncated gzip input
tar: Error exit delayed from previous errors.
Error: not enough space to unpack /var/tmp/jinstall-host-qfx-5e-x86-64-22.2R3.15 -secure-signed.tgz
ERROR: Either use 'force' or consider deleting snapshots using 'request system snapshot delete <snap>'
And checking the storage space, there is enough space to install the software.
--------------------------------------------------------------------------
Filesystem Size Used Avail Capacity Mounted on
/dev/gpt/junos 6.0G 1.1G 4.4G 20% /.mount
tmpfs 5.6G 64K 5.6G 0% /.mount/tmp
tmpfs 643M 632K 643M 0% /.mount/mfs
hostvar 12G 1.2G 10G 10% /.mount/hostvar
Transfer the software file to /tmp directory since it has more storage than /var/tmp/.