I am updating my Tor on Ubuntu and it states:
Do not use the packages in Ubuntu's universe. You'll need to set up our package repository before you can fetch Tor.
It then states that I have to add this line to your /etc/apt/sources.list
file:
deb http://deb.torproject.org/torproject.org <precise> main
I am uncertain how to add a line to /etc/apt/sources.list
.
/etc/apt/sources.list
for third-party repos, use/etc/apt/sources.list.d/
instead. – hudolejev Nov 01 '12 at 21:44/etc/apt/sources.list.d/
using the commandadd-apt-repository
? From the man page I can not figure it out it seems like it happens magically, however when using that command I keep seeing lines added to the file/etc/apt/sources.list
instead – TPPZ Aug 08 '18 at 10:50add-apt-repository
will only create separate files insources.list.d
for PPA repos, for others it will updatesources.list
: http://manpages.ubuntu.com/manpages/bionic/man1/add-apt-repository.1.html#repository%20string – hudolejev Sep 05 '18 at 06:39