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

googet installation failed without internet access #110

Open
jibin0119 opened this issue Nov 6, 2023 · 7 comments
Open

googet installation failed without internet access #110

jibin0119 opened this issue Nov 6, 2023 · 7 comments

Comments

@jibin0119
Copy link

We are using Daisy workflow control with Google cloud build to create Windows images in Google cloud.
After we removed Internet access from our project, cloud build failed with error as blow:
Installing GooGet and GooGet packages.
ERROR: 2023/11/01 22:49:05.756131 client.go:104: error reading repo "https://packages.cloud.google.com/yuck/repos/google-compute-engine-stable": Get "https://packages.cloud.google.com/yuck/repos/google-compute-engine-stable/index.gz": net/http: TLS handshake timeout
ERROR: 2023/11/01 22:49:05.768357 googet_install.go:125: Can't resolve version for package "googet": no versions of package googet found in any repo
GooGet install failed from "D:\ProgramData\GooGet\googet.exe", retrying...
ERROR: 2023/11/01 22:49:36.223287 client.go:104: error reading repo "https://packages.cloud.google.com/yuck/repos/google-compute-engine-stable": Get "https://packages.cloud.google.com/yuck/repos/google-compute-engine-stable/index.gz": net/http: TLS handshake timeout
ERROR: 2023/11/01 22:49:36.242315 googet_install.go:125: Can't resolve version for package "googet": no versions of package googet found in any repo
'C:\ProgramData\GooGet\googet.exe' is not recognized as an internal or external command,
operable program or batch file.

We would like to be able to extract googet packages into local filesystem so that we can install googet offline.

@adjackura
Copy link
Collaborator

adjackura commented Nov 6, 2023

If you download the .goo file you can point googet directly at that file to do offline install

@jibin0119
Copy link
Author

How can I download the .goo files?

@jibin0119
Copy link
Author

C:>googet -root C:\ProgramData\GooGet -noconfirm install -sources c:\Temp\[email protected] googet
ERROR: 2023/11/07 00:46:50.341950 client.go:104: error reading repo "c:\Temp\[email protected]": Get "c:\Temp\[email protected]/index.gz": unsupported protocol scheme "c"
ERROR: 2023/11/07 00:46:50.341950 googet_install.go:125: Can't resolve version for package "googet": no versions of package googet found in any repo

@adjackura
Copy link
Collaborator

adjackura commented Nov 7, 2023

You can use googet download <package> on a system with internet access.

To install just run googet -root C:\ProgramData\GooGet -noconfirm install c:\Temp\[email protected]

@jibin0119
Copy link
Author

install success when run googet -root C:\ProgramData\GooGet -noconfirm install c:\Temp\[email protected]
But I got error when install:
C:>c:\Temp\googet.exe -root C:\ProgramData\GooGet -noconfirm install c:\Temp\google-compute-engine-metadata-scripts.x86_64.20200129.00.0@1.goo
ERROR: 2023/11/06 17:15:32.742485 googet_install.go:93: Error installing c:\Temp\google-compute-engine-metadata-scripts.x86_64.20200129.00.0@1.goo: error extracting spec file: EOF

@jibin0119
Copy link
Author

I added repo:
C:\Temp googet.exe -root C:\ProgramData\GooGet -noconfirm addrepo google-compute-engine-stable https://packages.cloud.google.com/yuck/repos/google-compute-engine-stable
then run:
C:\Temp googet.exe -root C:\ProgramData\GooGet -noconfirm install google-compute-engine-metadata-scripts
and I got error:
ERROR: 2023/11/07 18:29:39.103278 client.go:104: error reading repo "https://packages.cloud.google.com/yuck/repos/google-compute-engine-stable": Get "https://packages.cloud.google.com/yuck/repos/google-compute-engine-stable/index.gz": net/http: TLS handshake timeout
ERROR: 2023/11/07 18:29:39.122313 googet_install.go:125: Can't resolve version for package "google-compute-engine-metadata-scripts": no versions of package google-compute-engine-metadata-scripts found in any repo

@Hemanth2112kumar1994
Copy link

Hello, I am running into the same issue. Did it fix here?

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

3 participants