Este conteúdo foi traduzido por máquina para sua conveniência e a Huawei Cloud não pode garantir que o conteúdo foi traduzido com precisão. Para exibir o conteúdo original, use o link no canto superior direito para mudar para a página em inglês.
Central de ajuda/ Elastic Cloud Server/ Perguntas frequentes/ Image Source Management/ How Can I Use a EulerOS Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?
Atualizado em 2025-01-23 GMT+08:00

How Can I Use a EulerOS Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?

Scenarios

When updating the OS or software of an ECS, you can access the Internet through the ECS and use an external EulerOS image source. However, if your ECS cannot access the Internet, or the external EulerOS image source cannot provide services stably, you can use the EulerOS image source provided by HUAWEI CLOUD.

Constraints

  • Esta seção aplica-se apenas às seguintes regiões: CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou e CN-Hong Kong.
  • The operations described in this section apply to both x86_64 and Arm (Kunpeng) ECSs.

Procedure

  1. Log in to the ECS.
  2. Run the following commands to back up the Euler repo file:

    mkdir -p /etc/yum.repos.d/repo_bak/

    mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo_bak/

  3. Select a suitable curl command to download the Euler-Base.repo file of the desired version and save the file into /etc/yum.repos.d/.
    • x86_64 (only EulerOS 2.2, EulerOS 2.3, and EulerOS 2.5 are supported)

      curl -o /etc/yum.repos.d/EulerOS-base.repo http://mirrors.myhuaweicloud.com/repo/EulerOS_2_x_base.repo

      For example, if EulerOS 2.3 is used, change x in EulerOS_2_x_base.repo to 3 in the following command:

      curl -o /etc/yum.repos.d/EulerOS-base.repo http://mirrors.myhuaweicloud.com/repo/EulerOS_2_3_base.repo

    • Arm (only EulerOS 2.8 is supported)

      curl -o /etc/yum.repos.d/EulerOS-base.repo http://mirrors.myhuaweicloud.com/repo/EulerOS_2_8_base.repo

  4. Run the following command to generate a cache:

    yum makecache

    • After you execute the command, if the system displays the message "Another app is currently holding the yum lock", run the rm -rf /var/run/yum.pid command to delete the yum.pid file. Then, run the yum makecache command again to generate the cache.
    • If certain packages are unavailable, this issue may be caused by in-progress data synchronization. In this case, try again after a few hours.