Public bug reported: Summary: virt-builder with the --install option cannot install packages in a new fedora-30 image.
The problem can be reproduced with this 1 command: $ virt-builder fedora-30 -o fedora-30-img --size 21G --install 'enscript' I expect it to emit the file, fedora-30-img, including the enscript package. But instead, it emits the following error message: virt-builder: error: dnf -y install 'enscript': command exited with an error If run with verbose messages (virt-builder fedora-30 -v -o fedora-30-img --size 21G --install 'enscript'), it produces copious output, including a few signs of potential problems. Excerpt: commandrvf: cp /etc/resolv.conf /sysroot/etc/resolv.conf cp: cannot stat '/etc/resolv.conf': No such file or directory commandrvf: stdout=y stderr=y flags=0x40000 commandrvf: /bin/sh -c "exec >>'/tmp/builder.log' 2>&1 dnf -y install 'enscript' " commandrvf: stdout=n stderr=n flags=0x0 commandrvf: umount /sysroot/sys commandrvf: stdout=n stderr=n flags=0x0 commandrvf: umount /sysroot/proc commandrvf: stdout=n stderr=n flags=0x0 commandrvf: umount /sysroot/dev/pts commandrvf: stdout=n stderr=n flags=0x0 commandrvf: umount /sysroot/dev renaming /sysroot/etc/lc9h6y1w to /sysroot/etc/resolv.conf guestfsd: error: guestfsd: main_loop: proc 111 (sh) took 0.30 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: main_loop: proc 67 (download) took 0.00 seconds Fedora Modular 30 - x86_64 0.0 B/s | 0 B 00:00 Failed to synchronize cache for repo 'fedora-modular' Error: Failed to synchronize cache for repo 'fedora-modular' Here's information about the environment, requested by the launchpad.net form: $ lsb_release -rd Description: Ubuntu 18.04.2 LTS Release: 18.04 $ apt-cache policy libguestfs-tools libguestfs-tools: Installed: 1:1.36.13-1ubuntu3.2 Candidate: 1:1.36.13-1ubuntu3.2 Version table: *** 1:1.36.13-1ubuntu3.2 500 500 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages 100 /var/lib/dpkg/status 1:1.36.13-1ubuntu3 500 500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: libguestfs-tools 1:1.36.13-1ubuntu3.2 ProcVersionSignature: Ubuntu 4.18.0-20.21~18.04.1-generic 4.18.20 Uname: Linux 4.18.0-20-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.6 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sat Jun 1 16:03:30 2019 InstallationDate: Installed on 2019-05-25 (7 days ago) InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: libguestfs UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: libguestfs (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic ** Attachment added: "virt-builder-install-dnf-error-log.txt" https://bugs.launchpad.net/bugs/1831346/+attachment/5268303/+files/virt-builder-install-dnf-error-log.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1831346 Title: virt-builder: error: dnf -y install: Failed to synchronize cache To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1831346/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs