fc4589a3b69bbe29545d670e02317f6adc68868c
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>.
Peter Palfrader Stop listing ancient ubuntu...

Peter Palfrader authored 10 years ago

66) If in doubt about your Debian version, check <a href="http://www.debian.org/releases/">the Debian website</a>.
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) 
hiromipaw Change Debian distros also...

hiromipaw authored 6 years ago

92) <blockquote><pre id="sources">deb http://deb.torproject.org/torproject.org jessie 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) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Roger Dingledine authored 7 years ago

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

Sebastian Hahn authored 9 years ago

100) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
101) </pre></blockquote>
102) </div>
103) 
104) 
105) <div id="apt-get">
106) <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

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

Sebastian Hahn authored 9 years ago

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

Iain R. Learmonth authored 6 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Roger Dingledine authored 7 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

154) apt update
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

171) </pre>
172) </p>
173) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

176) <p>
177) 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

178) 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

179) instructions.
180) </p>
181) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

205) 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

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Roger Dingledine authored 7 years ago

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

Andrew Lewman authored 13 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

219) </pre>
220) </p>
221) 
222) <p>
223) 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

224) 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

225) instructions.
226) </p>
227) 
228) <hr />
229) 
230) <a id="source"></a>
231) <h2><a class="anchor" href="#source">Building from source</a></h2>
232) <br />
233) 
234) <p>
235) If you want to build your own debs from source you must first add an
236) 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

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

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

243) 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

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

nusenu authored 6 years ago

245) 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

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

Iain R. Learmonth authored 6 years ago

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

Matt Pagan authored 9 years ago

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

hiromipaw authored 6 years ago

249) 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

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

265) sudo dpkg -i tor_*.deb
266) </pre>
267) </p>
268) 
269) <p>
270) 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

271) 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

272) instructions.
273) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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