Add steps: 1. Open a terminal window; 2. Use a text editor (such as vi or nano) to open the /etc/apt/sources.list file and use "sudo vi /etc/apt/sources.list " command to open the file and add a new update source; 3. Save and close the file; 4. Use the "sudo apt-get update" command in the terminal window to update the update source list to add a new update source.
To add an update source, you can follow these steps:
sudo vi /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial main restricted
sudo apt-get update
The new update source is added and you can use the apt-get command to install or update software Bag.
The above is the detailed content of How to add update source in linux. For more information, please follow other related articles on the PHP Chinese website!