Golang 1.19 was just released and I couldn’t wait to update to the latest version.

My OS is Win10 and when I installed it there was an exception.

1
The installer has encountered an unexpected errorinstalling this package. This may indicate a problem withthis package. The error code is 2502.

2502 error

1
The installer has encountered an unexpected errorinstalling this package. This may indicate a problem withthis package. The error code is 2503.

2503 error

Solution

Modify the permissions of the C:\Windows\Temp folder.

Right-click the folder and select Security in the pop-up dialog box. Then edit the user’s permissions and give them “Full Control” and “Modify” permissions.

Modify Permissions

Re-install

Rerun the installer and everything is OK. my Golang has been upgraded to the latest version.

go 1.19

1
2
C:\Users\<user>\Desktop>go version
go version go1.19 windows/amd64