Giter Club home page Giter Club logo

Comments (18)

aaron-is-the-best2114 avatar aaron-is-the-best2114 commented on May 28, 2024 2

I tried it again earlier today and I was successful. Thanks for the help.

from wor-flasher.

aaron-is-the-best2114 avatar aaron-is-the-best2114 commented on May 28, 2024 1

Sorry, I haven't got a chance to try it again, school just started for me, so I've been busy. I'll get back to you either later today or tomorrow morning.

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

Very interesting issue. My script was supposed to install those packages, so the fact that it's not is strange.

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

This appears to be some sort of bug in the install_packages function, though I have not been able to reproduce it.

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

@aaron-is-the-best2114, could you try something for me?

First of all, thank you for the thorough information you've provided. Most people do not provide as much debug information as you have, and it makes things more difficult on me/us.

If you installed the packages the error output recommended, please uninstall them for this test. Then let's see how your system handles the install_packages function. Please run this in a terminal:

source ~/wor-flasher/install-wor.sh source
install_packages 'yad aria2 cabextract wimtools chntpw genisoimage exfat-fuse exfat-utils wget udftools'

If ANY of the above packages are not already installed, the install_packages function should install them automatically. If that does not happen, then I need to understand why.

from wor-flasher.

aaron-is-the-best2114 avatar aaron-is-the-best2114 commented on May 28, 2024

I will try that as soon as possible, Thanks for the help. I'll let you know if it works.

from wor-flasher.

aaron-is-the-best2114 avatar aaron-is-the-best2114 commented on May 28, 2024

@Botspot It's still saying one of the packages are not installed.
Any Ideas?

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

@Botspot It's still saying one of the packages are not installed.
Any Ideas?

Which package is it?

from wor-flasher.

aaron-is-the-best2114 avatar aaron-is-the-best2114 commented on May 28, 2024

It doesn't specify what package is not installed.
This script you gave me gave me no errors whatsoever.
Here's what it says when I tried to install windows again:

Generating Windows image with uupdump
One of required applications is not installed.
The following applications need to be installed to use this script:

  • aria2c
  • cabextract
  • wimlib-imagex
  • chntpw
  • genisoimage or mkisofs

If you use Debian or Ubuntu you can install these using:
sudo apt-get install aria2 cabextract wimtools chntpw genisoimage

If you use Arch Linux you can install these using:
sudo pacman -S aria2 cabextract wimlib chntpw cdrtools

uup_download_linux.sh failed, most likely due to unreliable Internet.
Trying again in 1 minute. (Attempt 1 of 4)

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

I've adapted some code from the script to a debugging version that you can run in a terminal.

dependencies='yad aria2 cabextract wimtools chntpw genisoimage exfat-fuse exfat-utils wget udftools'
install_list=''

PREIFS="$IFS"
IFS=' '
for package in $dependencies ;do
  if ! dpkg -s "$package" 2>/dev/null | grep -q 'Status: install ok installed' ;then
    echo "Package $package is uninstalled."
    #if the currently-checked package is not installed, add it to the list of packages to install
    if [ -z "$install_list" ];then
      install_list="$package"
    else
      install_list="$install_list $package"
    fi
  else
    echo "Package $package is already installed."
  fi
done
IFS="$PREIFS"

echo "Finished install_list: $install_list"

sudo apt install --dry-run yad aria2 cabextract wimtools chntpw genisoimage exfat-fuse exfat-utils wget udftools

Please paste all of the above code into a terminal and reply with the full output.

from wor-flasher.

aaron-is-the-best2114 avatar aaron-is-the-best2114 commented on May 28, 2024

Here is the output:

output.txt

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

Thank you for running those debug commands.

Based on them I have figured out that it's not a package issue at all - it's an issue with the chntpw command.
To prove my point, run this:

chntpw

If my theory is right, that command will not work.
And yet, chntpw is installed. Your output.txt says: "chntpw is already the newest version (1.0-1.1)."

Someone else had this same issue on TwisterOS. The chntpw command is installed to /usr/sbin - an uncommon directory to store commands.
On default Raspberry Pi OS, this isn't an issue. The /usr/sbin directory is included in the $PATH variable, meaning that when you run a command it will look in that folder. On TwisterOS however, it appears to not be including the /usr/sbin directory in the $PATH variable.

Let's check this on your system. Please run this command and reply with the output:

echo $PATH

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

I've just added some new lines to the script to automatically add /usr/sbin to your PATH variable before running uup_download_linux.sh. Let me know if this ended up fixing your problem.

from wor-flasher.

aaron-is-the-best2114 avatar aaron-is-the-best2114 commented on May 28, 2024

So I tried it again and at first it actually started to work, but after about 2 minutes into installing windows it signed me out of the Pi to the login screen. So when I logged back in I got this pop-up error:

20210906_192358

So I tried it again and my screen went black as if it was logging me out as before and this time it auto logged me back in this time and I got the same pop-up error.

Here is the echo $PATH results:

/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

So I tried it again and at first it actually started to work

Great! With this change, WoR-flasher now works on TwisterOS. Thanks for the help with that.

So I tried it again and at first it actually started to work, but after about 2 minutes into installing windows it signed me out of the Pi to the login screen. So when I logged back in I got this pop-up error:

So I tried it again and my screen went black as if it was logging me out as before and this time it auto logged me back in this time and I got the same pop-up error.

This is not an issue with WoR-flasher, this is an issue with your setup and how it behaves under heavy load.
Is your Pi overclocked? If it is, turn all overclocking off and then reboot.
What power supply are you using? How often do you see the yellow lightning-bolt in the corner?
Do you have any cooling fans connected to your GPIO pins? If so, remove them.
Do you monitor the Pi's USB ports? If a USB-connected device consumes too much power, the Pi's USB ports will shut off. In some circumstances, this shutting-off action will crash your system.

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

Any updates, @aaron-is-the-best2114?

from wor-flasher.

vk474 avatar vk474 commented on May 28, 2024

from wor-flasher.

Botspot avatar Botspot commented on May 28, 2024

I tried it again earlier today and I was successful. Thanks for the help.

Excellent! Enjoy Windows 10!

from wor-flasher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.