Closed Maxython closed 3 years ago
This error is not thrown on all packages.
Another example of a package with this error is tzdata.
Cause of error: Cannot hard link to ‘file or directory’: Permission denied
.
.../pacman/pkg $ tar xvJf gcc-10.2.0-1-aarch64.pkg.tar.xz | grep "Permission denied"
tar: usr/bin/aarch64-unknown-linux-gnu-g++: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-c++’: Permission denied
tar: usr/bin/aarch64-unknown-linux-gnu-gcc-10.2.0: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-gcc’: Permission denied
tar: usr/bin/c++: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-c++’: Permission denied
tar: usr/bin/g++: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-c++’: Permission denied
tar: usr/bin/gcc: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-gcc’: Permission denied
tar: usr/bin/gcc-ar: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-gcc-ar’: Permission denied
tar: usr/bin/gcc-nm: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-gcc-nm’: Permission denied
tar: usr/bin/gcc-ranlib: Cannot hard link to ‘usr/bin/aarch64-unknown-linux-gnu-gcc-ranlib’: Permission denied
tar: Exiting with failure status due to previous errors
I decided to experiment with installing packages without dependency. As a result, it was installed by pacman, but it was not installed in /usr/bin.
Example gcc installation: