cdot65 / pan-os-upgrade

An efficient tool to execute configuration backups, network state snapshots, system readiness checks, and operating system upgrades of Palo Alto Networks firewalls and Panorama appliances.
https://cdot65.github.io/pan-os-upgrade/
Apache License 2.0
39 stars 7 forks source link

added troubleshooting section for WSL2 issues #64

Closed cdot65 closed 7 months ago

cdot65 commented 7 months ago

Added troubleshooting section for WSL2 issues around using en-utf:

To resolve the "unsupported locale setting" error in a WSL2 instance when running your Python script, you'll need to ensure the en_US.UTF-8 locale is available and generated on your system. This error typically occurs because the specified locale isn't installed or generated on the Linux system within WSL2.

Follow these steps to generate the locale:

Open your WSL2 terminal.

After generating the locale, you can verify it's available by running locale -a in the terminal. You should see en_US.UTF-8 in the list.

Once the locale is set up correctly, try running your Python script again. This should resolve the locale-related error. If the issue persists, make sure your Python environment is correctly set up and consider adding the locale setting commands to your .bashrc or .profile to automate the process upon starting WSL2.