Installing Dolt on Windows 10 - windows

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

Related

Requirements file didn't install

i have an error when i want to install package_name
they didn't want to install, like when i want to install a pakhage like instabot i say an error when it installing, it say you have an error like this:
error: could not create 'C:\Python311\LICENSE': Permission denied
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> huepy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
so that;s the error, and when i want to fix it i tried to install requirements.txt again but they say you have an error again again again...
that when i put:
pip install -r requirements.txt
the error say:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
can anyone plz give an advice

fatal error: gnu/stubs-32.h: No such file or directory

I'm trying to build gcc 7.2.0. I get this error:
fatal error: gnu/stubs-32.h: No such file or directory
I don't have root access or sudo access on this machine so I cannot use apt. What source package can I install that will resolve this?
Try installing glibc-devel, see https://www.question-defense.com/2010/03/09/usrincludegnustubs-h727-error-gnustubs-32-h-no-such-file-or-directory and https://stackoverflow.com/a/7412698/6723250.

Flutter SDK windows upgrade - Access denied, Cookies not found

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

Some errors while installing Chocolatey

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

script to install MSI silently

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.

Resources