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)
If you have a new Mac or one that has never had Edge installed, installing Edge should proceed without any issues or errors.
However, if you do encounter an error, it's likely due to an incorrect login item. mjj792msncom suggested unchecking this login item as a solution, but many, including myself (I succeeded once), have found this method ineffective. This Microsoft Corporation login item can be located in /Library/LaunchDaemons/. Be cautious: if you delete these items, you won't be able to retrieve them. The primary issue is that even after fully uninstalling Edge, this login item remains outdated, resulting in the error code: 9.
- FeejusOct 17, 2023Brass Contributor
I appreciate your explanation. However, it appears that this information mainly highlights that the software is malfunctioning and requires attention from Microsoft.
As for my second point, and as you correctly pointed out, even after clearing the LaunchDaemons and ensuring that no files remain, if I reinstall Edge by downloading it from scratch, why does the error recur?
I took the step of removing Edge using AppCleaner, which should have removed all associated files including the Edge file in /Library/LaunchDaemons/.
- CyrilYuOct 17, 2023Copper ContributorI also find this very strange. No matter how you delete Edge, the 'login item' will never automatically download to your computer. However, on a Mac that has never had Edge installed, the 'login item' can be downloaded normally.
- yeliexOct 18, 2023Copper Contributor
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)
- CyrilYuOct 17, 2023Copper ContributorI tested on both my new Mac and a Mac VM; both successfully downloaded the updated login item located in /Library/LaunchDaemons/.
However, if you merely uninstall Edge, it won't allow the updated login item in /Library/LaunchDaemons/ to be downloaded. Even when using AppCleaner, Microsoft doesn't recognize it as a clean environment. The determining factor is the Microsoft keychain. If you haven't deleted it, Edge will log in automatically without requiring you to enter credentials.
From my tests (conducted three times), when macOS is brand new and Edge has never been installed, the new Edge updates as expected. This is because it can fetch the updated login items from /Library/LaunchDaemons/. Furthermore, I found that even on a brand-new macOS, if you remove login items from /Library/LaunchDaemons/, you can't retrieve them again.
I believe this is because one of Microsoft's servers is down, preventing us from smoothly updating from our old login item to the new one.