Skip to content

Commit 0a2f13d

Browse files
authored
Merge pull request #121792 from KuSh/patch-1
Update functions-install-core-tools.md
2 parents 85b811f + dd6af42 commit 0a2f13d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

includes/functions-install-core-tools.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,20 @@ The following steps use [APT](https://wiki.debian.org/Apt) to install Core Tools
5151
##### Ubuntu
5252

5353
```bash
54-
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
54+
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs 2>/dev/null)-prod $(lsb_release -cs 2>/dev/null) main" > /etc/apt/sources.list.d/dotnetdev.list'
5555
```
5656

5757
##### Debian
5858

5959
```bash
60-
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -f 1)/prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
60+
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/debian/$(lsb_release -rs 2>/dev/null | cut -d'.' -f 1)/prod $(lsb_release -cs 2>/dev/null) main" > /etc/apt/sources.list.d/dotnetdev.list'
6161
```
6262

6363
1. Check the `/etc/apt/sources.list.d/dotnetdev.list` file for one of the appropriate Linux version strings in the following table:
6464

6565
| Linux distribution | Version |
6666
| -------------------------- | ---------- |
67+
| Debian 12 | `bookworm` |
6768
| Debian 11 | `bullseye` |
6869
| Debian 10 | `buster` |
6970
| Debian 9 | `stretch` |

0 commit comments

Comments
 (0)