From 6caf73feca4db762d0d5cbf0731130fb1dd091e9 Mon Sep 17 00:00:00 2001 From: Anoir Ben Tanfous Date: Thu, 22 Sep 2022 01:13:54 -0400 Subject: [PATCH] Fix "No such file or directory" errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When you run the scripts you can have these errors sudo: unable to execute ./extract_gapps_pico.sh: No such file or directory OR -bash: ./extract_gapps_pico.sh: /bin/bash^M: bad interpreter: No such file or directory This command would fix it 👍🏼 sed -i -e 's/\r$//' ./*.sh --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a1f071f..e119f00 100644 --- a/README.md +++ b/README.md @@ -199,12 +199,18 @@ Verify that your scripts are executable by running `ls -l` and checking that you Make sure you're in the same directory as in the step before, the run: ```bash -./extract_gapps_pico.sh +sudo ./extract_gapps_pico.sh sudo ./extend_and_mount_images.sh sudo ./apply.sh sudo ./unmount_images.sh ``` +Note : If you get these errors sudo: unable to execute ./extract_gapps_pico.sh: No such file or directory OR "-bash: ./extract_gapps_pico.sh: /bin/bash^M: bad interpreter: No such file or directory" on execution then do this before and run again. + +```bash +sed -i -e 's/\r$//' ./*.sh +``` + ## Copy the edited images After successful execution, you can now copy edited images from `C:\WSA\WSAGAScript\#IMAGES` back to `C:\WSA\MicrosoftCorporationII.WindowsSubsystemForAndroid_1.8.32822.0_neutral___8wekyb3d8bbwe\WsaPackage_1.8.32822.0_x64_Release-Nightly` (example, the folder from where you have taken the images).