Help Center > > FAQs> Image Source Management> How Can I Use a Ubuntu Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?

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

Updated at: Jul 10, 2020 GMT+08:00


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


  • This section applies only to the following regions: CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, and AP-Hong Kong.
  • Make sure that the intranet DNS server provided by HUAWEI CLOUD has been configured. For instructions about how to obtain an intranet DNS server, see What Are the Private DNS Server Addresses Provided by the DNS Service?
  • The operations described in this section apply to ECSs deployed on x86_64 or Arm (Kunpeng) servers.


  1. Log in to the ECS.
  2. Run the following command to back up the sources.list file:

    mv /etc/apt/sources.list /etc/apt/sources.list.bak

  3. Select a suitable wget command according to the Ubuntu image source version, run the command to download the sources.list file, and save the file into /etc/apt/:

    Table 1 lists the mapping between Ubuntu versions and version names.

    Table 1 Mapping between Ubuntu versions and version names


    Version Name

    apt Source Configuration File

    Ubuntu 18.04

    (Bionic Beaver)


    Ubuntu 17.10

    (Artful Aardvark)


    Ubuntu 17.04

    (Zesty Zapus)





    Ubuntu 16.04 LTS

    (Xenial Xerus)


    Ubuntu 14.04 LTS

    (Trusty Tahr)


    Ubuntu 12.04 LTS

    (Precise Pangolin)


    Take Ubuntu 14.04 as an example. Its apt source configuration file is sources.list.trusty. The configurations are as follows:

    • x86_64 architecture

      wget -O /etc/apt/sources.list

    • Arm (Kunpeng) architecture

      wget -O /etc/apt/sources.list

  4. Run the following command to update the software library:

    apt-get update

  • If certain packages are unavailable, this issue may be caused by in-progress data synchronization. In such a case, try again several hours later.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel