我已经在 Windows 10 机器上安装了 Chocolatey,然后在内部 Nexus 实例上设置了内部 Chocolatey 注册表。
我已将我的 Nexus 实例设置为默认官方 Chocolatey 注册表的代理,并且我能够搜索包但无法安装它们......
搜索时的日志文件内容:
2019-05-03 09:37:32,955 7708 [DEBUG] - Searching for package information
2019-05-03 09:37:32,961 7708 [DEBUG] - Running list with the following filter = 'maven'
2019-05-03 09:37:32,961 7708 [DEBUG] - --- Start of List ---
2019-05-03 09:37:33,128 7708 [DEBUG] - Attempting to gather credentials for 'https://xxxxxxx/nexus/repository/chocolatey-packages/'
2019-05-03 09:37:33,132 7708 [DEBUG] - Using saved credentials
2019-05-03 09:37:33,508 7708 [INFO ] - maven 3.5.2
2019-05-03 09:37:33,512 7708 [DEBUG] - --- End of List ---
2019-05-03 09:37:33,514 7708 [WARN ] - 1 packages found.
2019-05-03 09:37:33,516 7708 [WARN ] -
当我尝试“choco install maven”时,日志文件中的内容如下:
2019-05-03 09:11:53,985 11996 [INFO ] - Installing the following packages:
2019-05-03 09:11:53,989 11996 [INFO ] - maven
2019-05-03 09:11:53,992 11996 [INFO ] - By installing you accept licenses for the packages.
2019-05-03 09:11:54,083 11996 [DEBUG] - Using 'https://xxxxx/nexus/repository/chocolatey-packages/'.
2019-05-03 09:11:54,225 11996 [DEBUG] - Attempting to gather credentials for 'https://xxxxx/nexus/repository/chocolatey-packages/'
2019-05-03 09:11:54,235 11996 [DEBUG] - Using passed in credentials
2019-05-03 09:11:54,415 11996 [DEBUG] - - Supports prereleases? 'True'.
2019-05-03 09:11:54,419 11996 [DEBUG] - - Is ServiceBased? 'True'.
2019-05-03 09:11:54,537 11996 [DEBUG] - Package 'maven' found on source 'https://xxxxxx/nexus/repository/chocolatey-packages/'
2019-05-03 09:12:15,583 11996 [ERROR] - maven not installed. An error occurred during installation:
Unable to connect to the remote server
2019-05-03 09:12:15,589 11996 [INFO ] - maven package files install completed. Performing other installation steps.
2019-05-03 09:12:15,593 11996 [DEBUG] - No package information as package is null.
2019-05-03 09:12:15,626 11996 [DEBUG] - No package information to save as package is null.
2019-05-03 09:12:15,628 11996 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-05-03 09:12:15,630 11996 [ERROR] - The install of maven was NOT successful.
2019-05-03 09:12:15,634 11996 [ERROR] - maven not installed. An error occurred during installation:
Unable to connect to the remote server
2019-05-03 09:12:15,644 11996 [WARN ] -
Chocolatey installed 0/1 packages. 1 packages failed.