[tor-commits] [nyx/master] FAQ entry for why apt-get doesn't work

atagar at torproject.org atagar at torproject.org
Wed Apr 4 23:09:33 UTC 2018


commit 41b85f7c7c796d2190f839ef0910333f46baa5b5
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Apr 4 16:06:51 2018 -0700

    FAQ entry for why apt-get doesn't work
    
    This has caused confusion pretty frequently. Explaining why apt-get often
    doesn't work...
    
      https://trac.torproject.org/projects/tor/ticket/25704
---
 web/index.html | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/web/index.html b/web/index.html
index 22c32e2..3618a6e 100644
--- a/web/index.html
+++ b/web/index.html
@@ -161,6 +161,21 @@
           </div>
         </li>
 
+        <li id="no_apt_get">
+          <span>Why can't I install with apt-get?</span>
+          <div class="answer">
+            <p>Installing with Debian and Ubuntu might fail with...</p>
+            <pre>% sudo apt-get install nyx
+Reading package lists... Done
+Building dependency tree
+Reading state information... Done
+E: Unable to locate package nyx</pre>
+            <br>
+            <p>If so, Nyx is not yet available in your distribution's repositories. Nyx is present in <a href="https://packages.debian.org/sid/nyx">Debian Sid</a> and <a href="https://launchpad.net/ubuntu/+source/nyx">Ubuntu 2.0.4 (Bionic)</a>, but it will take time before it's available elsewhere.</p>
+            <p>In the meantime if you see the above we suggest installing with '<b>sudo pip install nyx</b>' instead.</p>
+          </div>
+        </li>
+
         <li id="report_bug">
           <span>How can I report a bug?</span>
           <div class="answer">
@@ -353,7 +368,7 @@ sudo python setup.py install</pre><br></li>
       <div class="platform">
         <a href="http://packages.debian.org/sid/nyx" id="debian"><img src="images/download/debian.png" alt="Debian"></a>
         <a href="http://packages.debian.org/sid/nyx" class="platform-title">Debian</a>
-        <p>Package maintained by Dererk for Debian.</p>
+        <p>Package maintained by Dererk for Debian. Use <a class="faq_no_apt_get" href="#no_apt_get">sudo pip install nyx</a> if this doesn't work.</p>
         <pre>% sudo apt-get install nyx</pre>
       </div>
 
@@ -825,6 +840,12 @@ logged_events BW, NOTICE, WARN, ERR
         toggleFaq($(this).parent().find('.answer'));
       });
 
+      $('.faq_no_apt_get').click(function() {
+        $(".tabs").data("tabs").click("faq");
+        toggleFaq($('#no_apt_get > .answer'));
+        document.getElementById('no_apt_get').scrollIntoView();
+      });
+
       // when provided an anchor select the tab it resides within
 
       var anchor = window.location.hash;





More information about the tor-commits mailing list