Open Chuckytuh opened 4 years ago
Hi @Chuckytuh,
This failed for me regardless if I set the home directory or not. My install.log
hints at permissions errors:
PackageKit: Could not write pid file to /private/var/run/installd.commit.pid (You don’t have permission to save the file “installd.commit.pid” in the folder “run”.)
.........
PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=120 "An unexpected error occurred while moving files to the final destination." UserInfo={NSLocalizedDescription=An unexpected error occurred while moving files to the final destination., arguments=(
"-f",
"-s",
"/var/folders/n9/z6ljnlf10yd9rn46pvrlxglhn7wtf6/C/PKInstallSandboxManager/58A0319B-0FBB-4DA5-9542-D14873AD6665.activeSandbox/Root",
"/"
), NSUnderlyingError=0x7f91f8999d40 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}} {
NSLocalizedDescription = "An unexpected error occurred while moving files to the final destination.";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"";
arguments = (
"-f",
"-s",
"/var/folders/n9/z6ljnlf10yd9rn46pvrlxglhn7wtf6/C/PKInstallSandboxManager/58A0319B-0FBB-4DA5-9542-D14873AD6665.activeSandbox/Root",
"/"
);
}
Had similar problem with the GUI installer on Mac Monterey 12.3.1 - failed when trying to install for specific user, works when installaing for all users.
2022-05-10 15:12:31+02 MacBook-Pro-2 Installer[98452]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=120 "An unexpected error occurred while moving files to the final destination." UserInfo={NSUnderlyingError=0x600001e31650 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}, NSLocalizedDescription=An unexpected error occurred while moving files to the final destination., arguments=(
"-f",
"-s",
"/var/folders/_2/_dwvnbx54_s30krdjpk3cmz40000gn/C/PKInstallSandboxManager/22FA34E7-A3D9-42AB-86F8-853866A901AF.activeSandbox/Root",
"/"
)}
Which terminal are you using? I had a similar issue, not with aws cli, but installing an IOS simulator. Maybe is not related, but in my case I was using iTerm. Once I enabled Full Disk Access to Iterm I was able to install the simulator. Hope this helps.
I had this problem when installed both for an specific user and for every user with both the GUI installer and the CLI installer.
I got it to work by temporarily removing these lines from /etc/pam.d/sudo
:
# sudo: auth account password session
- auth optional /opt/homebrew/lib/pam/pam_reattach.so ignore_ssh
- auth sufficient pam_tid.so
auth sufficient pam_smartcard.so
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
I previously added those lines so that sudo
was able to use Touch ID instead of requesting my password every time. See https://github.com/fabianishere/pam_reattach for why this is useful.
I am adding this comment so that if anyone has the same problem they can know a possible fix.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug Unable to successfully install aws-cli v2.0.14 for specific user as specified on installation guide.
However, if installed system-wide, there's no problems and installation succeeds.
SDK version number
Platform/OS/Hardware/Device
Output of
sw_vers
:Bundled python from OSX:
To Reproduce (observed behavior)
The following commands were issued:
And the content of
choices.xml
is:Expected behavior
Installation to a specific user to succeed.
Logs/output
/var/log/install.log
:Additional context User
temp_user
was created through an ansible playbook but the problem is also reproducible when the user is created and an explicit home folder is set. This time on another machine with Mojave, in the following manner:However, the problem doesn't occur when the user is created without explicitly setting the home folder: