はじめに
- ある日突然 Mac App Store に接続できなくなりました。
- 自宅のネットワークだと接続できる
- そのうちどのネットワークでも接続できなくなった😇
- Homebrew, Homebrew cask 頼りに…
-
mas-cli
もダメ
- 症状としては「サーバに接続できませんでした。」ダイアログが。
- 備忘録として解決策をシェアします。
解決法
sudo vim /etc/hosts
- で
/etc/hosts/
に入る (エディタはお好きに)
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
-127.0.0.1 osxapps.itunes.apple.com
+#127.0.0.1 osxapps.itunes.apple.com
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
- のように、
127.0.0.1 osxapps.itunes.apple.com
の行をコメントアウトします。 - 削除でも良いですが、チキンなのでコメントアウトしてます。
結果
- アップデート・ダウンロードできました。
参考文献
- App Store not working. Getting "Could not connect to the server"
- (何故か
r/hackintosh
という。。。)
Fixed it. Had a lien in the /etc/hosts file was redirecting the app store server.
This was the line: 127.0.0.1 osxapps.itunes.apple.com
If you are having this problem run sudo nano /etc/hosts and delete that line. Save, and you are good to go.
上手く行かなかった対処法
- 僕はダメだったけど、他の方はこっちで成功するかもしれないので
- 再起動
- App Store サインアウト・サインイン
- Mac の Apple ID サインアウト・サインイン
- Keychan Access で色々やるやつ
-
/var/db/cricrls/
の中を空に