Azure / AzureStackHCI-EvalGuide

Welcome to the Azure Stack HCI Evaluation Guide!
Creative Commons Attribution 4.0 International
141 stars 83 forks source link

unable to install/upgrade Chocolatey #100

Open PennyMa427 opened 1 year ago

PennyMa427 commented 1 year ago

image

Karl-WE commented 1 year ago

Dear Penny, just to make sure, have you tried the restart that's requested on the error message?

tkos12 commented 11 months ago

Hello,

I am also having an issue with the chocolatey install during ashci deployment from ARM template. Tried to delete the directory to reinstall and I do not have sufficient privileges. I have redeployed the VM since errors occurred during deployment and I was unable to connect to it.


_PS C:\Users\AzureUser> Get-ExecutionPolicy
Unrestricted
PS C:\Users\AzureUser> [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
WARNING: Files from a previous installation of Chocolatey were found at 'c:\choco'.

WARNING: An existing Chocolatey installation was detected. Installation will not continue.
For security reasons, this script will not overwrite existing installations.

Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.
If the existing installation is not functional or a prior installation did not complete, follow these steps:
 - Backup the files at the path listed above so you can restore your previous installation if needed
 - Remove the existing installation manually
 - Rerun this installation script
 - Reinstall any packages previously installed, if needed (refer to the lib folder in the backup)

Once installation is completed, the backup folder is no longer needed and can be deleted.
```_

![chocolatey](https://github.com/Azure/AzureStackHCI-EvalGuide/assets/121307669/9e1c5418-d735-448b-b15f-8365fa4698c0)
![ashci-deployment-errors](https://github.com/Azure/AzureStackHCI-EvalGuide/assets/121307669/3e7ab2c6-8f8e-4f8b-a951-3816331bd156)