ubuntu apt-get (You must put some ‘source’ URIs in your sources.list)
ubuntu apt-get (You must put some ‘source’ URIs in your sources.list)
E: You must put some ‘source’ URIs in your sources.list
1、vi /etc/apt/sources.list
2、add to sources.list
1 2 3 4 5 6 |
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、sudo apt-get update
4、执行你的命令,例如:sudo apt-get build-dep python-lxml 等。
Copyright:cpp.cloudcpp.com Share、Open- C/C++程序员之家