chocolatey / choco

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

Multiple packages with --force fails to locate already installed packages #345

Closed staticcat closed 6 months ago

staticcat commented 9 years ago

The command line:

choco install notepadplusplus googlechrome atom 7zip --confirm --force

will fail with the following error:

notepadplusplus v6.7.9.2 (forced)
 The install of notepadplusplus was successful.
googlechrome not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
atom not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
7zip not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 1/4 package(s). 3 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
 - 7zip
 - googlechrome
 - atom

I would expect the --force option to force the re-installation of the packages, not error as they have here. An example of this is the same call done individually for each package.

choco install atom --confirm --force

Results in (the machine is in the same state):

 Installing Atom...
 Atom has been installed.
 The install of atom was successful.

Chocolatey installed 1/1 package(s). 0 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
ferventcoder commented 9 years ago

I would expect the same. Can you go to your log C:\ProgramData\chocolatey\logs\chocolatey.log and provide the information out of that instead of from the command line?

marcofranssen commented 8 years ago

I have similar issues, since I upgraded to the latest version. doing a cup all gives me following.

2015-10-26 14:02:15,752 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.11, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2015-10-26 14:02:15,752 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.9.9.11, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2015-10-26 14:02:15,802 [DEBUG] - XmlConfiguration is now operational
2015-10-26 14:02:16,064 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\config\chocolatey.config.update".
2015-10-26 14:02:16,112 [INFO ] - ============================================================
2015-10-26 14:02:16,117 [INFO ] - Chocolatey v0.9.9.11
2015-10-26 14:02:16,123 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2015-10-26 14:02:16,129 [DEBUG] - Attempting to delete file "C:/ProgramData/Chocolatey/choco.exe.old".
2015-10-26 14:02:16,131 [DEBUG] - Attempting to delete file "C:\ProgramData\Chocolatey\choco.exe.old".
2015-10-26 14:02:16,205 [DEBUG] - Command line: "C:\ProgramData\Chocolatey\choco.exe" upgrade all
2015-10-26 14:02:16,208 [DEBUG] - Received arguments: upgrade all
2015-10-26 14:02:16,253 [DEBUG] - 
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.
2015-10-26 14:02:16,267 [DEBUG] - Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\Marco\AppData\Local\Temp'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://chocolatey.org/api/v2/'|Debug='False'|Verbose='False'|
Force='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='all'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='all'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows 8.1'|
Information.ChocolateyVersion='0.9.9.11'|
Information.ChocolateyProductVersion='0.9.9.11'|
Information.FullName='choco, Version=0.9.9.11, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|Features.AutoUninstaller='False'|
Features.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|
PinCommand.Command='unknown'|
2015-10-26 14:02:16,275 [DEBUG] - _ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
2015-10-26 14:02:16,295 [INFO ] - Upgrading the following packages:
2015-10-26 14:02:16,303 [INFO ] - all
2015-10-26 14:02:16,306 [INFO ] - By upgrading you accept licenses for the packages.
2015-10-26 14:02:16,582 [DEBUG] - Running list with the following filter = ''
2015-10-26 14:02:16,585 [DEBUG] - --- Start of List ---
2015-10-26 14:02:18,600 [DEBUG] - 7zip 9.38
2015-10-26 14:02:18,609 [DEBUG] - 7zip.install 9.38
2015-10-26 14:02:18,612 [DEBUG] - Atom 1.0.7
2015-10-26 14:02:18,616 [DEBUG] - autohotkey.portable 1.1.22.06
2015-10-26 14:02:18,619 [DEBUG] - autoit.commandline 3.3.12.0
2015-10-26 14:02:18,623 [DEBUG] - boot2docker 1.6.2
2015-10-26 14:02:18,626 [DEBUG] - chocolatey 0.9.9.11
2015-10-26 14:02:18,629 [DEBUG] - cmake 3.3.0
2015-10-26 14:02:18,633 [DEBUG] - cmake.install 3.3.0
2015-10-26 14:02:18,637 [DEBUG] - docker 1.8.1
2015-10-26 14:02:18,640 [DEBUG] - dropbox 3.10.8
2015-10-26 14:02:18,643 [DEBUG] - easy.install 0.6.11.4
2015-10-26 14:02:18,647 [DEBUG] - elixir 1.1.1
2015-10-26 14:02:18,650 [DEBUG] - erlang 18.1
2015-10-26 14:02:18,652 [DEBUG] - expresso 3.0.4750
2015-10-26 14:02:18,655 [DEBUG] - fiddler4 4.6.0.7
2015-10-26 14:02:18,658 [DEBUG] - Growl 2.0.9.20130406
2015-10-26 14:02:18,660 [DEBUG] - jre8 8.0.60.20150902
2015-10-26 14:02:18,662 [DEBUG] - keepass 2.30
2015-10-26 14:02:18,665 [DEBUG] - keepass.install 2.30
2015-10-26 14:02:18,667 [DEBUG] - kitty.portable 0.63.2.2
2015-10-26 14:02:18,670 [DEBUG] - make 3.81.4
2015-10-26 14:02:18,674 [DEBUG] - mRemoteNG 1.72
2015-10-26 14:02:18,683 [DEBUG] - nodejs 4.1.2
2015-10-26 14:02:18,686 [DEBUG] - nodejs.install 4.1.2
2015-10-26 14:02:18,689 [DEBUG] - npm 1.4.9.20150213
2015-10-26 14:02:18,692 [DEBUG] - packer 0.8.6
2015-10-26 14:02:18,694 [DEBUG] - paint.net 4.0.5
2015-10-26 14:02:18,697 [DEBUG] - PDFCreator 2.1.2
2015-10-26 14:02:18,699 [DEBUG] - picpick.portable 4.0.4
2015-10-26 14:02:18,702 [DEBUG] - pidgin 2.10.11
2015-10-26 14:02:18,705 [DEBUG] - pip 1.2.0
2015-10-26 14:02:18,708 [DEBUG] - puppet 3.8.3
2015-10-26 14:02:18,710 [DEBUG] - python2 2.7.10
2015-10-26 14:02:18,714 [DEBUG] - resharper 8.2.3000.5176
2015-10-26 14:02:18,716 [DEBUG] - slack 1.0.0
2015-10-26 14:02:18,719 [DEBUG] - Sudo 1.0.2
2015-10-26 14:02:18,722 [DEBUG] - sysinternals 2015.07.20
2015-10-26 14:02:18,724 [DEBUG] - vagrant 1.7.4
2015-10-26 14:02:18,727 [DEBUG] - vlc 2.2.1.20150630
2015-10-26 14:02:18,729 [DEBUG] - WindowsLiveInstaller 2012.0.0
2015-10-26 14:02:18,732 [DEBUG] - winscp 5.7.5
2015-10-26 14:02:18,734 [DEBUG] - winscp.install 5.7.5
2015-10-26 14:02:18,739 [WARN ] - 43 packages installed.
2015-10-26 14:02:18,743 [DEBUG] - --- End of List ---
2015-10-26 14:02:28,170 [WARN ] - 7zip was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:02:28,711 [WARN ] - 7zip.install was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:02:29,473 [WARN ] - atom was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:02:31,086 [WARN ] - autohotkey.portable was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:02:31,659 [WARN ] - autoit.commandline was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:02:35,290 [INFO ] - boot2docker v1.6.2 is the latest version available based on your source(s).
2015-10-26 14:03:48,542 [INFO ] - chocolatey v0.9.9.11 is the latest version available based on your source(s).
2015-10-26 14:03:52,638 [WARN ] - cmake was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:09,771 [WARN ] - cmake.install was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:20,535 [WARN ] - docker was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:21,713 [WARN ] - dropbox was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:36,862 [WARN ] - easy.install was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:38,569 [WARN ] - elixir was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:38,766 [WARN ] - erlang was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:39,224 [WARN ] - expresso was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:39,799 [WARN ] - fiddler4 was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:39,915 [WARN ] - growl was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:40,111 [WARN ] - jre8 was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:40,269 [WARN ] - keepass was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:40,475 [WARN ] - keepass.install was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:40,883 [WARN ] - kitty.portable was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:41,495 [WARN ] - make was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:41,621 [WARN ] - mremoteng was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:41,709 [ERROR] - Error deserializing response of type chocolatey.infrastructure.app.domain.Registry:
 There is an error in XML document (12, 30).
2015-10-26 14:04:41,714 [WARN ] - Unable to read registry snapshot file:
 There is an error in XML document (12, 30).
2015-10-26 14:04:41,895 [WARN ] - nodejs was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:42,060 [WARN ] - nodejs.install was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:46,289 [INFO ] - npm v1.4.9.20150213 is the latest version available based on your source(s).
2015-10-26 14:04:46,415 [WARN ] - packer was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:46,584 [WARN ] - paint.net was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:46,752 [WARN ] - pdfcreator was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:46,938 [WARN ] - picpick.portable was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:47,116 [WARN ] - pidgin was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:47,231 [WARN ] - pip was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:47,388 [WARN ] - puppet was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:47,568 [WARN ] - python2 was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:47,688 [WARN ] - resharper was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:47,839 [WARN ] - slack was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:47,993 [WARN ] - sudo was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:48,137 [WARN ] - sysinternals was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:48,596 [WARN ] - vagrant was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:48,754 [WARN ] - vlc was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:48,969 [WARN ] - windowsliveinstaller was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:49,155 [WARN ] - winscp was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:49,350 [WARN ] - winscp.install was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2015-10-26 14:04:49,375 [WARN ] - 
Chocolatey upgraded 0/43 package(s). 0 package(s) failed.
 40 package(s) had warnings.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2015-10-26 14:04:49,384 [WARN ] - Warnings:
