Software Update failing on High Sierra: (NSURLErrorDomain error -1012.)

When I try to run Software Update (on High Sierra), I get the following error:

"An error has occurred / This operation couldn't be completed. / (NSURLErrorDomain error -1012.)"


I've been trying a few solutions I've found here and on google, but I don't want to make the problem worse by trying something more complicated that I don't fully understand, so guidance would be appreciated.


I noticed I've had a few 'network' related errors popping up in different places the last few weeks, so I think this is another one, and I suspect they are all part of the same problem. Hopefully these can give you a clue:


-screen sharing (with Apple support) won't connect any more. it says it's connected but they see nothing.

-adding new accounts in SystemPreferences>InternetAccounts fails to load remote web content.

-when I connect new iPhone 15 - 7.0.3, high sierra will prompt to install update to support the device, but the download fails to establish after I click to install.

-High Sierra installer 1) downloaded from Mac App Store or 2) from Recovery Install, both fail to connect to servers during attempted installations.

-and now software update.


As a test, I installed a clean High Sierra on another drive (same Macbook Pro) and 4 of those 5 issues don't occur on the clean system. I can't test screen sharing or I might be 5 for 5.


I tried reinstalling High Sierra on top of itself (on the problem system), but I still get the same errors afterward.


I tried a different internet connection, but no change.


I have NO VPN.

I have tried with built-In firewall disabled.

I have Little Snitch, but it's disabled.


Ideas?

Help?


MacBook Pro 17″

Posted on Oct 21, 2023 10:21 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 15, 2023 2:35 PM

Scott Bernard wrote:

Well, we sort of finally found the problem, and I have a painful working solution to get around it, since we can't fix it.


Well, I have to revise my earlier post after further testing revealed some things, and other helpful users gave some really good instruction.



The big discovery since my earlier post:

***ALL High Sierra Clean Installs come with the errors/problem... ...until you restart it once.***

Everything below is revised to reflect this.



We sort of finally found the main problem, and I have a working solution to get around it, since we can't fix it.

If you are on High Sierra and none of the other "(NSURLErrorDomain error -1012.)" threads fixes have worked for you, keep reading.


The Problem:

It seems there is something local stopping connections to at least swscan.apple.com, but we don't know what/where it is in order to fix it in-place. 


Do you have the same problem?

1. First, I suspect you have to be on High Sierra to have this problem. I installed multiple Mojaves and they were all error-free.

2. Second, take a look at these related errors to the main problem. Errors 1-3 are the easiest to test for, but maybe some of the other errors already look familiar.

1) Can't add Google or Yahoo email accounts to Internet Accounts pane.

2) Software Update failing on High Sierra: (NSURLErrorDomain error -1012.) (this thread)

3) iOS 17 iPhone 12 not showing up on 2009 iMac iTunes.*

*make sure you have the latest iTunes version if you test. On High Sierra this should be 12.8.3. For some users, this version never appeared in the App Store software Updates section. Get it here: Download iTunes 12.8.3 for Mac

4) Can't download High Sierra full installer.

5) other unspecified "server" or "connection" errors.

3. Third, do 1-3 occur together? If you have 1 or 2 of the errors, but a 3rd one works fine, you likely don't have the problem described above, and this solution would be overkill.


The Solution:

    1. The eventual workaround is to install a clean copy of High Sierra.
    2. Migrate your users and data into the clean copy, but to avoid ugly permissions problems, try following the outline found hereIs there a difference in results between Migration Assistant app and 'Transfer Information' option during OS installation?
    3. The High Sierra installer installs an older version of iTunes. You want to install the latest version of iTunes or you may have device connection issues. On High Sierra this should be 12.8.3. Get it here: Download iTunes 12.8.3 for Mac
    4. Check the App Store software Updates section to see if the error is gone. If it's NOT gone, don't panic, just restart your system once, and check again.
49 replies
Question marked as Top-ranking reply

Nov 15, 2023 2:35 PM in response to Scott Bernard

Scott Bernard wrote:

Well, we sort of finally found the problem, and I have a painful working solution to get around it, since we can't fix it.


