eef9993fa82324548b3a445a529bcac2226b5a96
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) 
hiro Provide a note regarding de...

hiro authored 6 years ago

28) <p>Debian provides the <a href="https://packages.debian.org/stretch/tor">LTS</a>
29) version of Tor. Note that this might not always give you the latest stable
30) Tor version, but you will receive important security fixes. To make sure
31) that you're running the latest stable version of Tor, see option two below.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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>
hiro Reworded the sentence raspb...

hiro authored 6 years ago

55) <b>Raspbian is not Debian.</b> Tor might run fine on the Raspberry Pi 2 / 3 but not the first generation Pi.
56) These packages might be confusingly broken 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>
nusenu debian.html: sources.list g...

nusenu authored 5 years ago

81) <option value="bionic">Ubuntu Bionic Beaver (18.04 LTS)</option>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 7 years ago

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

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 7 years ago

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

Sebastian Hahn authored 9 years ago

87) </blockquote>
88) 
89) 
90) <div id="apt-source">
91) <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>
92) 
hiro Update debian-selector.js a...

hiro authored 6 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

96) 
hiro Fix small typo

hiro authored 6 years ago

97) <p>Please note 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>
hiro Allow https in version of d...

hiro authored 6 years ago

98) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Roger Dingledine authored 7 years ago

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

Sebastian Hahn authored 9 years ago

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

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

Sebastian Hahn authored 9 years ago

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

Iain R. Learmonth authored 6 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

139) <pre style="margin: 1.5em 0 1.5em 2em">
hiro Fix no script version of de...

hiro authored 6 years ago

140) deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Roger Dingledine authored 7 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

157) apt update
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

179) <p>
180) 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

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

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

186) <p style="font-size: small">
187) The DNS name <code>deb.torproject.org</code> is actually a set of independent
188) servers in a DNS round robin configuration.  If you for some reason cannot
189) access it you might try to use the name of one of its part instead.  Try
190) <code>deb-master.torproject.org</code>,
191) <code>mirror.netcologne.de</code> or
192) <code>tor.mirror.youam.de</code>.
193) </p>
194) 
hiro Fix spurious char in debian...

hiro authored 6 years ago

195) <p><code>deb.torproject.org</code> is also served through now also served via onion service:
196) <a href="http://sdscoq7snqtznauu.onion">http://sdscoq7snqtznauu.onion/</a>.
hiro Add deb.tpo onion service a...

hiro authored 6 years ago

197) <br />
hiro Fix spurious char in debian...

hiro authored 6 years ago

198) See <a href="https://onion.torproject.org/">https://onion.torproject.org</a> for all
hiro Add deb.tpo onion service a...

hiro authored 6 years ago

199) torproject.org onion addresses.</p>
200) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

201) <hr />
202) 
203) <a id="development"></a>
204) <h2><a class="anchor" href="#development">Option three: Using the
205) development branch of Tor on Debian or Ubuntu</a></h2>
206) <br />
207) 
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

212) <pre style="margin: 1.5em 0 1.5em 2em">
hiro Fix no script version of de...

hiro authored 6 years ago

213) deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
214) deb     https://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

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

219) </p>
220) 
221) <p>
222) Then run the following commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Roger Dingledine authored 7 years ago

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

Andrew Lewman authored 13 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

228) </pre>
229) </p>
230) 
231) <p>
232) 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

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

234) instructions.
235) </p>
236) 
237) <hr />
238) 
239) <a id="source"></a>
240) <h2><a class="anchor" href="#source">Building from source</a></h2>
241) <br />
242) 
243) <p>
244) If you want to build your own debs from source you must first add an
245) 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

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

Andrew Lewman authored 13 years ago

247) # For the stable version.
hiro Fix no script version of de...

hiro authored 6 years ago

248) deb-src https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

249) 
250) # For the unstable version.
hiro Fix no script version of de...

hiro authored 6 years ago

251) deb-src https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
252) deb-src https://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

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

nusenu authored 6 years ago

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

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

Iain R. Learmonth authored 6 years ago

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

Matt Pagan authored 9 years ago

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

hiromipaw authored 6 years ago

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

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

268) cd tor-*
269) debuild -rfakeroot -uc -us
270) cd ..
271) </pre>
272) Now you can install the new package:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

274) sudo dpkg -i tor_*.deb
275) </pre>
276) </p>
277) 
278) <p>
279) 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

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

281) instructions.
282) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

286)   </div>
287)   <div id = "sidecol">
288) #include "side.wmi"
289) #include "info.wmi"
290)   </div>
291)   <!-- END SIDECOL -->
292) </div>
293) <!-- END CONTENT -->