2015-10-26 14:04:49,414 [WARN ] -  - nodejs
2015-10-26 14:04:49,425 [WARN ] -  - slack
2015-10-26 14:04:49,444 [WARN ] -  - autohotkey.portable
2015-10-26 14:04:49,453 [WARN ] -  - docker
2015-10-26 14:04:49,460 [WARN ] -  - jre8
2015-10-26 14:04:49,464 [WARN ] -  - winscp.install
2015-10-26 14:04:49,468 [WARN ] -  - expresso
2015-10-26 14:04:49,473 [WARN ] -  - winscp
2015-10-26 14:04:49,477 [WARN ] -  - packer
2015-10-26 14:04:49,481 [WARN ] -  - easy.install
2015-10-26 14:04:49,485 [WARN ] -  - windowsliveinstaller
2015-10-26 14:04:49,489 [WARN ] -  - resharper
2015-10-26 14:04:49,493 [WARN ] -  - autoit.commandline
2015-10-26 14:04:49,497 [WARN ] -  - puppet
2015-10-26 14:04:49,501 [WARN ] -  - paint.net
2015-10-26 14:04:49,506 [WARN ] -  - fiddler4
2015-10-26 14:04:49,510 [WARN ] -  - elixir
2015-10-26 14:04:49,514 [WARN ] -  - erlang
2015-10-26 14:04:49,518 [WARN ] -  - python2
2015-10-26 14:04:49,522 [WARN ] -  - sudo
2015-10-26 14:04:49,526 [WARN ] -  - nodejs.install
2015-10-26 14:04:49,530 [WARN ] -  - 7zip
2015-10-26 14:04:49,534 [WARN ] -  - sysinternals
2015-10-26 14:04:49,538 [WARN ] -  - growl
2015-10-26 14:04:49,542 [WARN ] -  - cmake
2015-10-26 14:04:49,547 [WARN ] -  - make
2015-10-26 14:04:49,551 [WARN ] -  - keepass
2015-10-26 14:04:49,555 [WARN ] -  - kitty.portable
2015-10-26 14:04:49,559 [WARN ] -  - pidgin
2015-10-26 14:04:49,563 [WARN ] -  - dropbox
2015-10-26 14:04:49,567 [WARN ] -  - cmake.install
2015-10-26 14:04:49,571 [WARN ] -  - vlc
2015-10-26 14:04:49,575 [WARN ] -  - 7zip.install
2015-10-26 14:04:49,579 [WARN ] -  - pip
2015-10-26 14:04:49,584 [WARN ] -  - picpick.portable
2015-10-26 14:04:49,588 [WARN ] -  - mremoteng
2015-10-26 14:04:49,591 [WARN ] -  - pdfcreator
2015-10-26 14:04:49,595 [WARN ] -  - vagrant
2015-10-26 14:04:49,599 [WARN ] -  - keepass.install
2015-10-26 14:04:49,603 [WARN ] -  - atom
2015-10-26 14:04:49,607 [DEBUG] - Exiting with 0
adrianofante commented 6 years ago

I have the same problem installing multiple packages at the same time. Has anyone managed to solve ???

ferventcoder commented 6 years ago

@adrianofante I'm guessing this has to do with caching/indexing and the community repository. We are increasing the infrastructure again soon to handle the increased popularity, hopefully this time we'll have plenty of space to grow into.

github-actions[bot] commented 7 months ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.

github-actions[bot] commented 6 months ago

Dear contributor,

As this issue seems to have been inactive for quite some time now, it has been automatically closed. If you feel this is a valid issue, please feel free to re-open the issue if / when a pull request has been added. Thank you for your contribution.