LoginSignup
1
0

More than 5 years have passed since last update.

Visual Studio for Macがアップデートできなかったお話

Last updated at Posted at 2018-09-26

発端

スクリーンショット 2018-09-26 21.42.51.png

ある日、いつものようにアップデートしようと思ったらできませんでした。
出る文言は「更新プログラムのインストーラーを起動できませんでした。」のみ。
思い当たることも特にないので、調べていきます。

ログ

まずはVisual Studio for Macのログを確認しましょう。
[ヘルプ] > [ログディレクトリを開く]から確認できます。
reupload.png

その中で更新日が最新のものをあさっていくとそれらしいログを発見。

ERROR [2018-09-26 21:42:22Z]: Error fetching token: Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException - Failed to refresh access token
ERROR [2018-09-26 21:42:22Z]: Error fetching token: Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException - Failed to refresh access token
ERROR [2018-09-26 21:42:22Z]: Error fetching token: Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException - Failed to refresh access token
ERROR [2018-09-26 21:42:22Z]: Error fetching token: Microsoft.IdentityService.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException - Failed to refresh access token
INFO [2018-09-26 21:42:36Z]: Starting update installer
ERROR [2018-09-26 21:42:37Z]: Failed to start update installer
System.Exception: Updater is missing
  at Xamarin.Ide.Mac.Updater.StartUpdatesInstaller (MonoDevelop.Core.FilePath installerDataFile, MonoDevelop.Core.FilePath updatedInstallerPath) [0x00191] in /Users/vsts/agent/2.140.0/work/1/s/md-addins/Xamarin.Ide/Xamarin.Ide.Mac/Updater.cs:67 
  at Xamarin.Ide.Updater.UpdateService+<InstallDownloads>d__42.MoveNext () [0x00278] in /Users/vsts/agent/2.140.0/work/1/s/md-addins/Xamarin.Ide/Xamarin.Ide/Xamarin.Ide.Updater/UpdateService.cs:303 
ERROR [2018-09-26 21:42:37Z]: 更新プログラムのインストーラーを起動できませんでした。

Error fetching token??
ActiveDirectory??
認証周りなのでしょうか。

ERROR [2018-09-26 21:42:37Z]: Failed to start update installer
System.Exception: Updater is missing

とあるように、updaterがないのが原因なのでしょうか。
エラーメッセージで検索かけてみます。

解決

Visual Studio Developer Communityでドンピシャな記事を見つけました。
読んでみたところ、どうやら以下のようなことが書かれています。

  • 使用しているアップデーターが古い
  • 昔のバージョンではバグがある
  • アップデーターをバックアップして再度アップデートかけてみてほしい

アップデーターを一時退避させ、アップデートしてみると無事成功!
アップデーターは以下にあるようです。mvコマンドで適当に移動させました。

~/Library/Application\ Support/VisualStudio/7.0/LocalInstall/Installer/

原因としては、何かしらのタイミングでアップデーターが更新されずに残ってしまったという感じでした。
同じような現象に悩まされている方の助けになればと思います。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0