Well, I have to revise my earlier post after further testing revealed some things, and other helpful users gave some really good instruction.



The big discovery since my earlier post:

***ALL High Sierra Clean Installs come with the errors/problem... ...until you restart it once.***

Everything below is revised to reflect this.



We sort of finally found the main problem, and I have a working solution to get around it, since we can't fix it.

If you are on High Sierra and none of the other "(NSURLErrorDomain error -1012.)" threads fixes have worked for you, keep reading.


The Problem:

It seems there is something local stopping connections to at least swscan.apple.com, but we don't know what/where it is in order to fix it in-place. 


Do you have the same problem?

1. First, I suspect you have to be on High Sierra to have this problem. I installed multiple Mojaves and they were all error-free.

2. Second, take a look at these related errors to the main problem. Errors 1-3 are the easiest to test for, but maybe some of the other errors already look familiar.

1) Can't add Google or Yahoo email accounts to Internet Accounts pane.

2) Software Update failing on High Sierra: (NSURLErrorDomain error -1012.) (this thread)

3) iOS 17 iPhone 12 not showing up on 2009 iMac iTunes.*

*make sure you have the latest iTunes version if you test. On High Sierra this should be 12.8.3. For some users, this version never appeared in the App Store software Updates section. Get it here: Download iTunes 12.8.3 for Mac

4) Can't download High Sierra full installer.

5) other unspecified "server" or "connection" errors.

3. Third, do 1-3 occur together? If you have 1 or 2 of the errors, but a 3rd one works fine, you likely don't have the problem described above, and this solution would be overkill.


The Solution:

    1. The eventual workaround is to install a clean copy of High Sierra.
    2. Migrate your users and data into the clean copy, but to avoid ugly permissions problems, try following the outline found hereIs there a difference in results between Migration Assistant app and 'Transfer Information' option during OS installation?
    3. The High Sierra installer installs an older version of iTunes. You want to install the latest version of iTunes or you may have device connection issues. On High Sierra this should be 12.8.3. Get it here: Download iTunes 12.8.3 for Mac
    4. Check the App Store software Updates section to see if the error is gone. If it's NOT gone, don't panic, just restart your system once, and check again.

Nov 11, 2023 5:16 PM in response to Scott Bernard

Whew... I wonder f t's juat a Certificate issue?


Go on the Apple certificate page:

Apple PKI - Apple


Download the Apple Intermediate Certificates

Apple IST CA 2 - G1 Certificate (direct download)


Double click the downloaded certificate to install it in Keychain Access.

You should see it now, in login certificates.

https://discussions.apple.com/thread/251211674?answerId=253087027022&page=1


Thanks to Roger Wilmut1…

how to renew certificates expired on 2011… - Apple Community

how to renew certificates expired on 2011… - Apple Community


DST Root CA X3 Certificate Expiration Problems and Fix - The Tech Journal (stephenwagner.com)


Oct 21, 2023 1:19 PM in response to Scott Bernard

First see if you can download these with another browser:

Browsers by Mac operating system - Apple Community


Combo and 2020-006 High Sierra security update.


If not, it probably is some certificate issue being so old an operating system. You may need to back date your computer's clock four years and restart, and then run the combo update.


Check also if you are compatible with Mojave. The difference in compatibility between Mojave and High Sierra application compatibility is not that significant. Catalina and later is much more significant.


Nov 11, 2023 4:45 PM in response to Scott Bernard

Well, we sort of finally found the problem, and I have a painful working solution to get around it, since we can't fix it.

If you are on High Sierra. and none of the other "(NSURLErrorDomain error -1012.)" thread fixes have worked for you, keep reading. I'll do my best to make this as simple as possible.


The Problem:

It seems there is something local stopping connections to at least swscan.apple.com, but we don't know what/where it is in order to fix it.


