chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.04k stars 890 forks source link

Chocolatey CLI v2.2.2 prompts for credentials when trying to install the ROS noetic desktop_full package #3439

Closed JustWagner closed 1 month ago

JustWagner commented 1 month ago

Checklist

What You Are Seeing?

Hello, after following the installation guide from the ROS wiki (https://wiki.ros.org/Installation/Windows) I've come across an issue with the following command: choco upgrade ros-noetic-desktop_full -y --execution-timeout=0 After execution the I am being promted to enter a username and password.

Invalid credentials specified. Please provide credentials for: https://aka.ms/ros/public

If I don't the installation fails with an 403 error code.

Shortly befor I installed the git without any Issues. After deleting and reinstalling the git it too promted my for my credential, thought I could just skip past it and it would reinstall normally.

Im using a Windows 11 desktop, same as most in my lab. This is a novel issue for us.

So far we've tried: switching networks, reinstalling everything, checking log files to the best of our abilities

What is Expected?

Other users within the same company had no issues and couldn't find a solution either. I am at a complete loss at how to proceed. Sorry if this isn't detailled enough, Im just starting out with my thesis and am new to this framework.

How Did You Get This To Happen?

I've followed every step in this tutorial https://wiki.ros.org/Installation/Windows installing vs 2019 and all required packages

  1. @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  2. choco upgrade git -y
  3. closed an reopended the shell in admin mode
  4. git --version
  5. mkdir c:\opt\chocolatey
  6. set ChocolateyInstall=c:\opt\chocolatey
  7. choco source add -n=ros-win -s="https://aka.ms/ros/public" --priority=1
  8. choco upgrade ros-noetic-desktop_full -y --execution-timeout=0

System Details

Installed Packages

Chocolatey v2.2.2
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
git 2.45.0
git.install 2.45.0
5 packages installed.

Output Log

Chocolatey v2.2.2
Chocolatey is running on Windows v 10.0.22621.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade ros-noetic-desktop_full -y --execution-timeout=0 --debug --verbose
Received arguments: upgrade ros-noetic-desktop_full -y --execution-timeout=0 --debug --verbose
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
Performing validation checks.
Global Configuration Validation Checks:
 - Package Exit Code / Exit On Reboot = Checked
System State Validation Checks:
 Reboot Requirement Checks:
 - Pending Computer Rename = Checked
 - Pending Component Based Servicing = Checked
 - Pending Windows Auto Update = Checked
 - Pending File Rename Operations = Ignored
 - Pending Windows Package Installer = Checked
 - Pending Windows Package Installer SysWow64 = Checked
Cache Folder Lockdown Checks:
 - Elevated State = Checked
 - Folder Exists = Checked
 - Folder lockdown = Checked
The source 'https://aka.ms/ros/public;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type

NOTE: Hiding sensitive configuration data! Please double and triple
 check to be sure no sensitive data is shown, especially if copying
 output to a gist for review.
Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\ZOJWAGN2\AppData\Local\Temp\chocolatey'|
CommandExecutionTimeoutSeconds='0'|WebRequestTimeoutSeconds='30'|
Sources='https://aka.ms/ros/public;https://community.chocolatey.org/api/v2/'|

SourceType='normal'|ShowOnlineHelp='False'|Debug='True'|Verbose='True'|
Trace='False'|Force='False'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='False'|DisableCompatibilityChecks='False'|
AcceptLicense='True'|AllowUnofficialBuild='False'|
Input='ros-noetic-desktop_full'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='ros-noetic-desktop_full'|Prerelease='False'|
ForceX86='False'|OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.22621.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='2.2.2.0'|
Information.ChocolateyProductVersion='2.2.2'|
Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='ZOJWAGN2'|Information.UserDomainName='CZNET'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='False'|
Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional'|

Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'|
ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
_ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
Upgrading the following packages:
ros-noetic-desktop_full
By upgrading, you accept licenses for the packages.
Running list with the following filter = ''
--- Start of List ---
Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
git 2.45.0
git.install 2.45.0
--- End of List ---
ros-noetic-desktop_full is not installed. Installing...
Running list with the following filter = ''
--- Start of List ---
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
git 2.45.0
git.install 2.45.0
--- End of List ---
Resolving resource ListResource for source https://aka.ms/ros/public
Attempting to gather credentials for 'https://aka.ms/ros/public'
Invalid credentials specified.
Attempting to gather credentials for 'https://aka.ms/ros/public'
This is a retry attempt. Asking user for credentials for 'https://aka.ms/ros/public'
Please provide credentials for: https://aka.ms/ros/public
User name:

Additional Context

No response

pauby commented 1 month ago

Invalid credentials specified. Please provide credentials for: https://aka.ms/ros/public

If I don't the installation fails with an 403 error code.

The source https://aka.ms/ros/public requires credentials (go to the link in your browser and you will see you must login). You need to provide credentials to use it.

Shortly befor I installed the git without any Issues. After deleting and reinstalling the git it too promted my for my credential, thought I could just skip past it and it would reinstall normally.

According to your instructions to reproduce, you installed git using the Chocolatey Community Repository (step 2) which doesn't require credentials to access. You then added the source https://aka.ms/ros/public (in step 7) and gave it a priority 1. That source requires credentials. Any package you install after that will check that source, and you will be prompted for credentials.

To continue you will have to provide credentials to access the source. If you need support on that please contact ROS themselves.

As an aside, the instructions provided by ROS will get you to where you are going, but will also cause you issues and should be corrected.

JustWagner commented 1 month ago

Ok thank you. It's a bit confusing to me since multiple people in my Lab use the same guide without issue, but I'll try and ask them!