fallocate: fallocate failed: Text file busy in ubuntu OS
Check the allocation:
free -m or sudo swapon --show
Make sure you have enough free disk space by
df -h
Disable the use of swap, allocate new swap space, enable swap.
sudo swapoff -a sudo fallocate -l 8G /swapfile sudo mkswap /swapfile sudo swapon /swapfile
Check the allocation:
free -m or sudo swapon --show
For detailed information: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-18-04