5ad79e06d1c9ef4934086fbf816249035eba9fb2
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>
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

23) If you're using Debian, just run as root:
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) </p>
26) 
hiro Provide a note regarding de...

hiro authored 6 years ago

27) <p>Debian provides the <a href="https://packages.debian.org/stretch/tor">LTS</a>
28) version of Tor. Note that this might not always give you the latest stable
29) Tor version, but you will receive important security fixes. To make sure
30) 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

31) </p>
32) 
33) <p>
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

34) When Tor is installed and running move on to <a href="<page
35) docs/tor-doc-unix>#using">step two</a> of the "<a href="<page
36) docs/tor-doc-unix>">Tor on Linux/Unix</a>" instructions.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Roger Dingledine authored 10 years ago

53) <p>
hiro Reworded the sentence raspb...

hiro authored 6 years ago

54) <b>Raspbian is not Debian.</b> Tor might run fine on the Raspberry Pi 2 / 3 but not the first generation Pi.
55) 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

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

Roger Dingledine authored 10 years ago

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

Andrew Lewman authored 13 years ago

61) <p>
62) 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

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

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

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

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

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

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 7 years ago

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

hiromipaw authored 6 years ago

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

nusenu authored 6 years ago

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

Sebastian Hahn authored 9 years ago

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

nusenu authored 6 years ago

77) <option value="trusty">Ubuntu Trusty Tahr (14.04 LTS)</option>
78) <option value="xenial">Ubuntu Xenial Xerus (16.04 LTS)</option>
79) <option value="artful">Ubuntu Artful Aardvark (17.10)</option>
nusenu debian.html: sources.list g...

nusenu authored 5 years ago

80) <option value="bionic">Ubuntu Bionic Beaver (18.04 LTS)</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">
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

90) <p>You need to add the following entries to <code>/etc/apt/sources.list</code> or a new file in
91) <code>/etc/apt/sources.list.d/</code>:</p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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) 
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

97) <p>Note: To use source lines with https:// in <i>/etc/apt/sources.list</i> the <a
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

98) href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https
99) package</a> is required. Install it with
100) <blockquote><pre>
101) apt install apt-transport-https
102) </pre></blockquote>
103) 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

104) 
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

105) <p>To use Apt with Tor later replace <tt>https://</tt> with <tt>tor://</tt> and run
106) <blockquote><pre>
107) apt install apt-transport-tor
108) </pre></blockquote>
109) </p>
110) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

111) <div id="sig">
112) <p>Then add the gpg key used to sign the packages by running the following commands at your command prompt:</p>
113) <blockquote><pre>
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

114) gpg --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

115) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
116) </pre></blockquote>
117) </div>
118) 
119) 
120) <div id="apt-get">
121) <p>You can install it with the following commands:</p>
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

122) <blockquote><pre>apt update
123) <span id="regular-install">apt install <span id="apt-package">tor</span> deb.torproject.org-keyring</span>
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

124) <span id="source-install">$ apt install build-essential fakeroot devscripts
125) $ apt build-dep tor deb.torproject.org-keyring</span></pre></blockquote>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

126) 
127) <div id="source-install2">
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

128) <p>Then you can build Tor in ~/debian-packages:</p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

129) <blockquote><pre>
130) $ mkdir ~/debian-packages; cd ~/debian-packages
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

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

Sebastian Hahn authored 9 years ago

132) $ cd tor-*
133) $ debuild -rfakeroot -uc -us
134) $ cd ..
135) </pre></blockquote>
136) <p>Now you can install the new package:</p>
137) <blockquote><pre>
138) $ sudo dpkg -i tor_*.deb
139) </pre></blockquote>
140) </div>
141) </div>
142) </div>
143) 
144) <noscript>
145) <p>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

hiro authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

155) </p>
156) 
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

157) <p>
158) If you want to use the <a href="<page download/download-unix>#packagediff">development branch</a> of Tor 
159) instead (more features and more bugs), you need add a different set of lines to your 
160) <i>/etc/apt/sources.list</i> file:<br />
161) <pre style="margin: 1.5em 0 1.5em 2em">
162) deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
163) deb     https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-&lt;DISTRIBUTION&gt; main
164) </pre>
165) </p>
166) 
167) <p>Note: To use source lines with <tt>https://</tt> in <i>/etc/apt/sources.list</i> the <a
168) href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https
169) package</a> is required. Install it with
170) <blockquote><pre>
171) apt install apt-transport-https
172) </pre></blockquote>
173) 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>
174) 
175) <p>To use Apt with Tor later replace <tt>https://</tt> with <tt>tor://</tt> and run 
176) <blockquote><pre>
177) apt install apt-transport-tor
178) </pre></blockquote>
179) </p>
180) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

181) <p>
182) Then add the gpg key used to sign the packages by running the following
183) commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

184) <pre style="margin: 1.5em 0 1.5em 2em">
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

185) gpg --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

191) apt update
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

192) </pre>
193) If there are no errors you're good to continue.
194) </p>
195) 
196) <p>
197) We provide a Debian package to help you keep our signing key current.  It is
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

198) recommended you use it.  Install it along with tor using
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

199) <pre style="margin: 1.5em 0 1.5em 2em">
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

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

Andrew Lewman authored 13 years ago

201) </pre>
202) </p>
203) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

206) <p>
207) 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

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

209) instructions.
210) </p>
211) 
212) <p style="font-size: small">
213) The DNS name <code>deb.torproject.org</code> is actually a set of independent
214) servers in a DNS round robin configuration.  If you for some reason cannot
215) access it you might try to use the name of one of its part instead.  Try
216) <code>deb-master.torproject.org</code>,
217) <code>mirror.netcologne.de</code> or
218) <code>tor.mirror.youam.de</code>.
219) </p>
220) 
hiro Fix spurious char in debian...

hiro authored 6 years ago

221) <p><code>deb.torproject.org</code> is also served through now also served via onion service:
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

222) <a href="http://sdscoq7snqtznauu.onion">http://sdscoq7snqtznauu.onion/</a> To use the onion service with 
223) apt, replace the address in the previously added lines:
224) <pre style="margin: 1.5em 0 1.5em 2em">.
225) # For the stable version.
226) deb tor://sdscoq7snqtznauu.onion/torproject.org buster main
227) 
228) # For the unstable version.
229) deb tor://sdscoq7snqtznauu.onion/torproject.org tor-nightly-master-&lt;DISTRIBUTION&gt; main
230) </pre>
hiro Add deb.tpo onion service a...

hiro authored 6 years ago

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

hiro authored 6 years ago

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

233) torproject.org onion addresses.</p>
234) 
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

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

Andrew Lewman authored 13 years ago

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
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

252) deb-src https://deb.torproject.org/torproject.org tor-experimental-0.3.4.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 -->