1
0
Fork 0
mirror of https://github.com/eosswedenorg/apt synced 2026-06-16 04:34:56 +02:00

_includes/apt-add.html: adding special case for Ubuntu Focal users that want to use bionic.

This commit is contained in:
Henrik Hautakoski 2020-12-29 14:23:14 +01:00
parent 7e0b9d175b
commit 2251d03858

View file

@ -1,19 +1,29 @@
{% assign apt-add_domain = include.domain | default: site.apt.domain %}
{% if include.distribution != 'focal' %}
<blockquote>
<h4>If you are on Ubuntu 20.04 (focal) do this</h4>
{% highlight bash %}
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/i/icu/libicu60_60.2-3ubuntu3.1_amd64.deb
sudo dpkg -i ./libicu60_60.2-3ubuntu3.1_amd64.deb
sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} bionic {{ include.components }}'{% endhighlight %}
</blockquote>
{% endif %}
{% if include.distribution %}
{% highlight bash %}
sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} {{ include.distribution }} {{ include.components }}'{% if include.update == true %}
sudo apt-get update{% endif %}
{% endhighlight %}
{% else %}
<h4>For bash like shells.</h4>
{% highlight bash %}
# For Bash like shells.
sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} `lsb_release -cs` {{ include.components }}'{% if include.update == true %}
sudo apt-get update{% endif %}
{% endhighlight %}
<h4>If you are using fish</h4>
{% highlight bash %}
# If you are using fish
sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }}' (lsb_release -cs) '{{ include.components }}'{% if include.update == true %}
sudo apt-get update{% endif %}
{% endhighlight %}