疑難排解:更新程式在擷取資訊時發生錯誤Troubleshooting: Updater has errors retrieving information

在極少數情況下,當您嘗試更新 Visual Studio for Mac 時,您可能會看到顯示錯誤訊息 [擷取更新資訊時發生錯誤]。On a rare occasion, you may see the error message "Error retrieving update information" displayed when you try to update Visual Studio for Mac. 如果發生此錯誤,請嘗試下列步驟來修正:If this happens, try the following steps to fix it:

  • 請檢查網際網路連線。Check your internet connection. 連線中斷是造成此錯誤最常見的原因。A drop in the connection is the most common cause of this error.
    • 如果下載元件失敗,您可以按一下元件名稱旁邊的重試按鈕,以嘗試再次下載。If a component fails to download, you can click the retry button next to the component name to try the download again.
  • 重新啟動 IDE。Restart the IDE.
  • 如果您繼續看到此錯誤訊息,若 .dmg 仍在您的機器上 (或者您可以從 visualstudio.com 下載),您也可以嘗試使用安裝程式來更新If you continue to see this error message, you can also try to update using the Installer, if the .dmg is still on your machine, or you can download it from visualstudio.com
    • 安裝程式會更新您機器上任何已安裝的元件。The installer will update any installed components on your machine.
    • 藉由重新執行安裝程式,您也可以安裝先前未安裝的任何遺漏元件。By re-running the installer, you'll also be able to install any missing components that you had not previously installed.
  • 您也可以藉由刪除位在 ~/Library/Caches/VisualStudio/8.0/TempDownload/index.xml 的檔案,以嘗試清除快取檔案。You can also try clearing your cached downloads, by deleting the file located at ~/Library/Caches/VisualStudio/8.0/TempDownload/index.xml.
  • 如果您正在使用舊版 Visual Studio for Mac,則目錄下可能會有其他版本號碼 VisualStudioIf you're working with an older version of Visual Studio for Mac, you might have other version numbers under the VisualStudio directory. 也請刪除 index.xml 這些路徑中的檔案。Delete the index.xml file in these paths as well.