PDA

View Full Version : How to get the list of sources of a package



sylas
1st January 2017, 15:54
HI all ! At my last O.S. : 1. sudo apt-get build-dep $package 2. apt-get source $package
and I had all files.
Now with my O.S. Linux 16.04 it doesn't work.
At the end of 1. terminal says: Reading package lists.... Done E: You must put some 'source' URIs in your sources.list (I don't understand that ! )
At the end of 2. terminal says exactly same things as for 1. (above).
I hope somebody will help me.

anda_skoa
2nd January 2017, 10:05
Why don't you ask that on a support forum for your OS?

Cheers,
_

sylas
10th January 2017, 07:49
All troubles come from the fact that with the new O.S , the sources.list has all URIs concerning source code , commented. So they dont work. So*: 1. you load sources. list with* : sudo nano /etc/apt/sources.list 2. you uncomment all URIs beginning with deb-src 3. you save that (you have to exit before saving) 4. you type*: sudo apt-get update 5. you want all the source files of «*sed*»*: you type sudo apt-get build-dep sed 6. you wait the end and then you type*: apt-get source sed 7. you wait the end and then you type «*ls*». So you see your files on your console