As mentioned in ktor cli website, I'm trying to install it in my Linux machine. But I ended up with below error.
error: cannot install "ktor": persistent network error: Post https://api.snapcraft.io/v2/snaps/refresh: dial tcp: lookup api.snapcraft.io: Temporary failure in name resolution
Is it possible to install Ktor on Linux and how to create and run a project?
The ktor cli explicitly supports linux and installation through snap
https://github.com/ktorio/ktor-cli
From that link you can install and create a project with
snap install --beta --classic ktor
and
ktor generate ktor-sample
respectively.
Your problem looks like it is related to your network's DNS and is an unrelated problem.