Ubuntu apt-get installation software error (You must put some'source' URIs in your sources.list) solution

Problem:
An error was reported when installing the software:
ubuntu apt-get (You must put some'source' URIs in your sources.list)
E: You must put some'source' URIs in your sources.list

Solution:

This is because apt-get cannot find the URL of some software sources.

1. Enter the command: gedit /etc/apt/sources.list

2. Copy the following content to the editor, then save and exit

deb-src http://archive.ubuntu.com/ubuntu trusty main restricted #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties
deb-src http://security.ubuntu.com/ubuntu trusty-security restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-proposed restricted main universe multiverse #Added by software-properties

3. Execute the command sudo apt-get update

4. After that, you can download the software successfully

Guess you like

Origin blog.csdn.net/daijingxin/article/details/115354893