I am running Ubuntu 20.04.4 LTS and was facing this issue. By adding the below commands at the end of the .bashrc
file by opening it in the nano editor I was able to fix it
export FLYCTL_INSTALL="/home/mubashir/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"