Installation Error

install: cannot remove '/swapfile': Operation not permitted
fallocate: fallocate failed: Text file busy
mkswap: error: /swapfile is mounted; will not make swapspace
swapon: /swapfile: swapon failed: Device or resource busy
/swapfile       swap    swap    auto      0       0
vm.swappiness = 10
Failed to create swap: are you root? Are you running on real hardware, or a fully virtualized server

I get such a problem during installation, how can I solve this problem? I don’t use vps, I use vds.

What you get from

df -h

The install script has detected you have less than 2G of RAM and less than 2G of swap, and is trying to create a swapfile. According to the source, it doesn’t deal with the case where there is an existing swapfile. Probably you should remove the existing swapfile and try again. This might be enough:

swapoff /swapfile && rm /swapfile