LoginSignup
2
0

More than 3 years have passed since last update.

MacでChromeをアップデートしようとすると毎回エラー:12が表示される

Last updated at Posted at 2019-09-14

1,はじめに

Macbook AirにインストールしたGoogle Chromeを更新しようとすると、エラーが表示された。
筆者のサイトにも記載しているが、Qiitaにも転記する。

発生環境
* Chrome 76.0.3809.132(Official Build) (64 ビット)
* Mac OS 10.14.6 (18G95)

エラーログは、下記の通りである。

更新できませんでした(エラー: 12)
 エラーの詳細:
 KSInstallAction install script failure. Exit code: 12. Standard error output: "goobspatch: old hash mismatch: 22c8125f41577ff4f34dc33bf3f4e25793decdba != 933911d0cf53f90320b51d10b512965d03a8eb8c\ndirpatcher.sh: couldn't create /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/77.0.3865.75/Helpers/Google Chrome Helper (GPU).app/Contents/CodeResources by applying /tmp/KSInstallAction.F5XyNdrTX7/m/.patch/framework_76.0.3809.132_77.0.3865.75.dirpatch/Helpers/Google Chrome Helper (GPU).app/Contents/CodeResources$gbs to /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/76.0.3809.132/Helpers/Google Chrome Helper (GPU).app/Contents/CodeResources\n.keystone_install: dirpatcher of versioned directory failed, status 13\n".

2,原因調査

今回、サポートサイトと開発コミュニティの2つを中心に調査を行なった。

(1) サポートサイト

まず、サポートサイトで類似事例がないか調査を行なった。
その結果、以下のケースが本件と類似する事例として発見できた。

chrome giving me an error when updating had issue before last month - Google Chrome Help

(2) 開発コミュニティ

また、Chromeの基幹部分を開発しているコミュニティのメーリングリストからも、
類似事例の記載を発見できた。

Issue 991570 - chromium - An open-source project to help move the web forward. - Monorail

3,根本原因と思われるもの

開発コミュニティのメーリングリストに、以下の記述があった。

(1) 原文

In comment 3, the reporter suggests that this may have happened after upgrading from 10.14.5 or 10.14.6.
If something on the system is rewriting stapled notarization tickets, it would be unexpected and could cause this breakage.
This would be the first report of that happening, though, and unless we catch something in the act (seeing a copy of the modified file would help), it’s hard to come up with a plan of action.

引用元:Issue 991570: macOS: Updating Chrome always fails

(2) 和訳

(注)筆者の拙い語学力での意訳(筆者の読みが入っています)のため、誤りがある可能性があります。

指摘事項3の報告者が言うように、Mac OSをアップデートしたことが本件事象の原因かもしれません(確定ではない)。
もしかしたら、アップデートに伴い、Chromeの認証用に作成した情報が、書き換えられたのかもしれません(確定ではない)。
あとこれ、初耳なので、対応するの大変(わかる。お仕事、お疲れ様です)。

(3) 考察

Mac OSはApp Store以外からインストールしたソフトウェアについて、
認証を行うところ、PC内部に保存されていたキー情報がMac OSの更新に伴い、変更された。

上記が原因として仮定できる。

4,対応

Chromeの再インストールを行う。

5,参考資料

2
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
2
0