It looks like you added the URL to the plugin install line? You don't need to do that with Elasticsearch. The only time you need to put the URL is if you are struggling with a proxy (unlikely) or you need to do an offline install.
Try instead, just:
# sudo bin/elasticsearch-plugin install license