githubtraining / training-manual

Home of the words in the GitHub Training Manual and teaching scripts.
https://githubtraining.github.io/training-manual
Creative Commons Attribution 4.0 International
273 stars 274 forks source link

Running Training Scripts in WSL issues #361

Open mblack88 opened 2 years ago

mblack88 commented 2 years ago

While setting up a new development/training environment I am having issues with the version of the scrips on the main branch. Creating this issue as a place to hold the discussion. Initially the items I am running into:

My long term goal is to get the base training environment running in a container so that replicating the training material across my teams is easier, and makes setting up new machines easier.

I would love to collaborate with someone on this, or learn where I have made some mistakes in the setup.

The setup has changed a bit from the version we have been using, and I haven't actually trained in over a year and a half.

ppremk commented 2 years ago

@mblack88 thank you for opening this issue, @dzeyelid has been working on a solution for this. @dzeyelid is there possibilities to collaborate with @mblack88 to test your solution?

dzeyelid commented 2 years ago

Thank you @ppremk introducing me.

I got similar errors, so I'm creating a development container environment in my PR lefthandz-githubtraining/training-manual#8 and talking with @ppremk to improve it. (After finishing the improvement, I'll send a PR to this repository with the updates.)

In the environment, the http --quiet argument is available and your issue that is required username and password does not occur.

If you would like to check the environment, you can fork my repository and run scripts on the branch workspace.

jessehouwing commented 2 years ago

I upgraded my WSL to ubuntu-jammy, which fixes all issues, mine was on ubuntu 18LTS, but switching to 22LTS made my issues go away. I also repaired the codespaces to sun the correct version. See: https://github.com/githubtraining/training-manual/pull/378

steps to upgrade to ubuntu jammy:

sudo bash
apt-get update
apt-get upgrade
apt-get remove snapd
do-release-upgrade
apt-get autoremove

To go from 18 to 22 I had to run these steps twice.