Skip to content

Instantly share code, notes, and snippets.

@kkbruce
Last active July 7, 2024 09:25
Show Gist options
  • Select an option

  • Save kkbruce/6c2f5ad4c520c3345ddcae6bf0e71f33 to your computer and use it in GitHub Desktop.

Select an option

Save kkbruce/6c2f5ad4c520c3345ddcae6bf0e71f33 to your computer and use it in GitHub Desktop.
Run WSL - Ubuntu "atp update && atp upgrade" command from Windows command line
REM wsl.exe -d Ubuntu-18.04
wsl sudo apt update && sudo apt upgrade
@carehart
Copy link
Copy Markdown

carehart commented Jul 6, 2024

For any who find this and may want to run those apt update/upgrade commands via wsl from the Windows commandline, this works:

wsl sh -c "sudo apt update && sudo apt upgrade -y"

Trying it without the sh -c and/or without the quotes will get different errors.

@kkbruce
Copy link
Copy Markdown
Author

kkbruce commented Jul 7, 2024

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment