09ab345a7f3690270dece384693e8b81417d63a0
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) ## translation metadata
Roger Dingledine looks like we never set the...

Roger Dingledine authored 13 years ago

2) # Revision: $Revision$
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

3) # Translation-Priority: 3-low
4) 
5) #include "head.wmi" TITLE="Tor Project: Debian/Ubuntu Instructions" CHARSET="UTF-8"
Peter Palfrader Move Debian sources.list ge...

Peter Palfrader authored 7 years ago

6) {#meta#:
7) <script type="text/javascript" src="debian-selector.js"></script>
8) :#meta#}
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

9) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

10) <div id="content" class="clearfix">
11)   <div id="breadcrumbs">
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 13 years ago

12)     <a href="<page index>">Home &raquo; </a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

13)     <a href="<page docs/documentation>">Documentation &raquo; </a>
14)     <a href="<page docs/debian>">Debian/Ubuntu Instructions</a>
15)   </div>
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 10 years ago

16)   <div id="maincol">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

17) <a id="debian"></a>
hiromipaw Update Debian distros coden...

hiromipaw authored 6 years ago

18) <h2><a class="anchor" href="#debian">Option one: Tor on Debian Stretch - stable,
19) Debian Buster - testing, or Debian Sid - unstable</a></h2>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

20) <br />
21) 
22) <p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

23) If you're using Debian, just run
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

24) </blockquote><pre>  apt install tor </pre></blockquote>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

25) as root.
26) </p>
27) 
28) <p>
29) Note that this might not always give you the latest stable Tor version, but
30) you will receive important security fixes. To make sure that you're running
31) the latest stable version of Tor, see option two below.
32) </p>
33) 
34) <p>
35) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 12 years ago

36) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

37) instructions.
38) </p>
39) 
40) <hr />
41) 
42) <a id="ubuntu"></a>
43) <a id="packages"></a>
44) <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
45) Debian</a></h2>
46) <br />
47) 
48) <p>
Sebastian Hahn Update Debian versions and...

Sebastian Hahn authored 12 years ago

49) <b>Do not use the packages in Ubuntu's universe.</b> In the past they have
50) not reliably been updated. That means you could be missing stability
51) and security fixes.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

52) </p>
53) 
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 10 years ago

54) <p>
55) <b>Raspbian is not Debian.</b> These packages will be confusingly broken
56) for Raspbian users, since Raspbian called their architecture armhf but
Roger Dingledine begin the slide toward link...

Roger Dingledine authored 10 years ago

57) Debian already has an armhf. See <a
58) href="http://tor.stackexchange.com/questions/242/how-to-run-tor-on-raspbian-on-the-raspberry-pi">this
59) post</a> for details.
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 10 years ago

60) </p>
61) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

62) <p>
63) You'll need to set up our package repository before you can fetch
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

64) Tor. First, you need to figure out the name of your distribution. A
Peter Palfrader we no longer do intrepid an...

Peter Palfrader authored 13 years ago

65) quick command to run is <tt>lsb_release -c</tt> or <tt>cat /etc/debian_version</tt>.
hiro Allow https in version of d...

hiro authored 6 years ago

66) If in doubt about your Debian version, check <a href="https://www.debian.org/releases/">the Debian website</a>.
Peter Palfrader Stop listing ancient ubuntu...

Peter Palfrader authored 10 years ago

67) For Ubuntu, ask <a href="https://en.wikipedia.org/wiki/List_of_Ubuntu_releases#Table_of_versions">Wikipedia</a>.
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

68) </p>
69) 
70) <div id="selector" style="display: none;">
71) <blockquote>
Sebastian Hahn Try to fit form fields in o...

Sebastian Hahn authored 9 years ago

72) I run
Peter Palfrader Do not use onchange=<inline...

Peter Palfrader authored 7 years ago

73) <select id="distrib">
hiromipaw Change select options

hiromipaw authored 6 years ago

74) <option value="jessie">Debian oldstable (jessie)</option>
75) <option value="stretch" selected="selected">Debian stable (stretch)</option>
nusenu Bug 25107: fix sources.list...

nusenu authored 6 years ago

76) <option value="buster">Debian testing (buster)</option>
Sebastian Hahn sid is unstable

Sebastian Hahn authored 9 years ago

77) <option value="sid">Debian unstable (sid)</option>
nusenu Bug 25107: sources.list gen...

