These instructions were used for the Debian repositories, but we
neglected to also use them for Ubuntu.
Also, while at it, use a separate file in /etc/apt/sources.list.d
instead of appending to the system-wide /etc/apt/sources.list, and use
grep+cut instead of lsb_release(1) which may not be installed on
minimal Ubuntu installations (the xenial Docker image lacks it, for
example).
release of i3. To use it, run the following commands:
---------------------------------------------------------------------------------
-# echo "deb http://debian.sur5r.net/i3/ $(lsb_release -c -s) universe" >> /etc/apt/sources.list
-# apt-get update
-# apt-get --allow-unauthenticated install sur5r-keyring
-# apt-get update
-# apt-get install i3
+$ /usr/lib/apt/apt-helper download-file http://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2017.01.02_all.deb keyring.deb SHA256:4c3c6685b1181d83efe3a479c5ae38a2a44e23add55e16a328b8c8560bf05e5f
+# apt install ./keyring.deb
+# echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" >> /etc/apt/sources.list.d/sur5r-i3.list
+# apt update
+# apt install i3
---------------------------------------------------------------------------------
All Ubuntu versions which are currently supported by Ubuntu itself are also supported by
release of i3. To use it, run the following commands:</p></div>\r
<div class="listingblock">\r
<div class="content">\r
-<pre><tt># echo "deb http://debian.sur5r.net/i3/ $(lsb_release -c -s) universe" >> /etc/apt/sources.list\r
-# apt-get update\r
-# apt-get --allow-unauthenticated install sur5r-keyring\r
-# apt-get update\r
-# apt-get install i3</tt></pre>\r
+<pre><tt>$ /usr/lib/apt/apt-helper download-file http://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2017.01.02_all.deb keyring.deb SHA256:4c3c6685b1181d83efe3a479c5ae38a2a44e23add55e16a328b8c8560bf05e5f\r
+# apt install ./keyring.deb\r
+# echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" >> /etc/apt/sources.list.d/sur5r-i3.list\r
+# apt update\r
+# apt install i3</tt></pre>\r
</div></div>\r
<div class="paragraph"><p>All Ubuntu versions which are currently supported by Ubuntu itself are also supported by\r
this repository. See <a href="https://wiki.ubuntu.com/Releases">Ubuntu releases</a> for details.</p></div>\r