Forum Discussion
An error occurred. (Error code: 9) (Extra code: 0)
- Oct 18, 2023
CyrilYu run these commands would resolve the problem
sudo rm -rfv /Library/LaunchDaemons/com.microsoft.EdgeUpdater.* sudo "/Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/118.0.2088.46/Helpers/EdgeUpdater.app/Contents/MacOS/EdgeUpdater" --install --system --v=2
then restart edge browser, open `edge://settings/help`, problem should resolved
(found solution after extract MicrosoftEdge-118.0.2088.46.pkg and read scripts/postinstall)
CyrilYu run these commands would resolve the problem
sudo rm -rfv /Library/LaunchDaemons/com.microsoft.EdgeUpdater.*
sudo "/Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/118.0.2088.46/Helpers/EdgeUpdater.app/Contents/MacOS/EdgeUpdater" --install --system --v=2
then restart edge browser, open `edge://settings/help`, problem should resolved
(found solution after extract MicrosoftEdge-118.0.2088.46.pkg and read scripts/postinstall)
- Nuendo79Jul 03, 2024Copper ContributorExactly my problem as well.
- daibtOct 18, 2023Brass ContributorIt works for me
- tsanchaiOct 18, 2023Copper ContributorThere is n9 Mach in the first command. After I run the second command, then restart Edge. The problem is solved. Thank for information and fix
- donchoOct 18, 2023Copper Contributor
Thank you very much! This fixed my issue.
Two things that people might neglect and which may cause this not to work for them:- I am using a custom terminal, iTerm2. By default, the security settings do not allow non-Apple apps to change applications on the system. To enable this, one would need to allow "App Management" for the custom terminal (and restart the terminal). If you're using a custom terminal, without this change, it won't work!
- I almost gave up while waiting! Don't give up. The second command takes its time.
yeliex, great job! Thank you once again!- Lucent_StarscapeOct 18, 2023Copper ContributorThat solution didn't work for me at first, but after I followed your steps it finally worked! Thanks for your reminder!
- tsanchaiOct 18, 2023Copper Contributor
yeliex I can’t read your command. Can you please give complete command. The picture yo7 posted is truncated and I can’t see all of them. Thank for information
- donchoOct 18, 2023Copper ContributorIt's not a picture, it's code snippet. Select it all, and copy. Here it is, but not nicely formatted:
sudo rm -rfv /Library/LaunchDaemons/com.microsoft.EdgeUpdater.*
sudo "/Applications/Microsoft Edge.app/Contents/Frameworks/Microsoft Edge Framework.framework/Versions/118.0.2088.46/Helpers/EdgeUpdater.app/Contents/MacOS/EdgeUpdater" --install --system --v=2
- CyrilYuOct 18, 2023Copper ContributorThank you, it worked for me!!! How do you get this solution? I mean how do you find it on that pkg file?
- FeejusOct 18, 2023Brass Contributor
While it may appear straightforward, I followed these steps, but unfortunately, they did not resolve the issue. Let me outline the actions I took:
1 used AppCleaner to completely uninstall Microsoft Edge.
2 then downloaded Microsoft Edge directly from the official Microsoft website.
3 manually checked the LaunchDaemons folder to ensure there were no remaining Edge files.Finally, I executed the installation process for the Edge browser.
I want to emphasise that I confirmed the absence of the mentioned file in the folder and executed the second command as suggested."- yeliexOct 18, 2023Copper Contributor
Feejus unnecessary to uninstall app, just open `Terminal.app`, copy and past my command, and enter password when required.
CyrilYu as previous replies by others, I found it may relate to LaunchDaemons of edge. most app would update the daemon scripts when app launches, but edge seems only do that when app install, so I extracted install package and read scripts. The mostly possible reason of the bug is The EdgeUpdater.app not updated in `/Library/Microsoft/EdgeUpdater` in some reason. no time to research further, edge dev team should do this, not me
- yeliexOct 18, 2023Copper Contributorbesides, the signal of commands run success is it finally print exit code 0, the commands call edge updater to reinstall it self to Mac system
- FeejusOct 18, 2023Brass ContributorIn fact this issue is now new, this has happened twice. It seems the issue is related to something the dev team does.
https://techcommunity.microsoft.com/t5/discussions/macos-edge-beta-95-0-1020-9-update-now-showing-error-message-on/m-p/2799187
https://techcommunity.microsoft.com/t5/discussions/an-error-occurred-error-code-9-extra-code-0/m-p/3064903