There is no 1.7.1 version of shiny-server, the latest release is v1.5.17.973 and here you can find installation instructions for Ubuntu
Although, maybe you are referring to the shiny R package witch latest version is 1.7.1 if so, you can install it with this command
install.packages("shiny")