Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/sbin missing in $PATH causes script to fail when script tries to run virt-what #262

Closed
Warbolt opened this issue Nov 12, 2021 · 6 comments · Fixed by #310
Closed

/usr/sbin missing in $PATH causes script to fail when script tries to run virt-what #262

Warbolt opened this issue Nov 12, 2021 · 6 comments · Fixed by #310
Labels
bug Something isn't working wings wings
Projects
Milestone

Comments

@Warbolt
Copy link

Warbolt commented Nov 12, 2021

hey,

i don't know but i had issues with virt-what at line 293.
it doesn't worked for me (freshly installed Debian 10).

My solution:
git clone https://github.com/vilhelmprytz/pterodactyl-installer.git
nano install-wings.sh
go to line 293 and add sudo to virt_serv=$(sudo virt-what) -> save + exit
./install.sh

after that it worked for me. maybe for some other this is an issue, too.


update: sorry, nvm didn't worked.

@vilhelmprytz
Copy link
Member

Can you please provide logs for the problem you are experiencing?

@AamiRobin
Copy link

This is because your specific installation doesn't have sbin in PATH. As a temporary solution, you can use

export PATH="$PATH:/sbin:/usr/sbin"

And run wings script again

@Linux123123
Copy link
Member

With the amount of problems we have I think we should just export PATH="$PATH:/sbin:/usr/sbin" in the script by default.

@ZEROPOINTBRUH
Copy link

  • Installing virt-what...
    /dev/fd/62: line 311: virt-what: command not found

@vilhelmprytz
Copy link
Member

I assume this issue depends on which way you became root on your system (i.e. sudo -i, sudo su, just directly logging in as root, etc).

@Linux123123 I don't think adding export PATH="$PATH:/sbin:/usr/sbin" would be too harmful, the other option is to simply run /usr/sbin/virt-what directly. Either way, this should be fixed.

@vilhelmprytz vilhelmprytz changed the title virt-what issue at line 293 /usr/sbin missing in $PATH causes script to fail when script tries to run virt-what Jan 6, 2022
@vilhelmprytz vilhelmprytz added bug Something isn't working wings wings labels Jan 6, 2022
@vilhelmprytz vilhelmprytz added this to the v1.0.0 milestone Jan 6, 2022
@vilhelmprytz vilhelmprytz added this to To do in v1.0.0 via automation Jan 6, 2022
@vilhelmprytz
Copy link
Member

fixed in #310

v1.0.0 automation moved this from To do to Done Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wings wings
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants