将Mac OS升级到了macos High Sierra,打开iTunes时出现 an unknown errer occurred(-45076)。

在不想将iTunes升级至12.7(即停留版本在12.6.2)的情况下,进行如下处理(据说升级iTunes可解决问题,未尝试):

一、关闭System Integrity Protection(SIP)

    1、重启Mac;

    2、开机,同时按住 command+R ,进入Recovery模式;

    3、在实用工具中选择 终端,输入 csrutil disable 

    4、重启Mac,打开终端,输入 csrutil status,显示 System Integrity Protection status:disabled ,则 SIP 已关闭。

二、下载好 iTunes 12.6.2-DMG

三、将 ~/Music/iTunes/iTunes Library.itl 做个备份,用来恢复

四、打开终端,删除iTunes

sudo rm -rf /Library/Documentation/Applications/iTunes/Acknowledgements.rtf /Library/Documentation/iPod/Acknowledgements.rtf /Library/Frameworks/iTunesLibrary.framework/ /Applications/iTunes.app/ /System/Library/PrivateFrameworks/iTunesAccess.framework/ /System/Library/LaunchDaemons/com.apple.fpsd.plist /System/Library/PrivateFrameworks/CoreFP.framework/ /System/Library/PrivateFrameworks/CoreADI.framework/ /System/Library/LaunchDaemons/com.apple.adid.plist /System/Library/CoreServices/UAUPlugins/ADIUserAccountUpdater.bundle/ /System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle/ /System/Library/LaunchDaemons/com.apple.usbmuxd.plist /System/Library/PrivateFrameworks/AirTrafficHost.framework/ /System/Library/PrivateFrameworks/DeviceLink.framework/ /System/Library/PrivateFrameworks/MobileDevice.framework/ /System/Library/Extensions/AppleMobileDevice.kext/ /System/Library/Extensions/AppleUsbEthernetHost

五、打开下载的iTunes12.6.2进行安装

六、关闭iTunes的自动更新

sudo softwareupdate --ignore iTunesXPatch

七、打开SIP (看个人需要)

posted on 2017-09-29 16:59  铁柱  阅读(3015)  评论(0编辑  收藏  举报