Skip to content

Commit b1f32ab

Browse files
authored
DOCSP-23444 https sources list (#2756) (#2782)
* DOCSP-23444 Switches repository for Debian/Ubuntu from http to https * Adds apt-transport-https install step for Xenial
1 parent f8b36a0 commit b1f32ab

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

source/includes/steps-install-mongodb-enterprise-on-debian.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,21 @@ content: |
2020
2121
.. code-block:: bash
2222
23-
echo "deb http://repo.mongodb.com/apt/debian buster/mongodb-enterprise/{+version+} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
23+
echo "deb https://repo.mongodb.com/apt/debian buster/mongodb-enterprise/{+version+} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
2424
2525
.. tab:: Debian 9 "Stretch"
2626
:tabid: debian-9-stretch
2727
2828
.. code-block:: bash
2929
30-
echo "deb http://repo.mongodb.com/apt/debian stretch/mongodb-enterprise/{+version+} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
30+
echo "deb https://repo.mongodb.com/apt/debian stretch/mongodb-enterprise/{+version+} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
31+
32+
33+
Install the ``apt-transport-https`` package:
34+
35+
.. code-block:: bash
36+
37+
apt install apt-transport-https
3138
3239
If you'd like to install MongoDB Enterprise packages from a
3340
particular :ref:`release series <release-version-numbers>`, you can
@@ -44,14 +51,22 @@ content: |
4451
4552
.. code-block:: bash
4653
47-
echo "deb http://repo.mongodb.com/apt/debian buster/mongodb-enterprise/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise-4.2.list
54+
echo "deb https://repo.mongodb.com/apt/debian buster/mongodb-enterprise/{+version-last+} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise-{+version-last+}.list
4855
4956
.. tab:: Debian 9 "Stretch"
5057
:tabid: debian-9-stretch
5158
5259
.. code-block:: bash
5360
5461
echo "deb http://repo.mongodb.com/apt/debian stretch/mongodb-enterprise/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise-4.2.list
62+
63+
Install the ``apt-transport-https`` package:
64+
65+
.. code-block:: bash
66+
67+
apt install apt-transport-https
68+
69+
5570
---
5671
stepnum: 3
5772
level: 4

source/includes/steps-install-mongodb-enterprise-on-ubuntu.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ content: |
2727
2828
.. code-block:: bash
2929
30-
echo "deb [ arch=amd64,arm64,s390x ] http://repo.mongodb.com/apt/ubuntu focal/mongodb-enterprise/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
30+
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu focal/mongodb-enterprise/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
3131
3232
- id: bionic
3333
name: Ubuntu 18.04 (Bionic)
@@ -40,7 +40,7 @@ content: |
4040
4141
.. code-block:: bash
4242
43-
echo "deb [ arch=amd64,arm64,s390x ] http://repo.mongodb.com/apt/ubuntu bionic/mongodb-enterprise/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
43+
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu bionic/mongodb-enterprise/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
4444
4545
- id: xenial
4646
name: Ubuntu 16.04 (Xenial)
@@ -53,7 +53,13 @@ content: |
5353
5454
.. code-block:: bash
5555
56-
echo "deb [ arch=amd64,arm64,s390x ] http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
56+
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
57+
58+
Install the ``apt-transport-https`` package:
59+
60+
.. code-block:: bash
61+
62+
apt install apt-transport-https
5763
5864
---
5965
stepnum: 3

0 commit comments

Comments
 (0)