2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Mac App Store における「サーバに接続できませんでした。」の対処法

Posted at

はじめに

  • ある日突然 Mac App Store に接続できなくなりました。
    • 自宅のネットワークだと接続できる
    • そのうちどのネットワークでも接続できなくなった😇
    • Homebrew, Homebrew cask 頼りに…
    • mas-cli もダメ
  • 症状としては「サーバに接続できませんでした。」ダイアログが。
  • 備忘録として解決策をシェアします。

_2020-08-15_0.57.22.png

解決法

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 の行をコメントアウトします。
  • 削除でも良いですが、チキンなのでコメントアウトしてます。

結果

  • アップデート・ダウンロードできました。

_2020-08-15_1.02.22.png

参考文献

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.

上手く行かなかった対処法

  • 僕はダメだったけど、他の方はこっちで成功するかもしれないので
  1. 再起動
  2. App Store サインアウト・サインイン
  3. Mac の Apple ID サインアウト・サインイン
  4. Keychan Access で色々やるやつ
  5. /var/db/cricrls/ の中を空に
2
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?