Skip to content

Commit 44c196d

Browse files
richlanderCopilotleecow
authored
Document Ubuntu backports prerequisite (#10375)
* Document Ubuntu backports prerequisite Add software-properties-common to the Ubuntu backports setup command and explain why it is needed in minimal/container environments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Reduce formatting noise in Ubuntu backports docs Restore the original spacing/layout in the touched markdown files so the PR shows only the Ubuntu backports prerequisite changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Lee Coward <leecow@microsoft.com>
1 parent d9ec8f2 commit 44c196d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/skills/update-distro-packages/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Optional fields on each release (populated by package availability queries):
141141
],
142142
"dotnet_packages_other": {
143143
"backports": {
144-
"install_command": "sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update",
144+
"install_command": "sudo apt-get install -y software-properties-common && sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update",
145145
"packages": [
146146
{ "component": "sdk", "name": "dotnet-sdk-11.0" }
147147
]
@@ -324,7 +324,7 @@ Then `ubuntu.json` release 24.04 becomes:
324324
],
325325
"dotnet_packages_other": {
326326
"backports": {
327-
"install_command": "sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update",
327+
"install_command": "sudo apt-get install -y software-properties-common && sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update",
328328
"packages": [
329329
{ "component": "sdk", "name": "dotnet-sdk-10.0" }
330330
]
@@ -425,10 +425,10 @@ When packages come from a non-builtin feed, the `install_command` field tells us
425425
Feed name: `backports`
426426

427427
```bash
428-
sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update
428+
sudo apt-get install -y software-properties-common && sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update
429429
```
430430

431-
This PPA provides .NET packages for older Ubuntu LTS releases that don't carry .NET in the default archive. After registering, packages are installed with the normal `apt-get install` command.
431+
This PPA provides .NET packages for older Ubuntu LTS releases that don't carry .NET in the default archive. `add-apt-repository` comes from `software-properties-common`, which is often missing in containers and other minimal environments. After registering, packages are installed with the normal `apt-get install` command.
432432

433433
### Microsoft packages.microsoft.com (PMC)
434434

release-notes/10.0/distros/ubuntu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
"name": "dotnet-aspnetcore-runtime-10.0"
212212
}
213213
],
214-
"install_command": "sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update"
214+
"install_command": "sudo apt-get install -y software-properties-common && sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update"
215215
}
216216
}
217217
}

release-notes/10.0/dotnet-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ sudo apt-get install -y \
218218
Register the feed:
219219

220220
```bash
221-
sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update
221+
sudo apt-get install -y software-properties-common && sudo add-apt-repository ppa:dotnet/backports && sudo apt-get update
222222
```
223223

224224
```bash

0 commit comments

Comments
 (0)