前提・実現したいこと
chocolateyをインストールしたのですが、どのコマンドもアクセス拒否となります。
どなたかご教示いただけますでしょうか?
choco install rsync --version 5.5.0を実行したところ、以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
choco install rsync --version 5.5.0 Chocolatey v0.10.11 Chocolatey detected you are not running from an elevated command shell (cmd/powershell). You may experience errors - many functions/packages require admin rights. Only advanced users should run choco w/out an elevated shell. When you open the command shell, you should ensure that you do so with "Run as Administrator" selected. If you are attempting to use Chocolatey in a non-administrator setting, you must select a different location other than the default install location. See https://chocolatey.org/install#non-administrative-install for details. Do you want to continue?([Y]es/[N]o): Y Installing the following packages: rsync By installing you accept licenses for the packages. rsync not installed. An error occurred during installation: パス 'C:\ProgramData\chocolatey\lib\rsync\tools' へのアクセスが拒否されました。 rsync package files install completed. Performing other installation steps. This is try 1/3. Retrying after 300 milliseconds. Error converted to warning: パス 'C:\ProgramData\chocolatey.chocolatey' へのアクセスが拒否されました。 This is try 2/3. Retrying after 400 milliseconds. Error converted to warning: パス 'C:\ProgramData\chocolatey.chocolatey' へのアクセスが拒否されました。 Maximum tries of 3 reached. Throwing error. Cannot create directory "C:\ProgramData\chocolatey.chocolatey". Error was: System.UnauthorizedAccessException: パス 'C:\ProgramData\chocolatey.chocolatey' へのアクセスが拒否されました。 場所 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 場所 System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) 場所 System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) 場所 chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass64.<create_directory>b__63() 場所 chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0() 場所 chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent) 場所 chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory(String directoryPath) 場所 chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory_if_not_exists(String directoryPath, Boolean ignoreError) パス 'C:\ProgramData\chocolatey.chocolatey' へのアクセスが拒否されました。
②
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. PS C:\WINDOWS\system32> choco install rsync --version 5.5.0 Chocolatey v0.10.11 Installing the following packages: rsync By installing you accept licenses for the packages. rsync v5.5.0 [Approved] rsync package files install completed. Performing other installation steps. The package rsync wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[N]o/[P]rint): Y Attempt to get headers for https://www.itefix.net/dl/cwRsync_5.5.0_x86_Free.zip failed. The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://www.itefix.net/dl/cwRsync_5.5.0_x86_Free.zip'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found." Downloading rsync from 'https://www.itefix.net/dl/cwRsync_5.5.0_x86_Free.zip' ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://www.itefix.net/dl/cwRsync_5.5.0_x86_Free.zip'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found." This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn. The install of rsync was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\rsync\tools\chocolateyInstall.ps1'. See log for details. Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). Failures - rsync (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\rsync\tools\chocolateyInstall.ps1'. See log for details.
試したこと
①環境変数をみて、優先度をあげてみましたが、解決には至らずでした。
②管理者権限でコマンドプロンプトを開き実行
補足情報(FW/ツールのバージョンなど)
chocolatey Chocolatey v0.10.11

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/25 06:33
2018/11/25 07:38 編集
2018/11/25 08:03
2018/11/25 08:38
2018/11/25 11:00