There are occasions when the symlink directory is not right. I have created a test with an example here : https://github.com/nebula-plugins/gradle-ospackage-plugin/pull/372 I also discussed the possible fix there.