I'm currently trying to download Jekyll on Windows 10, and I'm having difficulty installing Ruby through Chocolatey. I'm following the instructions provided on this website:https://jekyllrb.com/docs/windows/
Here is the error that is causing some trouble. I have entered choco install ruby -version 2.2.4 and it gave me this error:
By installing you accept licenses for the packages.
Progress: Downloading ruby 2.2.4... 100%
ruby not installed. An error occurred during installation:
Access to the path 'C:\ProgramData\chocolatey\lib\ruby\tools' is denied.
ruby package files install completed. Performing other installation steps.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\.chocolatey' is denied.
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\.chocolatey' is denied.
Maximum tries of 3 reached. Throwing error.
Cannot create directory "C:\ProgramData\chocolatey\.chocolatey". Error was:
System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\chocolatey\.chocolatey' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass64.<create_directory>b__63()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory(String directoryPath)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory_if_not_exists(String directoryPath, Boolean ignoreError)
Access to the path 'C:\ProgramData\chocolatey\.chocolatey' is denied.
Try to run the installation program with administrator rights. The error shows that the access to the directory programData is denied!
Specifically, since you run in windows cmd, run the cmd.exe as Administrator. Then, continue choco install ruby
Related
I was trying dolt out for windows for a project ran into this error Access to the path 'C:\ProgramData\chocolatey\lib-bad' is denied. I think its was permissions issue.
Do you want to continue?([Y]es/[N]o): Y
Installing the following packages:
dolt
By installing you accept licenses for the packages.
Progress: Downloading dolt 0.40.0... 100%
dolt not installed. An error occurred during installation:
Access to the path 'C:\ProgramData\chocolatey\lib\dolt\tools' is denied.
dolt package files install completed. Performing other installation steps.
The install of dolt was NOT successful.
dolt not installed. An error occurred during installation:
Access to the path 'C:\ProgramData\chocolatey\lib\dolt\tools' is denied.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\lib-bad' is denied.
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
Access to the path 'C:\ProgramData\chocolatey\lib-bad' is denied.
Maximum tries of 3 reached. Throwing error.
Cannot create directory "C:\ProgramData\chocolatey\lib-bad". Error was:
System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\chocolatey\lib-bad' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass64.<create_directory>b__63()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory(String directoryPath)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.create_directory_if_not_exists(String directoryPath, Boolean ignoreError)
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Access to the path 'C:\ProgramData\chocolatey\lib-bad' is denied.
Your attempt had this error:
Access to the path 'C:\ProgramData\chocolatey\lib-bad' is denied.
Running chocolatey with admin privileges should help.
Example:
Run your powershell as admin
You should see installation works
I tried installing Sass using Chocolatey in both the CMD and Powershell and this is the error I'm getting, How do I solve it?
C:\WINDOWS\system32>choco install sass
Chocolatey v0.12.1
Installing the following packages:
sass
By installing, you accept licenses for the packages.
Progress: Downloading sass 1.49.9... 100%
sass v1.49.9 [Approved]
sass package files install completed. Performing other installation steps.
The package sass 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/[A]ll - yes to all/[N]o/[P]rint): Y
Fetching Dart dependencies...
ERROR: The term 'pub' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The install of sass was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\sass\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
sass (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sass\tools\chocolateyInstall.ps1'.
See log for details.
I'm on windows and i tried to upgrade to the latest flutter sdk version but the error below kept appearing. FYI, i tried most fixes i found on GitHub. I downloaded the zipped file from their docs and unzipped in Documents as it has read/write permissions, turned off firewall, run flutter doctor -v in PowerShell, etc.
After running flutter doctor -v, this happened
λ flutter doctor -v
Building flutter tool...
Running pub upgrade...
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/async_core.dart:28:1: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/async/cookies.dart': Access is denied.
export 'package:webdriver/src/async/cookies.dart';
^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/async/web_driver.dart:20:8: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/async/cookies.dart': Access is denied.
import 'package:webdriver/src/async/cookies.dart';
^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/sync_core.dart:35:1: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/sync/cookies.dart': Access is denied.
export 'package:webdriver/src/sync/cookies.dart';
^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/sync/web_driver.dart:25:8: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/sync/cookies.dart': Access is denied.
import 'package:webdriver/src/sync/cookies.dart';
^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/handler/json_wire_handler.dart:6:8: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/handler/json_wire/cookies.dart': Access is denied.
import 'package:webdriver/src/handler/json_wire/cookies.dart';
^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/handler/w3c_handler.dart:6:8: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/handler/w3c/cookies.dart': Access is denied.
import 'package:webdriver/src/handler/w3c/cookies.dart';
^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/async/web_driver.dart:175:3: Error: Type 'Cookies' not found.
Cookies get cookies => Cookies(_client, _handler);
^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/sync/web_driver.dart:183:3: Error: Type 'Cookies' not found.
Cookies get cookies => Cookies(_client, _handler);
^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/async/web_driver.dart:175:26: Error: The method 'Cookies' isn't defined for the class 'WebDriver'.
- 'WebDriver' is from 'package:webdriver/src/async/web_driver.dart' ('../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/async/web_driver.dart').
Try correcting the name to the name of an existing method, or defining a method named 'Cookies'.
Cookies get cookies => Cookies(_client, _handler);
^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/src/handler/json_wire_handler.dart:52:34: Error: Method not found: 'JsonWireCookiesHandler'.
final CookiesHandler cookies = JsonWireCookiesHandler();
I keep coming back to this. Any fix?
It worked. FYI, i had not deleted the previous SDK, but placed it in D:\
Here is my fix:
I turned off my firewall
Moved to the old SDK folder (which resides in D:)
Run the folder in CMD with administrator rights (i was using cmder)
Replaced the flutter path in ENV with that of the previous SDK
And then run:
git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor -v
I am using this document as a guide
and i ran through this error
Install the project...
-- Install configuration: "RELEASE"
CMake Error at cmake_install.cmake:36 (file):
file cannot create directory: /installation/OpenCV-/share/licenses/opencv4.
Maybe need administrative privileges.
I just encountered the same problem as you. I found out that it is not a permission problem, but a path problem of OpenCV installation.
I use the following method for successfully installing OpenCV4.2.0 to my computer.
Change the path:
-D CMAKE_INSTALL_PREFIX = $cwd/installation/OpenCV-4.2.0
To
-D CMAKE_INSTALL_PREFIX = /usr/local
Hi am using the following to silent install msi file name : agent.msi
C:\Users\Administrator > msiexec /qb /Lv* install.log /i agent.msi SSL_CERT_FILE=C:\Temp\Agent.ssl
After running the above command when am checking install.log file giving error as Installation Error: 1602 / 1603
I have cleared temp files and running folder is non encrypted, and having full admin access.
May i know how to fix it ?
MSI errors are often hard to find, since the install log will record a lot of information as part of the rollback that occurs after the error. Typically you should search for the string return value 3 as this will typically highlight the action where the real error occurred. Once you have that information there will be more to go on.