Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

The system cannot find the file specified error on every cinst #709

Closed
mgcrea opened this issue Oct 20, 2015 · 6 comments
Closed

The system cannot find the file specified error on every cinst #709

mgcrea opened this issue Oct 20, 2015 · 6 comments

Comments

@mgcrea
Copy link

mgcrea commented Oct 20, 2015

Running a clean install of chocolatey (0.9.9.11) in a Virtualbox VM, after a clean install. I get the following error:
The system cannot find the file specified when I'm installing any package (tried googlechrome, cygwin, nodepad++).

Example with apt-cyg. Any idea?

PS C:\ProgramData\chocolatey> cinst -y cyg-get -debug 1
Chocolatey is running on Windows v 6.1.7601.65536
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" install -y cyg-get -debug 1
Received arguments: install -y cyg-get -debug 1

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='install'|
CacheLocation='C:\Users\carlipa\AppData\Local\Temp'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://chocolatey.org/api/v2/'|Debug='True'|Verbose='False'|
Force='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='cyg-get 1'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='cyg-get;1'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.1.7601.65536'|
Information.PlatformName='Windows 7'|
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'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
cyg-get;1
By installing you accept licenses for the packages.
[NuGet] Attempting to resolve dependency 'Cygwin'.
[NuGet] Installing 'Cygwin 2.2.1'.
[NuGet] Added file 'chocolateyInstall.ps1' to folder 'Cygwin\tools'.
[NuGet] Added file 'Cygwin.nupkg' to folder 'Cygwin'.
[NuGet] Successfully installed 'Cygwin 2.2.1'.

Cygwin v2.2.1
Contents of 'C:\ProgramData\chocolatey\lib\Cygwin\tools\chocolateyInstall.ps1':
$packageName = 'Cygwin'
$installerType = 'exe'
$url = 'http://cygwin.com/setup-x86.exe'
$url64 = 'http://cygwin.com/setup-x86_64.exe'
$validExitCodes = @(0)

$binRoot = Get-BinRoot
$cygRoot = join-path $binRoot 'cygwin'
$cygWinSetupFile = "$cygRoot\cygwinsetup.exe"
$cygPackages = join-path $cygRoot packages

if (!(Test-Path($cygRoot))) {
  [System.IO.Directory]::CreateDirectory($cygRoot) | Out-Null
}

Get-ChocolateyWebFile $packageName $cygWinSetupFile $url $url64

# https://cygwin.com/faq/faq.html#faq.setup.cli
$silentArgs = "--quiet-mode --root $cygRoot --local-package-dir $cygPackages -s http://mirrors.kernel.org/sourceware/cyg
win/ --packages default"

Install-ChocolateyInstallPackage $packageName $installerType $silentArgs $cygWinSetupFile -validExitCodes $validExitCode
s

Install-ChocolateyPath $cygRoot

Calling command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass
 -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.Current
UICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\ch
ocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\Cygwin\tools\chocolateyInstal
l.ps1' -installArguments '' -packageParameters ''"']
 DEBUG: Posh version is 2.0
 DEBUG: Running 'Get-BinRoot'
 Get-BinRoot is going to be deprecated by v1. Many packages no longer require it since the folders no longer have versio
