-
Notifications
You must be signed in to change notification settings - Fork 230
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
failed to run on-target -u root apt-get update > var/install.log 2>&1 (RuntimeError) #180
Comments
This is likely a problem with the apt cache on the host machine where you are trying to build. |
@devrandom same issue here. There is an intermittent behaviour of building, sometimes it does, sometimes it doesn't, but most of the time it doesn't. I am setting up a CI/CD for a project, and running a script to launch the gitian builder.
gitan-builder/var/install.log
Thanks in advance. |
It's timing out trying to connect
Check and see if your gitian builder machine has IPv6 enabled. Seems like a stupid issue, but as soon as I disabled IPv6 on my builder machine, it worked fine and much faster. |
For me first flushing and then deleting chains from iptables on virtualbox VM helped: $ iptables -F
$ iptables -X |
still have this issue. Any ideas? Already tried what @partyka1 said also I tried disabling ipv6 @devrandom any idea? |
I'm trying to build gitian-builder follow this guys tutorial video. https://www.youtube.com/watch?v=_ti-d5t1WX8&t=1044s&ab_channel=Aqua |
In gitian-builder/target-bin/bootstrap-fixup.in Change lines 9-11: Change archive.ubuntu.com/security.ubuntu.com to old-releases.ubuntu.com if [ $DISTRIB_NAME = "Ubuntu" ]; then |
Hi, im from aqua too, I done everything that @ibithub and @kimmy3697 wrote, I'm still stuck, some move was to good side, but didn't ended problem, I get something like that: |
Have you found a solution? I have the same problem. |
im trying friend |
I came from Aqua youtube as well having the same issues like many people here: debian@debian:~/gitian-builder$ ./bin/gbuild ../bugacoin/contrib/gitian-descriptors/boost-win32.yml I can confirm that after modifying the 3 lines in target-bin/bootstrap-fixup.in to old-releases.ubuntu.com it started working, currently going forward. I will update if everything goes ok. debian@debian:~/gitian-builder$ ./bin/gbuild ../bugacoin/contrib/gitian-descriptors/boost-win32.yml |
if you get then the author date error format: change line in gitian-builder/bin/gbuild author_date = 'cd inputs/#{dir} && TZ=UTC git log --date=format-local:%F %T --format="%ad" -1'.strip by this author_date = 'cd inputs/#{dir} && TZ=UTC git log --date=local --format="%ad" -1'.strip |
after modifying the 3 lines I get install.log
|
read my second reply on this: if you get then the author date error format: change line in gitian-builder/bin/gbuild author_date = 'cd inputs/#{dir} && TZ=UTC git log --date=format-local:%F %T --format="%ad" -1'.strip by this author_date = 'cd inputs/#{dir} && TZ=UTC git log --date=local --format="%ad" -1'.strip |
i'm in same problem, something worked and again is on it |
Haven't tested this yet, but I may have downloaded the precise before changing those 3 lines. |
I repaired it few months ago by deleting Upgrade System functions and everything that made error about not existing function, idk if I should but except for that it works. |
Hello.I try to build dash wallet with gitian-builder. I follow all steps from https://github.com/dashpay/dash/blob/master/doc/gitian-building.md .
But i have errors. What did i do wrong???
Use Oracle VirtualBox, Debian 8.5.0, Dash Core, LXC..
------------------------------------ Error Message -----------------------------
Starting target
Checking if target is up
Preparing build environment
Updating apt-get repository (log in var/install.log)
bin/gbuild:21:in "system!": failed to run on-target -u root apt-get update > var/install.log 2>&1 (RuntimeError)
------------------------------------ var/install.log -----------------------------
Ign http://10.0.3.2:3142 trusty InRelease
Get:1 http://10.0.3.2:3142 trusty-security InRelease [65.9 kB]
Get:2 http://10.0.3.2:3142 trusty-updates InRelease [65.9 kB]
Get:3 http://10.0.3.2:3142 trusty Release.gpg [933 B]
Get:4 http://10.0.3.2:3142 trusty Release [58.5 kB]
Get:5 http://10.0.3.2:3142 trusty-security/main amd64 Packages [735 kB]
Get:6 http://10.0.3.2:3142 trusty-security/universe amd64 Packages [229 kB]
Get:7 http://10.0.3.2:3142 trusty-security/main Translation-en [401 kB]
Get:8 http://10.0.3.2:3142 trusty-security/universe Translation-en [125 kB]
Get:9 http://10.0.3.2:3142 trusty-updates/main amd64 Packages [1079 kB]
Get:10 http://10.0.3.2:3142 trusty-updates/universe amd64 Packages [455 kB]
Get:11 http://10.0.3.2:3142 trusty-updates/main Translation-en [533 kB]
Get:12 http://10.0.3.2:3142 trusty-updates/universe Translation-en [244 kB]
Get:13 http://10.0.3.2:3142 trusty/main amd64 Packages [1350 kB]
Get:14 http://10.0.3.2:3142 trusty/universe amd64 Packages [5859 kB]
Get:15 http://10.0.3.2:3142 trusty/main Translation-en [762 kB]
Get:16 http://10.0.3.2:3142 trusty/universe Translation-en [4089 kB]
Fetched 16.1 MB in 26s (607 kB/s)
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/10.0.3.2:3142_archive.ubuntu.com_ubuntu_dists_trusty-updates_universe_binary-amd64_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
The text was updated successfully, but these errors were encountered: