App Store not updating apps.
MacBook Pro, OS X Yosemite (10.10.2)
Wait a while until there's no more problem. This is likely at Apple's end unless you have lost your Internet connection.
Triple-click the word "telnet" in the line below on this page to select the whole line:
telnet swscan.apple.com 443
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad and start typing the name.
Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
You should almost instantly get three lines of output below what you entered, the last of which is this:
Escape character is '^]'.
If there's no output within ten seconds, consider that a failure. Otherwise, please post the output in a reply. You can then quit Terminal.
I have internet connection for sure.
You installed the "iWorm" trojan. The following procedure may leave a few small files behind, but it will permanently deactivate the trojan, as long as you never reinstall it.
"iWorm" is known to be distributed via BitTorrent in the form of a pirated Adobe product. If you've ever downloaded any software from a torrent, delete it. I suggest you delete the torrent client as well, to avoid making the same mistake again. If you know of any other way in which you might have been infected, please give details. That information may help others.
While "iWorm" was present, your computer may have been under the remote control of criminals. Change all Internet passwords and check all financial accounts for unauthorized transactions. Do this after the system has been secured, not before.
According to reports, iWorm is no longer under the control of its originator.
Others may tell you that you should erase the startup volume, reinstall OS X, and restore only user data from a backup in order to be sure that you're rid of the malware. All other software would then have to be reinstalled from fresh downloads or original media. You can do that if you wish, but I've seen no evidence that it's necessary. If you choose that option, you can skip the rest of this comment. Ask for guidance if you need it.
Back up all data before proceeding. If you have more than one user account, you must be logged in as an administrator.
Step 1
Triple-click anywhere in the line below on this page to select it:
/Library/LaunchDaemons/com.JavaW.plist
Right-click or control-click the line and select
Services ▹ Reveal in Finder (or just Reveal)
from the contextual menu.* A folder should open with an item named "com.JavaW.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
Restart the computer and empty the Trash. Then delete the following item in the same way:
/Library/Application Support/JavaW
*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
Go ▹ Go to Folder...
from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
Step 2
The trojan hacks the system to block software updates from Apple. The file modified is /etc/hosts.
The easiest way to fix the hosts file is to restore it from a backup that predates the modification, or to copy the unmodified file from another Mac. If you can't do that, then do as below.
Triple-click anywhere in the line below on this page to select it:
open -e /etc/hosts
Copy the selected text to the Clipboard by pressing the key combination command-C.
Paste into a Terminal window by pressing command-V. A TextEdit window should open. At the top of the window, you should see this:
##
# 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
Below that, you may see some other lines. The first 9 lines should be exactly as above, apart from differences in the blank space within lines. Otherwise you can't use this procedure—STOP and ask for guidance.
If the contents of the TextEdit window are as described, close it, then enter the following command in the Terminal window in the same way as before (by copy and paste):
sudo sed -i~ '10,$d' /etc/hosts
You may be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. If you don’t have a login password, you’ll need to set one before you can run the command. You may get a one-time warning to be careful. Confirm. Quit Terminal.
If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Log in as one and start over.
That will fix the hosts file. There is now a copy of the old hosts file with the name "hosts~" in the same folder as "hosts". You can delete the copy if you wish. Don't delete the file named "hosts".
Dear Linc Davis,
What if your "telnet" test "passed" but look into details (domain akadns.net!):
telnet swscan.apple.com 443
Trying 17.164.1.22...
Connected to p01-swscan.apple.com.akadns.net.
Escape character is '^]'.
When one enter App Store app it shows "No Updates Available".
However, if one check once again then receive the "An error has occurred" window with the message "Can't connect to the Software Update Server".
Last OS X update had to be performed by Combo install of 10.10.5 (from 10.10.2 or 10.10.3) so the problem persists. However, it was possible to update installed apps via App Store. The only issue was while installing a new app (I had to repeat the installation process several times).
/etc/hosts contains 9 lines:
##
# 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
Should I run the command below?
sudo sed -i~ '10,$d' /etc/hosts
Linc.
I seem to have similar issue as joshtortuga. My app store spins and spins and won't connect - and my wifi is good and as well the badge indicates 2 updates are in the wings. I checked for the worm following your instructions and it was not there. Any other ideas?
Thanks Russ
App Store not updating apps.