ubuntu-mainline-kernel.sh icon indicating copy to clipboard operation
ubuntu-mainline-kernel.sh copied to clipboard

[bug] or [syntax error] on line 725 $sudo instead of sudo make script not to install upgrading kernel

Open harlock59300 opened this issue 5 years ago • 3 comments

[bug] or [syntax error] on line 725 $sudo instead of sudo make script not to install upgrading kernel

harlock59300 avatar Oct 12 '20 23:10 harlock59300

That's very little information. Are you running the latest version of the script? What's the command you're calling? What's the exact output? How does line 725 look like in its entirety?

gothicVI avatar Oct 13 '20 09:10 gothicVI

the complete line is "$sudo dpkg -i "${debs[@]}" >$debug_target 2>&1"

i may be wrong but is be "sudo dpkg -i "${debs[@]}" >$debug_target 2>&1"

harlock59300 avatar Oct 22 '20 22:10 harlock59300

Take a look at https://github.com/pimlie/ubuntu-mainline-kernel.sh/blob/master/ubuntu-mainline-kernel.sh#L26 to https://github.com/pimlie/ubuntu-mainline-kernel.sh/blob/master/ubuntu-mainline-kernel.sh#L28. There, the variable sudo is set if wanted by the user. Otherwise, call the script using the command sudo yourself. Does that help?

gothicVI avatar Oct 23 '20 05:10 gothicVI