nusenu authored 6 years ago

78) <option value="trusty">Ubuntu Trusty Tahr (14.04 LTS)</option>
79) <option value="xenial">Ubuntu Xenial Xerus (16.04 LTS)</option>
80) <option value="artful">Ubuntu Artful Aardvark (17.10)</option>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

81) </select>
Sebastian Hahn Try to fit form fields in o...

Sebastian Hahn authored 9 years ago

82) and want
Peter Palfrader Do not use onchange=<inline...

Peter Palfrader authored 7 years ago

83) <select id="package"></select>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

84) version
Peter Palfrader Do not use onchange=<inline...

Peter Palfrader authored 7 years ago

85) <select id="version"></select>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

86) </blockquote>
87) 
88) 
89) <div id="apt-source">
90) <p>You need to add the following entry in <code>/etc/apt/sources.list</code> or a new file in <code>/etc/apt/sources.list.d/</code>:</p>
91) 
hiro Allow https in version of d...

hiro authored 6 years ago

92) <blockquote><pre id="sources">deb https://deb.torproject.org/torproject.org stretch main
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

93) </pre></blockquote>
94) </div>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

95) 
hiro Allow https in version of d...

hiro authored 6 years ago

96) <p>Please not that the <a href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https package</a> is required to enable the usage of 'deb https://foo distro main' lines in the /etc/apt/sources.list so that all package managers using the libapt-pkg library can access metadata and packages available in sources accessible over https (Hypertext Transfer Protocol Secure).</p>
97) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

98) <div id="sig">
99) <p>Then add the gpg key used to sign the packages by running the following commands at your command prompt:</p>
100) <blockquote><pre>
Roger Dingledine use the full keyid for the...

Roger Dingledine authored 7 years ago

101) gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

102) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
103) </pre></blockquote>
104) </div>
105) 
106) 
107) <div id="apt-get">
108) <p>You can install it with the following commands:</p>
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

109) <blockquote><pre>$ apt update
110) <span id="regular-install">$ apt install <span id="apt-package">tor</span> deb.torproject.org-keyring</span>
111) <span id="source-install">$ apt install build-essential fakeroot devscripts
112) $ apt build-dep tor deb.torproject.org-keyring</span></pre></blockquote>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

113) 
114) <div id="source-install2">
115) <p>
116) Then you can build Tor in ~/debian-packages:
117) </p>
118) <blockquote><pre>
119) $ mkdir ~/debian-packages; cd ~/debian-packages
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

120) $ apt source tor
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

121) $ cd tor-*
122) $ debuild -rfakeroot -uc -us
123) $ cd ..
124) </pre></blockquote>
125) <p>Now you can install the new package:</p>
126) <blockquote><pre>
127) $ sudo dpkg -i tor_*.deb
128) </pre></blockquote>
129) </div>
130) </div>
131) </div>
132) 
133) <noscript>
134) <p>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

135) Then add this line to your
136) <tt>/etc/apt/sources.list</tt>
137) file:<br />
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

138) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

139) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
140) </pre>
nusenu Bug 25107: replace ancient...

nusenu authored 6 years ago

141) where you put the codename of your distribution (i.e. stretch, buster, sid
142) or whatever it is)
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

143) in place of &lt;DISTRIBUTION&gt;.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

144) </p>
145) 
146) <p>
147) Then add the gpg key used to sign the packages by running the following
148) commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

149) <pre style="margin: 1.5em 0 1.5em 2em">
Roger Dingledine use the full keyid for the...

Roger Dingledine authored 7 years ago

150) gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

151) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
152) </pre>
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

153) Now refresh your sources, running the following command (as root) at your
154) command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

155) <pre style="margin: 1.5em 0 1.5em 2em">
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

156) apt update
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

157) </pre>
158) If there are no errors you're good to continue.
159) </p>
160) 
161) <p>
162) We provide a Debian package to help you keep our signing key current.  It is
163) recommended you use it.  Install it using
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

164) <pre style="margin: 1.5em 0 1.5em 2em">
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

165) apt install deb.torproject.org-keyring
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

166) </pre>
167) </p>
168) 
169) <p>
170) To finally install Tor just run:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

171) <pre style="margin: 1.5em 0 1.5em 2em">
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

172) apt install tor
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

173) </pre>
174) </p>
175) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

