BUILD_ERRORS.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. could not synchronise with container process: no subsystem for mount
  8. ----
  9. You may be experiencing a similar but different problem. Anecdotally
  10. this occured on Ubuntu 18.04 Bionic, kernel 4.15.0-24-generic. You need
  11. to add systemd.legacy_systemd_cgroup_controller=1 to the kernel
  12. boot commandline in /etc/default/grub (followed by `sudo update-grub`).
  13. Error during debootstrap image creation
  14. ---------------------------------------
  15. If the debootstrap-image-.log contains errors similar to the following:
  16. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty/InRelease
  17. Temporary failure resolving 'archive.ubuntu.com'
  18. Check /etc/resolv.conf on the host to see if the nameserver is set to
  19. 127.0.0.1. This can happen when runc performs a bind mount of
  20. /etc/resolv.conf and the host system is running systemd-resolved.
  21. sudo systemctl disable systemd-resolved.service
  22. sudo service systemd-resolved stop
  23. Put the following line in the [main] section of your
  24. /etc/NetworkManager/NetworkManager.conf:
  25. dns=default
  26. Delete the symlink /etc/resolv.conf
  27. rm /etc/resolv.conf
  28. Restart network-manager
  29. sudo service network-manager restart
  30. Could not find uid in /etc/subuid
  31. ---------------------------------
  32. In some cases you can have the error:
  33. Error: Error starting remote:
  34. Error: Could not find uid in /etc/subuid
  35. Error: failed to set uidmap
  36. The user you use to build needs to have a range of subordinate uids and
  37. gids in /etc/subuid and /etc/subgid. Most of the time they are added by
  38. default when the user is created. If it was not the case, you can use
  39. usermod(8) with the --add-subuids and --add-subgids options. See also
  40. the subuid(5) and subgid(5) man pages.
  41. Note that the root user is not exempted from the requirement for a
  42. valid /etc/subuid and /etc/subgid entry, if you are building as root.