38 | subprocess.check_call(['git', 'clone', 'https://github.com/bitcoin/bitcoin.git'])
39 | os.chdir('gitian-builder')
40 | - make_image_prog = ['bin/make-base-vm', '--suite', 'bionic', '--arch', 'amd64']
41 | + distro = subprocess.check_output(['lsb_release', '-is']).decode("utf-8").strip('\n').lower()
42 | + suite = subprocess.check_output(['lsb_release', '-cs']).decode("utf-8").strip('\n')
43 | + make_image_prog = ['bin/make-base-vm', '--distro', distro, '--suite', suite, '--arch', 'amd64']
Do not move from bionic. Ref: #12511
Ah... ok, then I will PR to correct the documentation to use ubuntu/bionic.
Thanks @hebasto !
And debian/stretch?
The documentation suggest to use debian 8.x, but the script bin/make-base-vm is invoked with '--suite bionic’ that on debian rises an error
You should upgrade your lxc >= 2.1.1 and debootstrap >= 1.0.92
Do not change this line, revert your changes. The VM that is built is for the gitian build and it's distro and suite have nothing to do with the host OS. The same distro and suite must be used in order to have the same binaries be built.
gitianuser@debian:~$ dpkg-query -W lxc debootstrap
debootstrap 1.0.89
lxc 1:2.0.7-2+deb9u2
gitianuser@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
@ken2812221 It seem that debian 9.x does not provide it...
I will quit for a while building on debian/stratch and I'm moving to ubuntu/bionic
@cisba You can use ubuntu bionic or self-compile and install them from source.
@MarcoFalke I followed it but does not work because bionic is hard coded in gitian scripts.
I tried changing it but others errors rise so I quit for a wile debian vm.
@hebasto comment is the more remarkable IMHO