目录

What should I do if sdkmgr fails to download the Linux SDK in the pipeline scenario?

Symptom

When sdkmgr is used on Linux, the following error is displayed: "Failed to request URL https://devecostudio-dre.op.hicloud.com/sdkmanager/v5/hos/getSdkList".

Solution

This issue occurs when the country code for Linux is not set to China.

  1. Open the CLI and go to the directory where sdkmgr is located.
    cd ${root directory of sdkmgr}/sdkmanager/bin

  2. Open the sdkmgr file.
    vim sdkmgr

  3. Append the country code -Duser.country=CN to -Dfile.encoding=UTF-8 on the last line.

  4. Save the changes and run the sdkmgr-related commands again to download the Linux SDK.