microsoft-office uninstall fails with Permission denied @ dir_initialize #849
Unanswered
navneetkarnani
asked this question in
Casks
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had microsoft-word, microsoft-excel and microsoft-powerpoint installed individually.
When I tried upgrading microsoft-powerpoint yesterday, it failed to uninstall with a error that looked similar to:
Permission denied @ dir_initialize - /var/folders/vf/937rsb3s7p57123chvtk8jbh0000gn/T
I checked the directory, and it is owned by the non-logged-in user
So, I manually removed it using the command:
/usr/bin/sudo -E -- /usr/sbin/pkgutil --forget com.microsoft.package.Microsoft_PowerPoint.app
And then installed microsoft-office
Today, when I ran:
brew upgrade --greedy
the process failed at uninstalling microsoft-excel with a similar error.
I can't delete, change permission or ownership of the directory
/var/folders/vf/937rsb3s7p57123chvtk8jbh0000gn/T
, even as the user, because I see aPermission Denied
message. When I looked at the directory, looks like it contains application level settingsI got around this, again, using the "forget" command above. But I need to find the cause.
What is happening ? What is breaking this ? How do I fix it ?
Does it have something to do with the fact that I installed the applications using the
su - authoriseduser
shell from within the owner user ?At this time, I am manually uninstalling all the applications, and trying again. Will keep you posted if I have new findings.
Beta Was this translation helpful? Give feedback.
All reactions