Closed ATECoder closed 4 weeks ago
ln: failed to create symbolic link '/etc/mtab': No such file or directory 'C:\WINDOWS\system32\drivers\etc\hosts' -> '/etc/hosts' /usr/bin/cp: cannot create regular file '/etc/hosts': No such file or directory 'C:\WINDOWS\system32\drivers\etc\protocol' -> '/etc/protocols' /usr/bin/cp: cannot create regular file '/etc/protocols': No such file or directory 'C:\WINDOWS\system32\drivers\etc\services' -> '/etc/services' /usr/bin/cp: cannot create regular file '/etc/services': No such file or directory 'C:\WINDOWS\system32\drivers\etc\networks' -> '/etc/networks' /usr/bin/cp: cannot create regular file '/etc/networks': No such file or directory rm: cannot remove '/etc/post-install/01-devices.post': Permission denied rm: cannot remove '/etc/post-install/03-mtab.post': Permission denied rm: cannot remove '/etc/post-install/06-windows-files.post': Permission denied rm: cannot remove '/etc/post-install/99-post-install-cleanup.post': Permission denied
This means that the post-install
stage of the installer failed. You may need to run Git Bash
once in elevated mode to fix this.
I ran Git Bash with elevated mode. This fixed Git Bash but did not fix opening the Git Bash terminal tab from Terminal.
I will reinstall Git into Program Files as suggested in issue #4971.
Installing to c:\program files\git addresses this issue.
Note, though, that the uninstaller left orphan entries in the registry. Consequently, running bash from the File Explorer shell context menu fails with a program not found error.
the uninstaller left orphan entries in the registry.
It would be quite helpful to fill in the missing blanks, i.e. to list the exact entries that have been left installed. There is specific code defining what registry items the uninstaller should remove.
... indeed. i did go through the registry, which took a bit of time and should have exported all these items. next time.
This fixed Git Bash but did not fix opening the Git Bash terminal tab from Terminal.
That's strange, as we specifically adjust the path in the Windows Terminal profile.
I have a similar install on another VM which I could use to explore these issues.
However, my take, at this point, is that installing to folders other than program files is not recommended and that the effort required to fixing the issues that such installs brings about is not worth your or my time as there are other more important tasks ahead.
Please accept my thanks and gratitude for the work you guys are doing. Over the years, I have experimented with a few version control systems. GIT has been the only one I could master enough to keep my code in some control.
Clearly, it takes a village.
David
@ATECoder shall we close the ticket, then?
Setup
this happens with terminal or power shell (rev. 7.4.4) both when running as user (local user with Administrator privileges) or running the app as an Administrator. The errors appear whenever a new git bash is opened.
The host and other files reported as missing (see below) do exist in the windows est folder:
Details
Terminal (Power Shell) or Power Shell (pwsh)
Get the git bash prompt, e.g.,
David@LimeDevB MINGW64 ~ $