Setting the Source
Prerequisites
The server with the DDK installed is normally connected to the network.
Procedure
- Switch to the root user and set the sudo apt-get permission for the common user.
- Run the following commands to open the /etc/sudoers file:
su root chmod u+w /etc/sudoers vi /etc/sudoers
- 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.
- Run :wq! to save the file.
- Run the following command to revoke the write permission on the /etc/sudoers file:
chmod u-w /etc/sudoers
- Run the following commands to open the /etc/sudoers file:
- Configure the Ubuntu18.04 source, which is in the /etc/apt/sources.list file.
- Run the su username command to switch to the common user.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot