This pre-existing question on askubuntu.com purports to solve the problem of installing the reboot of HTML Tidy: . However, when I followed the accepted answer's instructions on Xenial 16.04.2, I encountered a problem that was not covered there, so am creating a new question.  I do the following:  wget https://github.com/htacg/tidy-html5/releases/download/5.4.0/tidy-5.4.0-64bit.deb sudo dpkg -i tidy-5.4.0-64bit.deb   and get this error:  dpkg: error processing archive tidy-5.4.0-64bit.deb (--install): trying to overwrite '/usr/lib/libtidy.so', which is also in package libtidy-0.99.0 2009 1223cvs-1.5   I do not already have the older tidy package installed, but I went through the motions of uninstalling it anyway:  sudo apt-get -y autoremove tidy Package 'tidy' is not installed, so not removed   No change in ability to install tidy 5.4.0 afterwards, or the error message that ensues.   Here is the result of apt-cache policy:  apt-cache policy libtidy-0.99-0 libtidy-0.99-0:   Installed: 20091223cvs-1.5   Candidate: 20091223cvs-1.5   Version table:   *** 20091223cvs-1.5 500   500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages   100 /var/lib/dpkg/status
For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.
How to make files protected? Joris and Srikant's exchange  got me wondering (again) if my internal explanations for the difference between confidence intervals and credible intervals were the correct ones.  How you would explain the difference? What is the difference between "accumulative" and "cumulative"? I'm having a hard time understanding the real distinction between  and .  accumulative     adjective         tending to accumulate or arising from accumulation; cumulative.   tending to accumulate wealth; acquisitive.      cumulative     adjective         increasing or growing by accumulation or successive additions: the cumulative effect of one rejection after another.   formed by or resulting from accumulation or the addition of successive parts or elements.   of or pertaining to interest or dividends that, if not paid when due, become a prior claim for payment in the future: cumulative preferred stocks.      These definitions (and those from other dictionaries as well) say different things but I can't understand how they aren't really meaning the same thing.  Yet, when thinking about it, it seems there are some cases where it is distinctly more correct to use one or the other.  What's the difference, practically? The class will be over in 10 minutes. The class will be over after 10 minutes.  I know the first is correct but why? The spell was cast without words, simply a flick of the Death Eater's wand, and a 'streak of purple flame' that lanced across her chest. It was later mentioned that the spell was weakened because of the lack of a verbal component, but still 'did enough damage as it was'. She was in the infirmary healing from the damage for some time. What spell was this? FME - Calculate distance of point along a line I have created an FME workspace which inputs a pipeline as well as other linear features which cross it (waterways, roads, railways, fences, other pipelines, etc).  The output is a point file which contains the crossing type.  What I would like to do is calculate the distance along the pipe from the start of the pipeline for each intersection.  So, as you travel along the pipeline, the distance attribute will increase.   I'm thinking that I'll need to use some of the linear referencing tools like MeasureGenerator, MeasureExtractor, or something like that, but I'm not sure how to do so.  Does anyone have an idea of how to do this? Probability that an integer number having Poisson distribution is even The probability $P(X=n)$ that an event X takes place $n$ times in a fixed period of time follows the Poisson distribution with parameter $\lambda$ i.e.  $$ P(X = n) = e^{-\lambda} \frac{\lambda ^ n}{n!}$$  I have to evaluate the probability that the event $X$ takes place an even number of times. I know that:   $$ P(X \text{ is even} ) = e^{-\lambda} \cdot \sum_{k=0}^{+\infty} \frac{\lambda^{2k}}{(2k)!}$$  but I can't solve the series.  I guess that I have to use the fact that $e^\lambda = \sum_{n = 0}^{+\infty} \lambda^n/n!$, but I got stuck.  How can I evaluate $P(X \text{ is even})$ (alternative solutions appreciated). Find an element by id and replace its contents with php How does accepting an answer work? How can I get my external IP address in a shell script? How to get a list of all the labels in a LaTeX document in WinEdt I am writing a large document using LaTeX and WinEdt.  I have labeled each chapter, section and so on.  I would like to print out a list of just the labels (so that I don't duplicate one later on, and so that I have it handy in order to write \refs).    Is there a way to do this? so I've recently installed my first Ubuntu, to be precise, a daily build of 16.04, on my new laptop since the hardware was to new for 15.10. Now I'm in the process of setting it up and I want to install php5 and some extensions.  When I execute sudo apt-get install libapache2-mod-php5 I get the error message that there is no installation package available for php5 and libapache2.  The error message is in german, so I doubt that this would help, but anyways here it is. :-) E: For package »libapache2-mod-php5« existiert kein Installationskandidat.  Do I need to add a apt-get repository? Or what am I doing wrong? Sending the output from 'dd' to awk/sed/grep I'm trying to approximate the computer's write speed using dd:  dd if=/dev/urandom of=/dev/null bs=1K count=10000   which gives the following output  10000+0 records in 10000+0 records out 10240000 bytes (10 MB) copied, 0.746313 s, 13.7 MB/s   How can I get the '13.7 MB/s' into a bash variable? I've tried piping the output from dd to progs like awk, sed and grep to no avail.  Ultimately, I'm calling this via os.system(...) from within a python script. If anyone knows of a more direct way to get a similar result inside python I'd be interested in that also. I'm trying to predict how long a file copy will take, based on the file size.  Any help would be greatly appreciated. Reverse (parse the output) of Arrays.toString(int[]) How can I stand on the ground? EM or/and Pauli? When do I pronounce a non-existent “r” between adjacent vowel sounds? If I say two words consecutively, with the first ending in a vowel sound and the second starting with one, when is it correct to include a non-existent r between those two words?  Examples from phrases I've heard:        I saw (r)a movie   They saw (r)us   Law (r)and order   That's the idea, (r)anyway.      I heard the last one in the movie Edge of Tomorrow yesterday.  Is this grammatically correct? If so, is the omission of the r grammatically incorrect? Are there any rules regarding this? When we define the S-matrix, what are "in" and "out" states? I have seen the scattering matrix defined using initial ("in") and final ("out") eigenstates of the free hamiltonian, with  $$\left| \vec{p}_1 \cdots \vec{p}_n \; \text{out} \right\rangle = S^{-1} \left| \vec{p}_1 \cdots \vec{p}_n \; \text{in} \right\rangle$$  so that  $$\left\langle \vec{p}_1 \cdots \vec{p}_n \; \text{out} \mid \vec{q}_1 \cdots \vec{q}_m \; \text{in} \right\rangle = \left\langle \vec{p}_1 \cdots \vec{p}_n \; \text{in} \mid S \mid \vec{q}_1 \cdots \vec{q}_m \; \text{in} \right\rangle.$$  1) What are "in" and "out" states?   2) Are they Fock states?   3) In Schrödinger or Heisenberg or interaction representation?   4) How are they related? (I believe that I see what they handwavily represent physically, but not formally.)  My main issue is that, if "in" and "out" states are one-particle eigenstates of the free hamiltonian, i.e. if $\left| \vec{p}_1 \text{out} \right\rangle$ describes a free particle with momentum $\vec{p}_1$, and $\left| \vec{p}_1 \text{in} \right\rangle$ also describes a free particle with momentum $\vec{p}_1$, then $\left| \vec{p}_1 \text{out} \right\rangle = \left| \vec{p}_1 \text{in} \right\rangle$ ... which is false. Still, books (some at least) describe these "in" and "out" states like that.  Moreover, I have seen (e.g. in Wikipedia, but also ) that the scattering matrix is a map between two different Fock states, and I don't understand that.   5) Do states of the interacting system live in the same Fock space that asymptotic free states?   6) And if not, where do they live?  Understandable references would be appreciated. \numcases with \tag I would like to label some cases with specific tags, and was hoping for something like  \begin{numcases}{A = } \frac{r}{a} &amp; r &gt; a \tag{G} \\ \frac{a}{r} &amp; r &lt; a \tag{H} \end{numcases}   utilizing the numcasesenvironment from the cases package, and \tag from amsmath. However, the two don't seem to be compatible:     ! Package amsmath Error: \tag not allowed here.   Is there any alternatives that would do what I hope to accomplish? WhatsApp for Ubuntu Phone? Does someone know if there already is a WhatsApp Version for Ubuntu Phone? I decided to install Ubuntu on my Android, but I don't want to use my phone without WhatsApp. Is it possible for moderators to review more than the daily limited count?