<p>Gitian has a couple of different virtualization modes, each with their own quirks and issues. It appears that you are using LXC, which in my experience, no longer works.</p>
<p>You could try the same commands with KVM mode (drop <code>--lxc</code> and don't set <code>USE_LXC=1</code>) or docker mode (use <code>--docker</code> instead of <code>--lxc</code> and set <code>USE_DOCKER=1</code> instead of <code>USE_LXC</code>). I have found that the docker mode is much more reliable since all of the setup for the container is handled by other projects.</p>
<p>For building older releases, you may need to slightly modify gitian-builder to use different apt package sources as Ubuntu moves them to their archival locations.</p>
<hr />
<p>For building more recent versions of Bitcoin Core, Gitian has been replaced with Guix. But it's still useful for those who are interested in building older versions of the software.</p>

CC BY-SA 4.0
2023-09-05T17:56:09.443Z
2023-09-05T17:56:09.443Z
Ava Chow
<p>you have to make sure you are using AMD64 version of debian jesse</p>

CC BY-SA 3.0
2017-09-02T15:47:59.897Z
2017-09-02T15:47:59.897Z
Dave Mcglauflin
<p>I followed this instructions <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md" rel="nofollow">https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md</a>
but on this step: <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md#setting-up-the-gitian-image" rel="nofollow">https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md#setting-up-the-gitian-image</a>
i have got an error:</p>

<blockquote>
  <p>cp: cannot stat
  ‘base-trusty-amd64-bootstrap/usr/lib/x86_64-linux-gnu/lxc/lxc-init’:
  No such file or directory debian@debian:~/gitian-builder$</p>
</blockquote>

<p>How to fix it?</p>

CC BY-SA 4.0
2018-05-05T14:04:26.880Z
install 64 bit libraries
pbu
CC BY-SA 4.0
2023-04-09T17:04:16.520Z
Commenting from far in the future for anyone coming across this today. Bitcoin Core now [uses Guix](https://github.com/bitcoin/bitcoin/blob/db720b5a703c90625fa7a4773bd2db5672427cbe/contrib/guix/README.md) for bootstrappable builds. [This gist](https://gist.github.com/hebasto/7293726cbfcd0b58e1cfd5418316cee3) shows the practical workflow.
dunxen
<bitcoin-core><compiling><gitian>
Gitian building not working
Ivan Ivanov
# Gitian building not working

(Asked by: username_0 on 2016-10-24)

I followed this instructions <https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md>
but on this step: <https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md#setting-up-the-gitian-image>
i have got an error:

> cp: cannot stat
> ‘base-trusty-amd64-bootstrap/usr/lib/x86\_64-linux-gnu/lxc/lxc-init’:
> No such file or directory debian@debian:~/gitian-builder$

How to fix it?

**Tags:** bitcoin-core, compiling, gitian

> **Comments:**
> **username_1**: install 64 bit libraries  
> **username_2**: Commenting from far in the future for anyone coming across this today. Bitcoin Core now [uses Guix](https://github.com/bitcoin/bitcoin/blob/db720b5a703c90625fa7a4773bd2db5672427cbe/contrib/guix/README.md) for bootstrappable builds. [This gist](https://gist.github.com/hebasto/7293726cbfcd0b58e1cfd5418316cee3) shows the practical workflow.  

---

## 2 answers

### Answer by username_3 on 2023-09-05. Score: 0

Gitian has a couple of different virtualization modes, each with their own quirks and issues. It appears that you are using LXC, which in my experience, no longer works.

You could try the same commands with KVM mode (drop `--lxc` and don't set `USE_LXC=1`) or docker mode (use `--docker` instead of `--lxc` and set `USE_DOCKER=1` instead of `USE_LXC`). I have found that the docker mode is much more reliable since all of the setup for the container is handled by other projects.

For building older releases, you may need to slightly modify gitian-builder to use different apt package sources as Ubuntu moves them to their archival locations.

---

For building more recent versions of Bitcoin Core, Gitian has been replaced with Guix. But it's still useful for those who are interested in building older versions of the software.


---

### Answer by username_4 on 2017-09-02. Score: 0

you have to make sure you are using AMD64 version of debian jesse


---