176) </noscript>
177) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

178) <p>
179) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 12 years ago

180) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

181) instructions.
182) </p>
183) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

184) <noscript>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

185) <p style="font-size: small">
186) The DNS name <code>deb.torproject.org</code> is actually a set of independent
187) servers in a DNS round robin configuration.  If you for some reason cannot
188) access it you might try to use the name of one of its part instead.  Try
189) <code>deb-master.torproject.org</code>,
190) <code>mirror.netcologne.de</code> or
191) <code>tor.mirror.youam.de</code>.
192) </p>
193) 
194) <hr />
195) 
196) <a id="development"></a>
197) <h2><a class="anchor" href="#development">Option three: Using the
198) development branch of Tor on Debian or Ubuntu</a></h2>
199) <br />
200) 
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

201) <p>If you want to use the <a href="<page
nusenu Bug 24994: point to the act...

nusenu authored 6 years ago

202) download/download-unix>#packagediff">development branch</a> of Tor instead
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

203) (more features and more bugs), you need to add a different set of lines
204) to your <tt>/etc/apt/sources.list</tt> file:<br />
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

205) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

206) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
nusenu Bug 25107: Update the tor a...

nusenu authored 6 years ago

207) deb     http://deb.torproject.org/torproject.org tor-experimental-0.3.3.x-&lt;DISTRIBUTION&gt; main
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

208) </pre>
nusenu Bug 25107: replace ancient...

nusenu authored 6 years ago

209) where you again substitute the name of your distro (stretch, buster,
210) sid, xenial, ...) in place of
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

211) &lt;DISTRIBUTION&gt;.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

212) </p>
213) 
214) <p>
215) Then run the following commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

216) <pre style="margin: 1.5em 0 1.5em 2em">
Roger Dingledine use the full keyid for the...

Roger Dingledine authored 7 years ago

217) gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

218) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

219) apt update
220) apt install tor deb.torproject.org-keyring
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

221) </pre>
222) </p>
223) 
224) <p>
225) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 12 years ago

226) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

227) instructions.
228) </p>
229) 
230) <hr />
231) 
232) <a id="source"></a>
233) <h2><a class="anchor" href="#source">Building from source</a></h2>
234) <br />
235) 
236) <p>
237) If you want to build your own debs from source you must first add an
238) appropriate <tt>deb-src</tt> line to <tt>sources.list</tt>.
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

239) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

240) # For the stable version.
241) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
242) 
243) # For the unstable version.
244) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
nusenu Bug 25107: Update the tor a...

nusenu authored 6 years ago

245) deb-src http://deb.torproject.org/torproject.org tor-experimental-0.3.3.x-&lt;DISTRIBUTION&gt; main
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

246) </pre>
nusenu Bug 25107: fix typo

nusenu authored 6 years ago

247) Substitute the name of your distro (stretch, buster, sid, xenial, ...) in place of &lt;DISTRIBUTION&gt;. Now refresh your sources by running (as root):
Matt Pagan We should tell people build...

Matt Pagan authored 9 years ago

248) <pre style="margin: 1.5em 0 1.5em 2em">
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

249) apt update
Matt Pagan We should tell people build...

Matt Pagan authored 9 years ago

250) </pre>
hiromipaw Update Debian distros coden...

hiromipaw authored 6 years ago

251) You also need to install the necessary packages to build your own debs and the
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

252) packages needed to build Tor:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

253) <pre style="margin: 1.5em 0 1.5em 2em">
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

254) apt install build-essential fakeroot devscripts
255) apt build-dep tor
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

256) </pre>
257) Then you can build Tor in ~/debian-packages:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

258) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

259) mkdir ~/debian-packages; cd ~/debian-packages
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

260) apt source tor
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

261) cd tor-*
262) debuild -rfakeroot -uc -us
263) cd ..
264) </pre>
265) Now you can install the new package:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

266) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

267) sudo dpkg -i tor_*.deb
268) </pre>
269) </p>
270) 
271) <p>
272) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 12 years ago

273) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

274) instructions.
275) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

276) </noscript>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

277) 
278) <!-- END MAIN COL -->
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

279)   </div>
280)   <div id = "sidecol">
281) #include "side.wmi"
282) #include "info.wmi"
283)   </div>
284)   <!-- END SIDECOL -->
285) </div>
286) <!-- END CONTENT -->