README.BUILD_ERRORS 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. This file lists some common build errors and their solutions.
  2. Error starting remote
  3. ---------------------
  4. If you have an error like this:
  5. ----
  6. Error: Error starting remote:
  7. /bin/sh: 1: adduser: not found
  8. Segmentation fault (core dumped)
  9. ----
  10. You might be having this issue:
  11. https://github.com/docker/docker/issues/28705
  12. When the kernel is configured with CONFIG_LEGACY_VSYSCALL_NONE, running
  13. Debian Wheezy containers fails with a segfault. This should be fixed by
  14. adding "vsyscall=emulate"to the kernel cmdline.
  15. If you are building inside Qubes, you can change the kernel cmdline for
  16. the VM you are using with something like this in dom0:
  17. ----
  18. $ qvm-pref --get [vmname] kernelopts
  19. nopat
  20. $ qvm-pref --set [vmname] kernelopts 'nopat vsyscall=emulate'
  21. ----
  22. Error during debootstrap image creation
  23. ---------------------------------------
  24. If the debootstrap-image-.log contains errors similar to the following:
  25. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty/InRelease
  26. Temporary failure resolving 'archive.ubuntu.com'
  27. Check /etc/resolv.conf on the host to see if the nameserver is set to
  28. 127.0.0.1. This can happen when runc performs a bind mount of
  29. /etc/resolv.conf and the host system is running systemd-resolved.
  30. sudo systemctl disable systemd-resolved.service
  31. sudo service systemd-resolved stop
  32. Put the following line in the [main] section of your
  33. /etc/NetworkManager/NetworkManager.conf:
  34. dns=default
  35. Delete the symlink /etc/resolv.conf
  36. rm /etc/resolv.conf
  37. Restart network-manager
  38. sudo service network-manager restart