8e15c12444a5be01e517e473341bec9af4977d85
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 Bump Tor to 0.3.4.x ; howto...

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 Bump Tor to 0.3.4.x ; howto...

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">
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 Update debian-selector.js a...

hiro authored 6 years ago

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

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

Andrew Lewman authored 13 years ago

95) 
Traumschule Bump Tor to 0.3.4.x ; howto...

Traumschule authored 5 years ago

96) <p>Note: To use this source line in <i>/etc/apt/sources.list</i> The <a
97) href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https
98) package</a> is required. Install it with
99) <blockquote><pre>
100) apt install apt-transport-https
101) </pre></blockquote>
102) 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

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

Sebastian Hahn authored 9 years ago

104) <div id="sig">
105) <p>Then add the gpg key used to sign the packages by running the following commands at your command prompt:</p>
106) <blockquote><pre>
Traumschule Bump Tor to 0.3.4.x ; howto...

Traumschule authored 5 years ago

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

Sebastian Hahn authored 9 years ago

108) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
109) </pre></blockquote>
110) </div>
111) 
112) 
113) <div id="apt-get">
114) <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

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

Sebastian Hahn authored 9 years ago

119) 
120) <div id="source-install2">
121) <p>
122) Then you can build Tor in ~/debian-packages:
123) </p>
124) <blockquote><pre>
125) $ mkdir ~/debian-packages; cd ~/debian-packages
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

hiro authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

150) </p>
151) 
152) <p>
153) Then add the gpg key used to sign the packages by running the following
154) commands at your 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">
Traumschule Bump Tor to 0.3.4.x ; howto...

Traumschule authored 5 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

162) apt update
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Peter Palfrader authored 12 years ago

172) </pre>
173) </p>
174) 
175) <p>
176) To finally install Tor just run:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

184) <p>
185) 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

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

187) instructions.
188) </p>
189) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

hiro authored 6 years ago

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

hiro authored 6 years ago

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

hiro authored 6 years ago

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

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

Andrew Lewman authored 13 years ago

206) <hr />
207) 
208) <a id="development"></a>
209) <h2><a class="anchor" href="#development">Option three: Using the
210) development branch of Tor on Debian or Ubuntu</a></h2>
211) <br />
212) 
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

hiro authored 6 years ago

218) deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Traumschule Bump Tor to 0.3.4.x ; howto...

Traumschule authored 5 years ago

219) deb     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

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

nusenu authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

224) </p>
225) 
226) <p>
227) Then run the following commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

228) <pre style="margin: 1.5em 0 1.5em 2em">
Traumschule docs/en/debian: don't recom...

Traumschule authored 5 years ago

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

Andrew Lewman authored 13 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

233) </pre>
234) </p>
235) 
236) <p>
237) 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

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

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

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

Andrew Lewman authored 13 years ago

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

hiro authored 6 years ago

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

Andrew Lewman authored 13 years ago

254) 
255) # For the unstable version.
hiro Fix no script version of de...

hiro authored 6 years ago

256) deb-src https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Traumschule Bump Tor to 0.3.4.x ; howto...

Traumschule authored 5 years ago

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

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

nusenu authored 6 years ago

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

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 update
Matt Pagan We should tell people build...

Matt Pagan authored 9 years ago

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

hiromipaw authored 6 years ago

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

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

273) cd tor-*
274) debuild -rfakeroot -uc -us
275) cd ..
276) </pre>
277) Now you can install the new package:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

279) sudo dpkg -i tor_*.deb
280) </pre>
281) </p>
282) 
283) <p>
284) 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

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

286) instructions.
287) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

291)   </div>
292)   <div id = "sidecol">
293) #include "side.wmi"
294) #include "info.wmi"
295)   </div>
296)   <!-- END SIDECOL -->
297) </div>
298) <!-- END CONTENT -->