a9ba136255686c2b359931e54825601d108a23d3
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>
hiro Remove blank new line chara...

hiro authored 5 years ago

158) If you want to use the <a href="<page download/download-unix>#packagediff">development branch</a> of Tor instead (more features and more bugs), you need add a different set of lines to your <i>/etc/apt/sources.list</i> file:<br />
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

159) <pre style="margin: 1.5em 0 1.5em 2em">
160) deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
161) deb     https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-&lt;DISTRIBUTION&gt; main
162) </pre>
163) </p>
164) 
165) <p>Note: To use source lines with <tt>https://</tt> in <i>/etc/apt/sources.list</i> the <a
166) href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https
167) package</a> is required. Install it with
168) <blockquote><pre>
169) apt install apt-transport-https
170) </pre></blockquote>
171) 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>
172) 
hiro Remove blank new line chara...

hiro authored 5 years ago

173) <p>To use Apt with Tor later replace <tt>https://</tt> with <tt>tor://</tt> and run <blockquote><pre>
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

174) apt install apt-transport-tor
175) </pre></blockquote>
176) </p>
177) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Traumschule authored 5 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

188) apt update
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

189) </pre>
190) If there are no errors you're good to continue.
191) </p>
192) 
193) <p>
194) 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

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

Peter Palfrader authored 12 years ago

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

Traumschule authored 5 years ago

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

Andrew Lewman authored 13 years ago

198) </pre>
199) </p>
200) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

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

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

hiro authored 6 years ago

218) <p><code>deb.torproject.org</code> is also served through now also served via onion service:
hiro Remove blank new line chara...

hiro authored 5 years ago

219) <a href="http://sdscoq7snqtznauu.onion">http://sdscoq7snqtznauu.onion/</a> To use the onion service with apt, replace the address in the previously added lines:
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

220) <pre style="margin: 1.5em 0 1.5em 2em">.
221) # For the stable version.
222) deb tor://sdscoq7snqtznauu.onion/torproject.org buster main
223) 
224) # For the unstable version.
225) deb tor://sdscoq7snqtznauu.onion/torproject.org tor-nightly-master-&lt;DISTRIBUTION&gt; main
226) </pre>
hiro Add deb.tpo onion service a...

hiro authored 6 years ago

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

hiro authored 6 years ago

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

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

Traumschule authored 5 years ago

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

Andrew Lewman authored 13 years ago

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

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

Andrew Lewman authored 13 years ago

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

hiro authored 6 years ago

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

Andrew Lewman authored 13 years ago

245) 
246) # For the unstable version.
hiro Fix no script version of de...

hiro authored 6 years ago

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

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

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

nusenu authored 6 years ago

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

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

Matt Pagan authored 9 years ago

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

hiromipaw authored 6 years ago

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

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

Peter Palfrader authored 12 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Iain R. Learmonth authored 6 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

270) sudo dpkg -i tor_*.deb
271) </pre>
272) </p>
273) 
274) <p>
275) 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

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

277) instructions.
278) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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