I downloaded the corresponding jar of the version it was trying to find from maven central and putting it to corresponding to .ivy2 local folder.
path of .ivy2 local folder :
/home/spark/.ivy2/local/io.delta/delta-core_2.12/3.2.0/jars/delta-core_2.12.jar