Updated on 2022-03-13 GMT+08:00

Setting the Source

Prerequisites

The server with the DDK installed is normally connected to the network.

Procedure

  1. Switch to the root user and set the sudo apt-get permission for the common user.

    1. Run the following commands to open the /etc/sudoers file:
      su root
      chmod u+w /etc/sudoers
      vi /etc/sudoers
    2. Add the following content below # User privilege specification of the file:
      username ALL=(ALL:ALL)   NOPASSWD:SETENV:/usr/bin/apt-get

      Replace username with the name of the common user who executes the installation script.

      Ensure that the last line of the /etc/sudoers file is #includedir /etc/sudoers.d. Otherwise, add it manually.

    3. Run :wq! to save the file.
    4. Run the following command to revoke the write permission on the /etc/sudoers file:
      chmod u-w /etc/sudoers

  1. Configure the Ubuntu18.04 source, which is in the /etc/apt/sources.list file.
  2. Run the su username command to switch to the common user.
  3. Run the sudo apt-get update command to check whether the source is available. If the dependency cannot be downloaded based on the source in the /etc/apt/sources.list file, you are advised to configure an available proxy or search for an available source.