Can I specify Ubuntu 22.04 and ban Github copilot? #184594
Replies: 3 comments 3 replies
-
|
Yes, both are possible. ✅ Specify Ubuntu version You can control the OS version using a devcontainer.json file in your repo: { Codespaces will then always use Ubuntu 22.04 for that repository. ✅ Disable GitHub Copilot You can disable Copilot in Codespaces by: Turning it off in GitHub settings → Copilot → Disable Or uninstalling the Copilot extension inside the Codespace. For org/class projects, admins can also block Copilot via organization policies. Why OS changes GitHub updates default images over time, so older Codespaces stay on old Ubuntu while new ones use newer versions. Summary Use devcontainer.json to lock Ubuntu version. Disable Copilot in settings or extensions. |
Beta Was this translation helpful? Give feedback.
-
|
To add one nuance: Codespaces never guarantees a stable “default” base image — if you care about reproducibility (e.g., for a course environment), you really do need to declare the base image in a gives you deterministic Ubuntu 22.04 regardless of when the Codespace is created. You can also go further and pin toolchains, shells, package versions, or even disable updates entirely by switching to Dockerfile-based builds. On the Copilot side: disabling from settings or uninstalling the extension works for individuals; for academic settings where Copilot is considered assistance, instructors can enforce a policy at the organization level so students don’t have to manually police their environment. Out of curiosity, are you looking to standardize the environment only for yourself, or for an entire class cohort so everyone runs identical Ubuntu images during evaluation? |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I found that the Ubuntu OS version is different and it seems that it depends on when I creates the codespace.
I just create one and it is Ubuntu 24.04.3 LTS, while the codespace I created last year is Ubuntu 20.04.
Is that possible to specify Ubuntu version? I am doing course projects so it would be great to specify Ubuntu version and ban Github copilot (it would be considerred as cheating...)
Beta Was this translation helpful? Give feedback.
All reactions