-
Notifications
You must be signed in to change notification settings - Fork 115
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
Can't install via DKMS after git upgrade 2.35.2 or later #346
Comments
Which download link did you use? |
Ditto, used the default download link in the readme. (On latest ArcoLinux over this way, but the result is basically the same as what happened in the top comment.) |
Okay, so it probably boils down to sed then... What's the sed error exactly? |
getting this same issue, this is the output when using the verbose option
EDIT: this started happening after updating from kernel 5.17.1 -> 5.17.2 |
|
I had the same thing happen on a recent kernal update on Manjaro unstable, switching to the AUR version allowed me to get things running again for now |
@kakra This issue is probably caused by the recent Git vulnerability ( |
Can confirm, downgrading to git v2.35.1 allowed me to reinstall just fine. |
Ah okay... Gentoo does not provide this version yet because they investigate how this affects usage in Portage. The package is available but masked from installation. I'll try to setup the sandbox to find an idea how to work around this issue. |
It fails because the |
I'm an idiot and can't parse this to figure out what the actual fix is. I just installed Zorin OS fresh today this is the first thing I started fiddling with. |
I can confirm this same issue on Pop OS 21.10, Zorin 16, Kubuntu 20.04.4 I opened this issue #348, will close and follow here. |
Not a fix, but a workaround is simple enough. Just drop to a root shell, clone the repo somewhere, and run the install script. To overly simplify the problem, it's a permissions issue. The install script has to be ran as root, but it sources files that aren't owned by root when the repo is cloned by your user, thus causing it to fail thanks to new security implemented into Git. Worked just fine for me on Pop 21.10 with xanmod stable:
|
On linux mint cinnamon 20.3 this workaround does not work. |
You did something wrong then. I just set up a Mint 20.3 VM, and was able to install xpadneo without any problems. Use these commands:
|
Worked for me. Cheers. |
It works thanks, I did it wrong in the beginning. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Well, you can create the version file before running install with If you install from the development branch, you should probably add the git directory as trusted so a different user can safely use the git repository: That's actually what happens during install: The installer runs as root, and then tries to generate the version file but now the git repo is not trustable for the root user. You can probably run You could also simply checkout the git repository with the root user so users match. @Paulemeister Please do not use or recommend using version files from a different archive as it will mess up our reports here (reported code and version won't match). If you want to have a version file tracked (which we actually DO have), checkout the stable versioned branches. I thus hide your comment. Thanks. |
Git 2.35.2 added a trust model to prevent user scripts and hooks of git repositories to be executed with elevated privileges by accident. This prevents the installer from getting the repository version when the repository was checked out by a non-root user. This commit adds an error message to suggest trusting the repository and also links to the bug report for further details. Fixes: atar-axis#346 Signed-off-by: Kai Krakow <[email protected]>
Git 2.35.2 added a trust model to prevent user scripts and hooks of git repositories to be executed with elevated privileges by accident. This prevents the installer from getting the repository version when the repository was checked out by a non-root user. This commit adds an error message to suggest trusting the repository and also links to the bug report for further details. Fixes: #346 Signed-off-by: Kai Krakow <[email protected]>
Severity / Impact
Describe the Bug
After following the prerequisites and installation commands, I cloned the repository and attempted to run the install command
sudo ./install.sh
, only to see the following output:sed: can't read lib/../VERSION: No such file or directory
Steps to Reproduce
Clone repository;
Access xpadneo folder;
Open terminal in folder;
Type:
sudo ./install.sh
and press enterExpected Behavior
xpadneo to install.
System Information
Pop!_OS 21.10
Additional Context
Attempted to install xpadneo, today, on Linux Mint 20.3 as well, also had a sed error.
The text was updated successfully, but these errors were encountered: