I've downloaded the build/release agent from VSTS page to install on my Ubuntu 16.04 system, but when I tried to run the configuration shell script, I got the following error: Failed to initialize CoreCLR, HRESULT: 0x80131500.
This happens because I installed the version for Ubuntu 14.04 and not the one specifically compiled for Ubuntu 16.04. In my situation, the error happened because the download page of my VSTS account does not list the version for Ubuntu 16.04, but only for Ubuntu 14.04, and this incorrectly lead me to the false belief that it works for both versions. The page from where you download the agent is https://myaccount.visualstudio.com/_admin/_AgentQueue and should also list the version for 16.04.
Figure 1: Agent download page in your VSTS account.
To avoid the error, the best way to download the agent is checking the official GitHub account page. (The best place to download and to look for VSTS agent information is the official GitHub page.)
As you can verify from Figure 2, we have a two distinct compiled versions for Ubuntu.
Figure 2:Distinct builds for vsts agents (Ubuntu 14 and 16).
To download the correct version, you can easily go to the release page, where you can download all official versions for all supported operating system/version.