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

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

Updated at: Mar 17, 2020 GMT+08:00

Scenarios

When you are required to update the OS or software of an ECS, you can access the ECS to the Internet 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.

Constraints

Procedure

  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

    Version Name

    apt Source Configuration File

    Ubuntu 18.04

    (Bionic Beaver)

    sources.list.bionic

    Ubuntu 17.10

    (Artful Aardvark)

    sources.list.artful

    Ubuntu 17.04

    (Zesty Zapus)

    sources.list.zesty

    Ubuntu16.10

    (YakketyYak)

    sources.list.yakkety

    Ubuntu 16.04 LTS

    (Xenial Xerus)

    sources.list.xenial

    Ubuntu 14.04 LTS

    (Trusty Tahr)

    sources.list.trusty

    Ubuntu 12.04 LTS

    (Precise Pangolin)

    sources.list.precise

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

    wget -O /etc/apt/sources.list http://mirrors.myhuaweicloud.com/repo/sources.list.trusty

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

    apt-get update

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