Do you have the same problem?

  1. First, I suspect you have to be on High Sierra to have the problem. I installed multiple Mojaves and they were all error-free.
  2. Second, take a look at this link, first post, and the list of errors. Errors 1-3 are the easiest to test for, but maybe some of the other errors already look familiar. (see note #1 below re: testing error 2). https://forums.macrumors.com/threads/nasty-mystery-high-sierra-connection-problem.2409308/
  3. Third, do all 3 occur together? If you have 1 or 2 of the errors, but a 3rd one works fine, you likely don't have the problem described above.


The Solution:

The eventual painful solution is to install a new copy of High Sierra and migrate everything into that one.

However, big double painful issue, some of the brand new High Sierra installations came with the same problem already. I'm not kidding. I can't explain it. I did nothing to the new installations beyond making a login to test them, and they already had the problem/errors. So, you have to test each High Sierra installation for some of the errors in the link above, until you find one that's error free (see note #1 below). The installer file isn't bad itself, because I used the same one to make my error-free installations.


Notes:

  1. If you think you have the iTunes/iPhone connection issue (error 2), or you want to test for this error, make sure you have the latest iTunes version for High Sierra, iTunes 12.8.3. The High Sierra installer actually gives an OLDER version that will still fail, even when everything else is fixed. Download iTunes 12.8.3 for Mac
  2. When you start installing new High Sierras, and testing them for this problem/errors, DO NOT MIGRATE/TRANSFER IN accounts during installation or setup (you can use Migration Assistant app in Applications/Utilities later on). Make a new account, and make sure it has a different name from any account you intend to migrate in later. If you migrate before you test, depending on how big your accounts are, you could be waiting FOR HOURS to get in, and the system may test bad anyway.
  3. The horrible long read of how ths was all figured out can be found here: https://forums.macrumors.com/threads/nasty-mystery-high-sierra-connection-problem.2409308/

Oct 22, 2023 2:41 PM in response to Scott Bernard

Yes you can delete the badones.


Go on the Apple certificate page:

Apple PKI - Apple


Download the Apple Intermediate Certificates

Apple IST CA 2 - G1 Certificate (direct download)


Double click the downloaded certificate to install it in Keychain Access.

You should see it now, in login certificates.

https://discussions.apple.com/thread/251211674?answerId=253087027022&page=1


Thanks to Roger Wilmut1…

how to renew certificates expired on 2011… - Apple Community

how to renew certificates expired on 2011… - Apple Community


DST Root CA X3 Certificate Expiration Problems and Fix - The Tech Journal (stephenwagner.com)


Oct 30, 2023 5:21 PM in response to Scott Bernard

NSURLErrorDomain - 1012" when enrolling devices with Apple Configurator. This error sometimes occurs because Apple Configurator has cached an expired certificate


That's what Google comes up with. Certificates are attached security profiles that come on all downloaded software. Given Apple updates are no longer current in High Sierra and older, and for that matter Big Sur and older, any older files may have out of date certificates which can usually be bypassed by setting the system time to an older date.


But you may have to set the system time on routers, and any other network connectivity it taps into as well.

https://www.techinpost.com/nsurlerrordomain-error-1012-code/

Oct 22, 2023 10:41 AM in response to Scott Bernard

If after an erase and install (there is no such thing as a clean install), and switching users you get the same symptom, it is a systems issue. I'm suspecting it is networking not working right somewhere.


And given my tip, which I did indeed forget about, I suspect the DHCP lease has something to do with it. Another tip which sounds relevant:


https://forums.ivanti.com/s/article/NSURLErrorDomain-1012-error-when-trying-to-enroll-a-DEP-registered-device?language=en_US


Ivanti is a help desk ticketing system.

Oct 30, 2023 4:28 PM in response to BDAqua

I'm still suffering, and looking for a solution.


From my testing it seems like High Sierra installed on a thumb drive will always be error free, but on an internal or external hard drive, it always has the errors. I can't explain it.


I've installed the unsupported Mojave multiple times on hard drives now, and they always work normal, free of the errors.


I've also used Migration Assistant to bring EVERYTHING over from an error High Sierra system, into a working Mojave system. The errors DO NOT migrate over.


I also tried cloning a working thumb drive High Sierra onto a hard drive, but it won't boot up.


I wanted to try a Sierra system out of curiosity, but I can't get the installer to work right.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Software Update failing on High Sierra: (NSURLErrorDomain error -1012.)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.