Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deletes Main Bucket and fails #3629

Closed
kevmul opened this issue Sep 5, 2019 · 15 comments
Closed

Update deletes Main Bucket and fails #3629

kevmul opened this issue Sep 5, 2019 · 15 comments

Comments

@kevmul
Copy link

kevmul commented Sep 5, 2019

When I download scoop, it seems to work fine (Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')). I can install anything I want and they all work. However, once I try to update scoop scoop update It fails with the error:

Updating 'main' bucket...
Checking repo... 'https://github.com/ScoopInstaller/Main' doesn't look like a valid git repository

And the Main bucket is no longer in my scoop bucket folder.

I looked through other issues about this and tried a few.
The first I tried was deleting the .git file from ~/scoop/shims/apps/scoop/current but there is no .git file there.
I have also just deleted the whole scoop directory with git bash window rm -rf /scoop then reinstalling it several times.

Any help is very appreciated. And if this has been covered already my apologies, I must have missed it.

@r15ch13
Copy link
Member

r15ch13 commented Sep 5, 2019

Install scoop normally, then run scoop install git and then try scoop update again.

@kevmul
Copy link
Author

kevmul commented Sep 5, 2019

Ok. I just did a fresh install of scoop and installed git

'git' (2.23.0.windows.1) was installed successfully!

Just ran the update and again

Updating 'main' bucket...
Checking repo... 'https://github.com/ScoopInstaller/Main' doesn't look like a valid git repository

I then renamed the folder for the existing Git in my system and did a fresh install of scoop and git with scoop. Same error

Updating 'main' bucket...
Checking repo... 'https://github.com/ScoopInstaller/Main' doesn't look like a valid git repository

@Ash258
Copy link
Contributor

Ash258 commented Sep 5, 2019

I suspect some network / proxy problem.

What is result of git clone 'https://github.com/ScoopInstaller/Main' "$env:TEMP/TEST" ?

@kevmul
Copy link
Author

kevmul commented Sep 5, 2019

Also I just want to mention that now after that failure, if I try and install anything else or try the update again I get this:

WARN  The main bucket of Scoop has been separated to 'https://github.com/ScoopInstaller/Main'
WARN  You don't have the main bucket added, adding main bucket for you...
Checking repo... 'https://github.com/ScoopInstaller/Main' doesn't look like a valid git repository

@kevmul
Copy link
Author

kevmul commented Sep 5, 2019

@Ash258 When I do a git clone I get this.

git clone 'https://github.com/ScoopInstaller/Main' "$env:TEMP/TEST"
Cloning into 'C:\Users\Kevin\AppData\Local\Temp/TEST'...
remote: Enumerating objects: 143, done.
remote: Counting objects: 100% (143/143), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 34767 (delta 82), reused 77 (delta 43), pack-reused 34624
Receiving objects: 100% (34767/34767), 6.07 MiB | 2.01 MiB/s, done.
Resolving deltas: 100% (23221/23221), done.

And when I look in the directory

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         9/5/2019   1:35 PM                .vscode
d-----         9/5/2019   1:35 PM                bin
d-----         9/5/2019   1:35 PM                bucket
d-----         9/5/2019   1:35 PM                test
-a----         9/5/2019   1:35 PM            459 .editorconfig
-a----         9/5/2019   1:35 PM             84 .gitattributes
-a----         9/5/2019   1:35 PM              9 .gitignore
-a----         9/5/2019   1:35 PM           1156 appveyor.yml
-a----         9/5/2019   1:35 PM           1235 LICENSE
-a----         9/5/2019   1:35 PM            269 README.md

@r15ch13
Copy link
Member

r15ch13 commented Sep 5, 2019

Hm, try running scoop bucket rm main and scoop bucket add main.

@kevmul
Copy link
Author

kevmul commented Sep 5, 2019

@r15ch13 Ok, the rm looks like it works, or at least didn't throw an error. But the add does the same error as earlier:

Scoop was installed successfully!
Type 'scoop help' for instructions.
PS C:\Users\Kevin> scoop bucket rm main
PS C:\Users\Kevin> scoop bucket add main
WARN  The main bucket of Scoop has been separated to 'https://github.com/ScoopInstaller/Main'
WARN  You don't have the main bucket added, adding main bucket for you...
Checking repo... 'https://github.com/ScoopInstaller/Main' doesn't look like a valid git repository

@kevmul
Copy link
Author

kevmul commented Sep 5, 2019

Here is the full error message. I didn't include it earlier because I didn't know if it would be anything.

Error given:
The system cannot find the path specified. 
d1a168817e8c5c0a9a9a623963d24f23f25a7222     HEAD
d1a168817e8c5c0a9a9a623963d24f23f25a7222   refs/heads/master 
68b3d5e69390669579d052d5e841f6bf0267e033      refs/pull/10/head 
aa2219cc1531a3712344e1e9e77b3c9ef0fad47d      refs/pull/100/head 
4ded749b36f23bcd8b444339b63bfdc02488d1d8     refs/pull/101/head 
e3e314f5bcd4006dc9fbf3df18c21decefa2c48f     refs/pull/103/head 
4aba46e6860a18af2102a124c3c5e2d9f9547135     refs/pull/107/head 
3a787b9db78d237f8a145425d4406c47bd817670     refs/pull/108/head 
231bca76db1a59e6cb98543a50371f7772804352     refs/pull/11/head 
f64f9353e830edcc853f93c94cd8d2951bc6084d      refs/pull/110/head 
3352d168f4507d5e62f27f6d4afe8f4122792b9c     refs/pull/112/head 
526ab3ec8eeab3977a2867ede408da42d5ee7a23     refs/pull/115/head 
ff841e82a934bbe87785d33fc24b48157f5e36e5    refs/pull/116/head 
2022948eb3727036675db51d73d079a7da0e1986      refs/pull/117/head 
bc75afe42b3234c8e7a1df33b3b0ec6c1268b3ec     refs/pull/118/head 
61c53629d83022174f6d9aa6692e07f6e298a5fe     refs/pull/119/head 
fbfb61bfdbb78e064bc8b2b72aa416c412f35a1d     refs/pull/12/head 
6487d838ac9e282c7f25bca09a2262648e9fae79      refs/pull/121/head 
50f4cdfac8bade544cae9fc8acd111b07cfbc01f     refs/pull/121/merge 
898891580c473ec5841bef6af69963453f821139    refs/pull/122/head 
f01c393b79e89d541d6152c2f4a4c09096be5be4     refs/pull/123/head 
1a3feb065c5ac8e168771236efb23e47ed6681a1     refs/pull/124/head 
1c65cf9a4b1d1eaa4635b9b5a3bc6b5e633c8050     refs/pull/125/head 
ed907ca1ebebb91fe0d35e7e6d02f0513280bfef     refs/pull/127/head 
4a71ac69f627551bbdcb25c0b4dbea16410434d1     refs/pull/130/head 
30ee8958c4b9200528c4f13492ffd4dc4db018fa     refs/pull/131/head 
09dc81e49756b966f0c6ff2ebb0a93740cd4d614     refs/pull/132/head 
6a16ba6bb1b4faa997bd1c7fe26b34db40125fb0    refs/pull/133/head 
d67b2c04ab90049bf46294fb927c0aab81d1a7a6      refs/pull/134/head 
a4d2d5a0c4953383525be9ce81c6445de6411aa5     refs/pull/135/head 
9b5219a3873b5d9f86ed896e42dc048ec4b6607a     refs/pull/136/head 
029ecafcf85529879e761d3e9366c8f7e016253a     refs/pull/137/head 
9656e8d7e7a08eb08a650e3b0ecac363875b7317     refs/pull/138/head 
40edbdb68785739f3cd98853e68186bd7a08bc4d     refs/pull/14/head 
30ddfe9b40d92cd4843d4a123d6f229a4533f18c      refs/pull/140/head 
5c46770adc792f9516079f608373229816f754d6     refs/pull/141/head 
6baba9c67bba70e8c551cb0938a736a1409d19ca     refs/pull/142/head 
786bf0f2226af38b38eacc49d9d4248d816d0c71     refs/pull/143/head 
088e66135beb26dbc310c850a8bf2205fec3e1aa     refs/pull/144/head 
06772efd617127759c6b13fc447bfefb782fa6bf     refs/pull/145/head 
dd72ee1ed72d4a40f19e8345ec94a926b5816350     refs/pull/146/head 
a87515f9f7812d6719c18ee25da840867b0950d5     refs/pull/147/head 
ae651e832c4a78a3eb8730ab04433bfc1e45d055    refs/pull/148/head 
7af867377567efb04549e8fd59964ca60452b3e3      refs/pull/149/head 
b34ac14ca205f5c89fc7c4a31a86929268367824     refs/pull/15/head 
5bc0058a2c119a6c44cd93e2dcef10c273b0609e      refs/pull/151/head 
3aabb2d11181f99c19c09cb53209acd5405f4012     refs/pull/152/head 
0f149ccb158a1056f2f07457dd325b5692dc0a0e     refs/pull/153/head 
c999a19ec088b9df68a3f501ff859d6eb0f181aa     refs/pull/154/head 
8fab226fccbe85598ec7f8f461776dd554a53093     refs/pull/155/head 
c6e1ba607b0f848271aff994b99ce38ca18416a2     refs/pull/156/head 
d322152dc676bed2462728c3945a5943febf242b     refs/pull/157/head 
6c891755521650784da642543b5b603d5c0e2f77     refs/pull/158/head 
01c7f81b1232d4308ce3a0638e41c6aa252cf87f     refs/pull/16/head 
b521096f42e8dc907b8e055c22a06e499ec61cc0      refs/pull/160/head 
db3b9207ba738efbbb7d94abc39d6ae9cfa2b989     refs/pull/161/head 
c09535dff0f17fa0cf50722026b9c16cdd00d349     refs/pull/162/head 
acb4f3a12cae21af958c16c4fddc8578308dab78    refs/pull/164/head 
6ee8ffb0a4ca710f6c82be8dfb8bcccd453777ba      refs/pull/165/head 
ea76aca53649848426d91fc301e8f1921b38a2be     refs/pull/166/head 
de8c7bc81ad4969cbdcff059c7d8cb795e87038b     refs/pull/167/head 
d9950f91ec4f9b510654bdad2d36936652e76cb5     refs/pull/168/head 
a4004286d62b3c97d0ee3c8b36cbdb75dd51d7fe     refs/pull/168/merge 
e2c49eff531f199aae245f0bf71b63edb90e3109    refs/pull/170/head 
164693d0d521287e717b1e90e5d8bc85eb658c96     refs/pull/171/head 
6636faeda33f5cd1136f1d7a8a88db07bce1c56b     refs/pull/172/head 
9a5241aec2d28664dde7f68293e7abd28222d0d2     refs/pull/174/head 
fae3590e7c3ecc525d982d8eb7744b9849a53bca     refs/pull/175/head 
ceb77283c684e39ea0ccdb6f75a380fdd11d9d34     refs/pull/176/head 
b9fb866877136a22e5a1a9da1769b578c9d9cc46     refs/pull/177/head 
353f00d40f0d780778d125cd941d34c80da78008     refs/pull/178/head 
2f13e505a52f07280e4f20bf4351c8e33944317b     refs/pull/179/head 
798b78abf939de95531d022c1fdce4d4b2146800    refs/pull/18/head 
bfdcfe8201355aa8c755bf4db069d23638825a9e       refs/pull/180/head 
e1b7de94d9d68cb3b30660d45cdb05268704c814     refs/pull/181/head 
e49df77090038eccbc0dfd994f78fa5f5c87396c     refs/pull/182/head 
bb492a16a0f2947e9d76e07e383d704a4711db33     refs/pull/183/head 
bdcdeafc5c4cc00550ec960e8ffdf592926889eb     refs/pull/184/head 
e8632ddd8eaea54ec3fb5f4d70823fd8600fc4b8     refs/pull/186/head 
d6d9623e3616d5a3bc4cc0b9246e3dc1d39d72b5     refs/pull/187/head 
26c81974a544510adc3ad09df24ee3519acb33ff     refs/pull/188/head 
a134edbe5db5073ee45a4bf1a61b704d97e25daf     refs/pull/189/head 
77bfa2d9436f5f7375049f2184c08267f7f76d47     refs/pull/189/merge 
2752a23ce3de59925c98f73d71325ec41a0ff46a    refs/pull/190/head 
37044b5b3a4f629c74de03ceb889073cf3d75e76     refs/pull/191/head 
687c10e67379cdb029a1dd2a1264b726d0d1c195     refs/pull/192/head 
f75d1d4fd366ccc64d472208ecb9b1e4639b3521     refs/pull/193/head 
fbedfff62000bf4920d9728b561d6f1a753549e8    refs/pull/194/head 
dbf4348cb7c56629bf8a203d91f091684f84f1d3      refs/pull/195/head 
2b9a3aaf135376a4e81fff529f2915daad626d4b     refs/pull/196/head 
2c9098240b4fc3f3f3b60b10fb2444a521ee1299     refs/pull/197/head 
d9628165bb8332ce892751598ad58c8b4206dcc7     refs/pull/198/head 
0d98db64e0de322fb5f38b8e44819babbeded9b6     refs/pull/2/head 
6257000bae4ed72fa97d6369f7ab97892a8b3cf6       refs/pull/201/head 
c45ca61b9057e2ec388c5e22b5b373dd3eb9438f     refs/pull/202/head 
ae37298199992c51c78dd1ad3fd0f01d34d2acd4     refs/pull/203/head 
798bf9fadd8d92d41859e8305b40db3963a5da9b     refs/pull/204/head 
... It goes on and on

The The system cannot find the path specified is something with my system. I have been looking to fix that but cannot figure it out.

@kevmul
Copy link
Author

kevmul commented Sep 6, 2019

Does anyone else have a stab at this? I appreciate the help and want to get this working again.

@seraphlive
Copy link

I'm facing the same error. Installed scoop several days ago and installed git, 7zip and neovim without problem. Then today when I tried to install nodejs-lts, I got this error. Now I can do nothing to scoop. I can't udpate, delete bucket or even uninstall scoop. I get all the same errors no matter what I do with scoop.

@greg-hutchinson
Copy link
Contributor

Does anyone else have a stab at this? I appreciate the help and want to get this working again.
I had similar issues. What I had found was the error is misleading and it is because of dos commands erroring out. Take a look at the description here :
#3815
I would be curious as to whether that solves your problem.

@kevmul
Copy link
Author

kevmul commented May 4, 2020

@greg-hutchinson I still have not gotten this to work. Best I have gotten was to just remember all the things I wanted scoop to install, and do a fresh install and leave it be. I am thinking of getting away from scoop and just installing things the old fashioned way, like git and node/npm.

I would love to have a fix for this though.

@greg-hutchinson
Copy link
Contributor

greg-hutchinson commented May 26, 2020 via email

@kevmul
Copy link
Author

kevmul commented May 27, 2020

@greg-hutchinson I just did the change and IT WORKED! The main bucket was able to be added successfully and I was able to do the scoop update! I was even able to install a new program with scoop!

Thank you so much for this! I will mark this as completed and solved.

@kevmul kevmul closed this as completed May 27, 2020
@greg-hutchinson
Copy link
Contributor

greg-hutchinson commented May 27, 2020 via email

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

No branches or pull requests

5 participants