[Bug 1204923] [NEW] vmbuilder failed with Unable to find expected entry 'universe/binary-amd64/Packages' in Release file

Sivakumar shiv609 at gmail.com
Thu Jul 25 14:14:01 UTC 2013


Public bug reported:

Got this error while creating VM in my ubuntu 12.04 LTS server edition. I followed the blog to create VM:
http://www.havetheknowhow.com/Configure-the-server/Configure-KVM.html

Weird thing is this is not consistent. First few times, i got this
error. Then i changed some command arguments like adding mirror. Then i
am able to create two Virtual Machines. Now again i am getting this
error again and again.

The following is my VM command code:
vmbuilder kvm ubuntu \
        --dest=/home/htkh/VirtualMachines \
        --iso=/root/kvmfiles/ubuntu-12.04.2-server-amd64.iso \
        --overwrite \
        --mem=4096 \
        --cpus=1 \
        --rootsize=102400 \
        --optsize=8192 \
        --swapsize=1024 \
        --ip=192.168.1.66 \
        --mask=255.255.255.0 \
        --bcast=192.168.1.255 \
        --gw=192.168.1.1 \
        --addpkg=openssh-server \
        --addpkg=vim \
        --addpkg=cron \
        --addpkg=acpid \
        --arch=amd64 \
        --suite=precise \
        --flavour=virtual \
        --components=main,universe,restricted \
        --hostname=pbt \
        --user=ubuntu \
        --pass=ubuntu \
        --libvirt=qemu:///system \
        --mirror=http://archive.ubuntu.com/ubuntu \
        --bridge=br0 ;


root at ubuntu:~/kvmfiles# ./kvmbuilder.sh
2013-07-25 19:03:54,748 INFO    : Calling hook: preflight_check
2013-07-25 19:03:54,750 INFO    : Calling hook: set_defaults
2013-07-25 19:03:54,750 INFO    : Calling hook: bootstrap
2013-07-25 19:04:15,275 INFO    : Calling hook: configure_os
2013-07-25 19:05:15,360 INFO    : W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release  Unable to find expected entry 'universe/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
2013-07-25 19:05:15,360 INFO    :
2013-07-25 19:05:15,360 INFO    : E: Some index files failed to download. They have been ignored, or old ones used instead.
2013-07-25 19:05:15,361 INFO    : Cleaning up
2013-07-25 19:05:15,376 ERROR   : Process (['chroot', '/tmp/tmp6Vpik4', 'apt-get', 'update']) returned 100. stdout: Ign http://security.ubuntu.com precise-security InRelease
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Get:2 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise Release.gpg
Get:3 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Get:4 http://security.ubuntu.com precise-security/main amd64 Packages [296 kB]
Get:5 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Hit http://archive.ubuntu.com precise/main amd64 Packages
Get:6 http://archive.ubuntu.com precise-updates/main amd64 Packages [650 kB]
Get:7 http://security.ubuntu.com precise-security/universe amd64 Packages [79.8 kB]
Get:8 http://security.ubuntu.com precise-security/restricted amd64 Packages [4627 B]
Get:9 http://security.ubuntu.com precise-security/main i386 Packages [311 kB]
Get:10 http://security.ubuntu.com precise-security/universe i386 Packages [82.5 kB]
Get:11 http://archive.ubuntu.com precise-updates/universe amd64 Packages [209 kB]
Get:12 http://security.ubuntu.com precise-security/restricted i386 Packages [4620 B]
Get:13 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:14 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:15 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:16 http://security.ubuntu.com precise-security/main Translation-en [144 kB]
Get:17 http://security.ubuntu.com precise-security/restricted Translation-en [1253 B]
Get:18 http://security.ubuntu.com precise-security/universe Translation-en [50.8 kB]
Get:19 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [10.1 kB]
Get:20 http://archive.ubuntu.com precise-updates/main i386 Packages [671 kB]
Get:21 http://archive.ubuntu.com precise-updates/universe i386 Packages [213 kB]
Get:22 http://archive.ubuntu.com precise-updates/restricted i386 Packages [10.0 kB]
Get:23 http://archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:24 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:25 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:26 http://archive.ubuntu.com precise-updates/main Translation-en [299 kB]
Get:27 http://archive.ubuntu.com precise-updates/restricted Translation-en [2432 B]
Get:28 http://archive.ubuntu.com precise-updates/universe Translation-en [123 kB]
Fetched 3270 kB in 60s (54.5 kB/s)
, stderr: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release  Unable to find expected entry 'universe/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old
ones used instead.

Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
    cli.main()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 216, in main
    distro.build_chroot()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 84, in build_chroot
    self.call_hooks('configure_os')
  File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 67, in call_hooks
    call_hooks(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 165, in call_hooks
    getattr(context, func, log_no_such_method)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 141, in configure_os
    self.suite.install_sources_list()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 241, in install_sources_list
    self.run_in_target('apt-get', 'update', ignore_fail=final)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 327, in run_in_target
    return self.context.run_in_target(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/__init__.py", line 86, in run_in_target
    return util.run_cmd('chroot', self.chroot_dir, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 120, in run_cmd
    raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.exception.VMBuilderException: Process (['chroot', '/tmp/tmp6Vpik4', 'apt-get', 'update']) returned 100. stdout: Ign http://security.ubuntu.com precise-security InRelease
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Get:2 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise Release.gpg
Get:3 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Get:4 http://security.ubuntu.com precise-security/main amd64 Packages [296 kB]
Get:5 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Hit http://archive.ubuntu.com precise/main amd64 Packages
Get:6 http://archive.ubuntu.com precise-updates/main amd64 Packages [650 kB]
Get:7 http://security.ubuntu.com precise-security/universe amd64 Packages [79.8 kB]
Get:8 http://security.ubuntu.com precise-security/restricted amd64 Packages [4627 B]
Get:9 http://security.ubuntu.com precise-security/main i386 Packages [311 kB]
Get:10 http://security.ubuntu.com precise-security/universe i386 Packages [82.5 kB]
Get:11 http://archive.ubuntu.com precise-updates/universe amd64 Packages [209 kB]
Get:12 http://security.ubuntu.com precise-security/restricted i386 Packages [4620 B]
Get:13 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:14 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:15 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:16 http://security.ubuntu.com precise-security/main Translation-en [144 kB]
Get:17 http://security.ubuntu.com precise-security/restricted Translation-en [1253 B]
Get:18 http://security.ubuntu.com precise-security/universe Translation-en [50.8 kB]
Get:19 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [10.1 kB]
Get:20 http://archive.ubuntu.com precise-updates/main i386 Packages [671 kB]
Get:21 http://archive.ubuntu.com precise-updates/universe i386 Packages [213 kB]
Get:22 http://archive.ubuntu.com precise-updates/restricted i386 Packages [10.0 kB]
Get:23 http://archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:24 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:25 http://archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:26 http://archive.ubuntu.com precise-updates/main Translation-en [299 kB]
Get:27 http://archive.ubuntu.com precise-updates/restricted Translation-en [2432 B]
Get:28 http://archive.ubuntu.com precise-updates/universe Translation-en [123 kB]
Fetched 3270 kB in 60s (54.5 kB/s)
, stderr: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release  Unable to find expected entry 'universe/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old
ones used instead.

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/1204923

Title:
  vmbuilder failed with  Unable to find expected entry 'universe/binary-
  amd64/Packages' in Release file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/1204923/+subscriptions



More information about the Ubuntu-server-bugs mailing list