ns on them.
 DEBUG: Running 'Get-ChocolateyWebFile' for Cygwin with url:'http://cygwin.com/setup-x86.exe',
 fileFullPath:'C:\tools\cygwin\cygwinsetup.exe', url64bit:'http://cygwin.com/setup-x86_64.exe', checksum: '',
 checksumType: '', checksum64: '', checksumType64: ''
 DEBUG: Running 'Get-ProcessorBits'
 DEBUG: CPU is 64 bit
 DEBUG: Setting url to 'http://cygwin.com/setup-x86_64.exe' and bitPackage to 64
 DEBUG: Running 'Get-WebHeaders' with url:'http://cygwin.com/setup-x86_64.exe', userAgent: 'chocolatey command line'
 DEBUG: Setting the UserAgent to 'chocolatey command line'
 DEBUG: Request Headers:
 DEBUG:   'Accept':'*/*'
 DEBUG:   'User-Agent':'chocolatey command line'
 DEBUG: Response Headers:
 DEBUG:   'Vary':'Accept-Encoding'
 DEBUG:   'Connection':'close'
 DEBUG:   'Accept-Ranges':'bytes'
 DEBUG:   'Content-Length':'877568'
 DEBUG:   'Content-Type':'application/octet-stream'
 DEBUG:   'Date':'Tue, 20 Oct 2015 15:30:52 GMT'
 DEBUG:   'ETag':'"12006fc-d6400-5226616e23f1e"'
 DEBUG:   'Last-Modified':'Sun, 18 Oct 2015 19:32:29 GMT'
 DEBUG:   'Server':'Apache'
 DEBUG: Cygwin's requested file has already been downloaded. Using cached copy at
   'C:\tools\cygwin\cygwinsetup.exe'.
 DEBUG: Checking that 'C:\tools\cygwin\cygwinsetup.exe' is the size we expect it to be.
 DEBUG: Verifying package provided checksum of '' for 'C:\tools\cygwin\cygwinsetup.exe'.
 DEBUG: Running 'Get-ChecksumValid' with file:'C:\tools\cygwin\cygwinsetup.exe', checksum: '', checksumType: ''
 DEBUG: Running 'Install-ChocolateyInstallPackage' for Cygwin with file:'C:\tools\cygwin\cygwinsetup.exe', args:
 '--quiet-mode --root C:\tools\cygwin --local-package-dir C:\tools\cygwin\packages -s
 http://mirrors.kernel.org/sourceware/cygwin/ --packages default', fileType: 'exe', validExitCodes: '0'
 Installing Cygwin...
 DEBUG: Running 'Start-ChocolateyProcessAsAdmin' with exeToRun:'C:\tools\cygwin\cygwinsetup.exe', statements:
 '--quiet-mode --root C:\tools\cygwin --local-package-dir C:\tools\cygwin\packages -s
 http://mirrors.kernel.org/sourceware/cygwin/ --packages default '
 DEBUG: Elevating Permissions and running C:\tools\cygwin\cygwinsetup.exe --quiet-mode --root C:\tools\cygwin
 --local-package-dir C:\tools\cygwin\packages -s http://mirrors.kernel.org/sourceware/cygwin/ --packages default . This

 may take a while, depending on the statements.
 Starting cygwin install, version 2.873
 User has backup/restore rights
 Current Directory: C:\tools\cygwin\packages
 Could not open service McShield for query, start and stop. McAfee may not be installed, or we don't have access.
 root: C:\tools\cygwin system
 Selected local directory: C:\tools\cygwin\packages
 net: Direct
 site: http://mirrors.kernel.org/sourceware/cygwin/
 Changing gid back to original
 running: C:\tools\cygwin\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"
 Changing gid to Administrators
 Ending cygwin install
 DEBUG: Finishing 'Start-ChocolateyProcessAsAdmin'
 Cygwin has been installed.
 DEBUG: Running 'Install-ChocolateyPath' with pathToInstall:'C:\tools\cygwin'
 DEBUG: Running 'Update-SessionEnvironment' - Updating the environment variables for the session.
Command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Comman
d "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICultur
e = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey
\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\Cygwin\tools\chocolateyInstall.ps1' -
installArguments '' -packageParameters ''"'] exited with '0'
Calling command ['"shutdown" /a']
cyg-get not installed. An error occurred during installation:
 The system cannot find the file specified
No package information as package is null.
No package information to save as package is null.
The install of cyg-get was NOT successful.
cyg-get not installed. An error occurred during installation:
 The system cannot find the file specified
1 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 t
he version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 1/3 package(s). 2 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
 - cyg-get
 - 1
Exiting with 1
PS C:\ProgramData\chocolatey>
@ferventcoder
Copy link
Contributor

Debug is a switch, not something that accepts parameters. Basically you are saying choco install cyg-get -y --debug AND choco install 1 -y --debug.

@ferventcoder
Copy link
Contributor

This is because we allow you to state choco install cyg-get git notepadplusplus

@mgcrea
Copy link
Author

mgcrea commented Oct 20, 2015

@ferventcoder sorry for the rookie mistake ;-). Thanks!

@ferventcoder
Copy link
Contributor

No worries. Try to log any future issues over at chocolatey/choco. You can also hop into gitter if you want to determine if you are seeing an issue or not.

@ferventcoder
Copy link
Contributor

@ferventcoder
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants