[Bug] Install scoop in \ProgramData\scoop for a configuration having a user account and an admin account #5015
Replies: 6 comments 2 replies
-
Finally, I did this as "adminUser" : adminUser # iex "& {$(irm get.scoop.sh)} -RunAsAdmin -ScoopDir $env:ProgramData\scoop"
Initializing...
Downloading...
Extracting...
VERBOSE: Performing the operation "Create Directory" on target "Destination: C:\ProgramData\scoop\apps\scoop\current\_tmp".
VERBOSE: Performing the operation "Create Directory" on target "Destination: C:\ProgramData\scoop\buckets\main\_tmp".
Creating shim...
Adding C:\ProgramData\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
adminUser # And as "normalUser" : normalUser > scoop list
Installed apps:
Name Version Source Updated Info
---- ------- ------ ------- ----
7zip 22.00 main 2022-06-21 17:39:54 Global install
git-with-openssh 2.36.1.windows.1 main 2022-06-21 17:43:15 Global install
gow 0.8.0 main 2022-06-21 17:43:30 Global install
kitty 0.76.0.8 extras 2022-06-23 15:44:43 Global install
puttytel 0.77 extras 2022-06-28 11:36:41 Global install
normalUser > (gcm scoop).Definition
C:\ProgramData\scoop\shims\scoop.ps1 It seems to work fine. |
Beta Was this translation helpful? Give feedback.
-
The weird thing is this : adminUser # scoop list
Installed apps:
Name Version Source Updated Info
---- ------- ------ ------- ----
7zip 22.00 main 2022-06-21 17:39:54
git-with-openssh 2.36.1.windows.1 main 2022-06-21 17:43:15
gow 0.8.0 main 2022-06-21 17:43:30
kitty 0.76.0.8 extras 2022-06-23 15:44:43
puttytel 0.77 extras 2022-06-28 11:36:41
7zip 22.00 main 2022-06-21 17:39:54 Global install
git-with-openssh 2.36.1.windows.1 main 2022-06-21 17:43:15 Global install
gow 0.8.0 main 2022-06-21 17:43:30 Global install
kitty 0.76.0.8 extras 2022-06-23 15:44:43 Global install
puttytel 0.77 extras 2022-06-28 11:36:41 Global install
adminUser # which.exe -a 7z git md5sum kitty puttytel
C:\ProgramData\scoop\shims\7z.EXE
C:\ProgramData\scoop\shims\7z.EXE
C:\ProgramData\scoop\shims\git.EXE
C:\ProgramData\scoop\shims\git.EXE
C:\ProgramData\scoop\shims\md5sum.EXE
C:\ProgramData\scoop\shims\md5sum.EXE
C:\ProgramData\scoop\shims\kitty.EXE
C:\ProgramData\scoop\shims\kitty.EXE
C:\ProgramData\chocolatey\bin\kitty.EXE
C:\ProgramData\scoop\shims\puttytel.EXE
C:\ProgramData\scoop\shims\puttytel.EXE
adminUser # echo $env:PATH| tr.exe ";" "\n" | grep.exe "ProgramData.scoop.shims"
C:\ProgramData\scoop\shims
C:\ProgramData\scoop\shims I think I need to clean my PATH variable 😄 |
Beta Was this translation helpful? Give feedback.
-
Cleaned my PATH up :
adminUser # which.exe -a 7z git md5sum kitty puttytel
C:\ProgramData\scoop\shims\7z.EXE
C:\ProgramData\scoop\shims\git.EXE
C:\ProgramData\scoop\shims\md5sum.EXE
C:\ProgramData\scoop\shims\kitty.EXE
C:\ProgramData\chocolatey\bin\kitty.EXE
C:\ProgramData\scoop\shims\puttytel.EXE
adminUser # scoop list
Installed apps:
Name Version Source Updated Info
---- ------- ------ ------- ----
7zip 22.00 main 2022-06-21 17:39:54
git-with-openssh 2.36.1.windows.1 main 2022-06-21 17:43:15
gow 0.8.0 main 2022-06-21 17:43:30
kitty 0.76.0.8 extras 2022-06-23 15:44:43
puttytel 0.77 extras 2022-06-28 11:36:41
7zip 22.00 main 2022-06-21 17:39:54 Global install
git-with-openssh 2.36.1.windows.1 main 2022-06-21 17:43:15 Global install
gow 0.8.0 main 2022-06-21 17:43:30 Global install
kitty 0.76.0.8 extras 2022-06-23 15:44:43 Global install
puttytel 0.77 extras 2022-06-28 11:36:41 Global install
adminUser # |
Beta Was this translation helpful? Give feedback.
-
Pb. solved : normalUser > scoop uninstall scoop # scoop is alread installed as adminUser
Are you sure? (yN): y
Removing ~\scoop\shims from your path.
Scoop has been uninstalled.
normalUser > exit
normalUser > scoop list
Installed apps:
Name Version Source Updated Info
---- ------- ------ ------- ----
7zip 22.00 main 2022-06-21 17:39:54 Global install
git-with-openssh 2.36.1.windows.1 main 2022-06-21 17:43:15 Global install
gow 0.8.0 main 2022-06-21 17:43:30 Global install
kitty 0.76.0.8 extras 2022-06-23 15:44:43 Global install
puttytel 0.77 extras 2022-06-28 11:36:41 Global install
normalUser > |
Beta Was this translation helpful? Give feedback.
-
It seems buckets need to be administered by the adminUser (here via gsudo) : normalUser > sudo scoop bucket add extras
Checking repo... OK
The extras bucket was added successfully.
normalUser > sudo scoop update
Updating Scoop...
Adding C:\ProgramData\scoop\shims to your path.
Updating 'extras' bucket...
Updating 'main' bucket...
Converting 'main' bucket to git repo...
Checking repo... OK
The main bucket was added successfully.
Scoop was updated successfully!
normalUser > sudo scoop bucket list
Name Source Updated Manifests
---- ------ ------- ---------
extras https://github.com/ScoopInstaller/Extras 28/06/2022 14:31:48 1573
main https://github.com/ScoopInstaller/Main 28/06/2022 14:33:11 1053
normalUser > |
Beta Was this translation helpful? Give feedback.
-
normalUser > scoop bucket list
Get-ChildItem : Cannot find path 'C:\Users\sebastien.mansfeld\scoop\buckets' because it does not exist.
At C:\ProgramData\scoop\apps\scoop\current\lib\buckets.ps1:61 char:21
+ $bucketNames = (Get-ChildItem -Path $bucketsdir -Directory).Name
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\sebast...d\scoop\buckets:String) [Get-ChildItem], ItemNotFound
Exception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
WARN No bucket found. Please run 'scoop bucket add main' to add the default 'main' bucket.
normalUser > scoop search gow
Get-ChildItem : Cannot find path 'C:\Users\sebastien.mansfeld\scoop\buckets' because it does not exist.
At C:\ProgramData\scoop\apps\scoop\current\lib\buckets.ps1:61 char:21
+ $bucketNames = (Get-ChildItem -Path $bucketsdir -Directory).Name
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\sebast...d\scoop\buckets:String) [Get-ChildItem], ItemNotFound
Exception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
Results from other known buckets...
(add them using 'scoop bucket add <name>')
'main' bucket (install using 'scoop install main/<app>'):
gow
normalUser > |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
WORK IN PROGRESS : I'll continue filling out this bug report as soon as I get back home ...
Bug Report
Current Behavior
Expected Behavior
Additional context/output
Possible Solution
System details
Windows version: [e.g. 7, 8, 10]
OS architecture: [e.g. 32bit, 64bit]
PowerShell version: [output of
"$($PSVersionTable.PSVersion)"
]Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration
//# Your configuration here
Beta Was this translation helpful? Give feedback.
All reactions