Sumeet Gandhi

Q: Cant update, keep getting "Can't connect to the Apple Software Update server." on Appstore

Hi,

 

From last 1 week I am getting this error.

 

I tried following:

 

1. Restart mac book several times - did not work

2. Tried connecting to different wifi networks - did not work

3. Deleted appstore and one more .plist files and restarted - did not work

4. Did Maverics restore using option R at startup - did not work

 

Please let me know what is wrong. Any pointers will be really appreciated.

 

Thanks

SumeetScreen Shot 2014-10-14 at 7.44.49 PM.png

MacBook Pro with Retina display, OS X Mavericks (10.9.5)

Posted on Oct 15, 2014 12:22 PM

Close

Q: Cant update, keep getting "Can't connect to the Apple Software Update server." on Appstore

  • All replies
  • Helpful answers

  • by Kappy,

    Kappy Kappy Oct 15, 2014 12:25 PM in response to Sumeet Gandhi
    Level 10 (270,928 points)
    Desktops
    Oct 15, 2014 12:25 PM in response to Sumeet Gandhi

    The server for your area is out of service?

  • by Linc Davis,Helpful

    Linc Davis Linc Davis Oct 15, 2014 12:37 PM in response to Sumeet Gandhi
    Level 10 (207,963 points)
    Applications
    Oct 15, 2014 12:37 PM in response to Sumeet Gandhi

    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. Click Utilities, then Terminal in the icon grid.

    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.

  • by Kappy,

    Kappy Kappy Oct 15, 2014 12:46 PM in response to Linc Davis
    Level 10 (270,928 points)
    Desktops
    Oct 15, 2014 12:46 PM in response to Linc Davis

    The first rule of Linc Davis: It's dangerous to use the Terminal!

  • by Sumeet Gandhi,

    Sumeet Gandhi Sumeet Gandhi Oct 15, 2014 10:33 PM in response to Linc Davis
    Level 1 (0 points)
    Oct 15, 2014 10:33 PM in response to Linc Davis

    Hi Linc,

     

    I did that and below is the output.

     

    Screen Shot 2014-10-16 at 8.30.57 AM.png

     

    Please let me know what is wrong here.

     

    Thanks

    Sumeet

  • by Sumeet Gandhi,

    Sumeet Gandhi Sumeet Gandhi Oct 15, 2014 10:37 PM in response to Linc Davis
    Level 1 (0 points)
    Oct 15, 2014 10:37 PM in response to Linc Davis

    I then checked the hosts file and below is what I see. Not sure if this is correct or not.Screen Shot 2014-10-16 at 8.36.17 AM.png

  • by Sumeet Gandhi,

    Sumeet Gandhi Sumeet Gandhi Oct 15, 2014 10:50 PM in response to Linc Davis
    Level 1 (0 points)
    Oct 15, 2014 10:50 PM in response to Linc Davis

    Got It,

    in the above hosts file i commented out all the apple entries and voila it worked. But i dont understand how did those entries land up here at the first place.

     

    Thanks a ton !!!!!!!

     

    Sumeet

  • by Linc Davis,

    Linc Davis Linc Davis Oct 15, 2014 11:05 PM in response to Sumeet Gandhi
    Level 10 (207,963 points)
    Applications
    Oct 15, 2014 11:05 PM in response to Sumeet Gandhi

    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 Internet criminals. Change all Internet passwords and check all financial accounts for unauthorized transactions. Do this after the system has been secured, not before.

    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.

    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.

    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

    You've already taken this step, but I'm including it for the sake of completeness.

    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
    fe80::1%lo0                    localhost

    Below that, you may see some other lines. The first 10 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~ '11,$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".

  • by Sumeet Gandhi,

    Sumeet Gandhi Sumeet Gandhi Oct 15, 2014 11:12 PM in response to Linc Davis
    Level 1 (0 points)
    Oct 15, 2014 11:12 PM in response to Linc Davis

    This is really scary

     

    Let me process these steps and will get back to you again.

     

    Thanks again for your generous help.

     

    Sumeet

  • by MadMacs0,

    MadMacs0 MadMacs0 Oct 16, 2014 12:22 AM in response to Sumeet Gandhi
    Level 5 (4,791 points)
    Oct 16, 2014 12:22 AM in response to Sumeet Gandhi

    I feel I must point out that all of the iWorm infection that I'm aware of are a direct result of downloading software from PirateBay. I won't lecture you on the legality of doing this, that's not my job, but it is certainly not uncommon to eventually be infected with malware or adware by frequenting these sites, most if not all of them run by cybercriminals.

     

    I am interested in gathering samples of this malware as we currently have incomplete information about it. You would be doing the community a big favor if you are able to identify exactly what might have caused your situation, although after a week I would guess that the site has been alerted and gotten rid of it. PirateBay attempts to operate as a clean site containing illegal software, if that makes any sense, but it's almost impossible to control their clientele, given the business they are in.

  • by Sumeet Gandhi,

    Sumeet Gandhi Sumeet Gandhi Oct 16, 2014 12:38 AM in response to MadMacs0
    Level 1 (0 points)
    Oct 16, 2014 12:38 AM in response to MadMacs0

    If that was the case then why did the Norton Internet Security detect it at the first place that something is going wrong. Why they are charging so much money for their so called security suite if cant detect such a basic thing.

     

    I remember a major program that I tried to install (but it failed to do so) was Adobe Illustrator. Dont know what happened it didn't go through well and gave some error. I think after that only my Updates stopped.

     

    Link - I have done all the steps that you mentioned. Is there any way I can prevent any such thing and is there a way what information might have been pushed out using this iWorm. What measures do I need to take now?

     

    Thanks

    Sumeet

  • by MadMacs0,

    MadMacs0 MadMacs0 Oct 16, 2014 1:11 AM in response to Sumeet Gandhi
    Level 5 (4,791 points)
    Oct 16, 2014 1:11 AM in response to Sumeet Gandhi

    Sumeet Gandhi wrote:

     

    If that was the case then why did the Norton Internet Security detect it at the first place that something is going wrong. Why they are charging so much money for their so called security suite if cant detect such a basic thing.

    Great question and one of the reasons why most of us here don't consider it to be a good investment. In this case nobody knew a thing about it until this article appeared from Dr. Mac New Mac OS X botnet discovered and it was several days more until Apple and other A-V software companies could get definitions published. Security suites talk about using techniques to detect suspicious behavior, but I have yet to find one that actually found something the first day it was released in-the-wild.

    I remember a major program that I tried to install (but it failed to do so) was Adobe Illustrator.

    That was one of the Adobe products that was involved, so it almost certainly was the source. Normally it installs the actual product after it's finished installing the malware, so I don't know what might have gone wrong with yours.

    Is there any way I can prevent any such thing and is there a way what information might have been pushed out using this iWorm.

    Stay away from torrent sites, but I'm sure you knew I would say that. After reading the Dr. Mac's description above, I think you will agree that privacy information could very well have compromised. I believe the control network for this has now been shut down, but I can't say for certain that was before you were infected or not. We know a lot about the software that was installed to infect your computer, but almost nothing about anything else that may have been downloaded after that to collect information and pass it on. We are fairly confident that remove the files Linc listed will disable it from doing any additional harm, but I know almost nothing about what might have already been harvested from your computer. I would assume the worst and watch your financial accounts carefully. Change any passwords you had stored on your computer, especially if you use the same one for multiple purposes.

  • by Linc Davis,

    Linc Davis Linc Davis Oct 16, 2014 7:18 AM in response to Sumeet Gandhi
    Level 10 (207,963 points)
    Applications
    Oct 16, 2014 7:18 AM in response to Sumeet Gandhi
    Is there any way I can prevent any such thing and is there a way what information might have been pushed out using this iWorm. What measures do I need to take now?

    Answered in part in my last comment, and see also below.

    Mac users often ask whether they should install "anti-virus" software. The answer usually given on ASC is "no." The answer is right, but it may give the wrong impression that there is no threat from what are loosely called "viruses." There is a threat, and you need to educate yourself about it.

    1. This is a comment on what you should—and should not—do to protect yourself from malicious software ("malware") that circulates on the Internet and gets onto a computer as an unintended consequence of the user's actions. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the computer, or who has been able to log in to it remotely. That threat is in a different category, and there's no easy way to defend against it.

    The comment is long because the issue is complex. The key points are in sections 5, 6, and 10.

    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.

    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user. Internally Apple calls it "XProtect."

    The malware recognition database used by XProtect is automatically updated; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.

    The following caveats apply to XProtect:

    ☞ It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.

    ☞ It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.

    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.

    3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)

    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:

    ☞ It can easily be disabled or overridden by the user.

    ☞ A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.

    ☞ An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.

    Apple has so far failed to revoke the codesigning certificates of some known abusers, thereby diluting the value of Gatekeeper and the Developer ID program. These failures don't involve App Store products, however.

    For the reasons given, App Store products, and—to a lesser extent—other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandbox security is based on user input. Never click through any request for authorization without thinking.

    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.

    5. The built-in security features of OS X reduce the risk of malware attack, but they are not, and never will be, complete protection. Malware is foremost a problem of human behavior, and no technological fix alone is going to solve it. Trusting software to protect you will only make you more vulnerable.

    The best defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and Internet criminals. If you're better informed than they think you are, you'll win. That means, in practice, that you always stay within a safe harbor of computing practices. How do you know when you're leaving the safe harbor? Below are some warning signs of danger.

    Software from an untrustworthy source

    ☞ Software of any kind is distributed via BitTorrent, or Usenet, or on a website that also distributes pirated music or movies.

    ☞ Software with a corporate brand, such as Adobe Flash Player, doesn't come directly from the developer’s website. Do not trust an alert from any website to update Flash, or your browser, or any other software.

    ☞ Rogue websites such as Softonic, Soft32, and CNET Download distribute free applications that have been packaged in a superfluous "installer."

    ☞ The software is advertised by means of spam or intrusive web ads. Any ad, on any site, that includes a direct link to a download should be ignored.

    Software that is plainly illegal or does something illegal

    ☞ High-priced commercial software such as Photoshop is "cracked" or "free."

    ☞ An application helps you to infringe copyright, for instance by circumventing the copy protection on commercial software, or saving streamed media for reuse without permission. All "YouTube downloaders" are in this category, though not all are necessarily malicious.

    Conditional or unsolicited offers from strangers

    ☞ A telephone caller or a web page tells you that you have a “virus” and offers to help you remove it. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)

    ☞ A web site offers free content such as video or music, but to use it you must install a “codec,” “plug-in,” "player," "downloader," "extractor," or “certificate” that comes from that same site, or an unknown one.

    ☞ You win a prize in a contest you never entered.

    ☞ Someone on a message board such as this one is eager to help you, but only if you download an application of his choosing.

    ☞ A "FREE WI-FI !!!" network advertises itself in a public place such as an airport, but is not provided by the management.

    ☞ Anything online that you would expect to pay for is "free."

    Unexpected events

    ☞ A file is downloaded automatically when you visit a web page, with no other action on your part. Delete any such file without opening it.

    ☞ You open what you think is a document and get an alert that it's "an application downloaded from the Internet." Click Cancel and delete the file. Even if you don't get the alert, you should still delete any file that isn't what you expected it to be.

    ☞ An application does something you don't expect, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.

    ☞ Software is attached to email that you didn't request, even if it comes (or seems to come) from someone you trust.

    I don't say that leaving the safe harbor just once will necessarily result in disaster, but making a habit of it will weaken your defenses against malware attack. Any of the above scenarios should, at the very least, make you uncomfortable.

    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.

    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.

    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable itnot JavaScript—in your browsers.

    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the left side of the address bar when visiting a secure site.

    Stay within the safe harbor, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.

    7. Never install any commercial "anti-virus" (AV) or "Internet security" products for the Mac, as they are all worse than useless. If you need to be able to detect Windows malware in your files, use one of the free security apps in the Mac App Store—nothing else.

    Why shouldn't you use commercial AV products?

    ☞ To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. This technique is a proven failure, as a major AV software vendor has admitted. Most attacks are "zero-day"—that is, previously unknown. Recognition-based AV does not defend against such attacks, and the enterprise IT industry is coming to the realization that traditional AV software is worthless.

    ☞ Its design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere. In order to meet that nonexistent threat, commercial AV software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.

    ☞ By modifying the operating system, the software may also create weaknesses that could be exploited by malware attackers.

    ☞ Most importantly, a false sense of security is dangerous.

    8. An AV product from the App Store, such as "ClamXav," has the same drawback as the commercial suites of being always out of date, but it does not inject low-level code into the operating system. That doesn't mean it's entirely harmless. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.

    An AV app is not needed, and cannot be relied upon, for protection against OS X malware. It's useful, if at all, only for detecting Windows malware, and even for that use it's not really effective, because new Windows malware is emerging much faster than OS X malware.

    Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else. A malicious attachment in email is usually easy to recognize by the name alone. An actual example:

    London Terror Moovie.avi [124 spaces] Checked By Norton Antivirus.exe

    You don't need software to tell you that's a Windows trojan. Software may be able to tell you which trojan it is, but who cares? In practice, there's no reason to use recognition software unless an organizational policy requires it. Windows malware is so widespread that you should assume it's in every email attachment until proven otherwise. Nevertheless, ClamXav or a similar product from the App Store may serve a purpose if it satisfies an ill-informed network administrator who says you must run some kind of AV application. It's free and it won't handicap the system.

    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have all the disadvantages mentioned in section 7.

    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.

    10. As a Mac user, you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither can you assume that you will always be safe from exploitation, no matter what you do. Navigating the Internet is like walking the streets of a big city. It's as safe or as dangerous as you choose to make it. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. Nothing can lessen the need for safe computing practices.