Cannot install chroot

Bug #1343039 reported by XiaoGuo, Liu
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I have the following error when trying to install chroot in the VM.

---Click exited with errors, please check the output---Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 244, in run
    return args.func(parser, args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 67, in create
    return chroot.create(args.keep_broken_chroot)
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 422, in create
    self._debootstrap(components, mount)
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 360, in _debootstrap
    self.archive
  File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['debootstrap', '--arch', 'amd64', '--variant=buildd', '--components=main,restricted,universe,multiverse', 'utopic', '/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf', 'http://archive.ubuntu.com/ubuntu']' returned non-zero exit status 1
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
E: Invalid Release signature (key id 40976EAF437D05B5)
There was an error creating the click target, cleaning up
A chroot for that name and architecture does not exist.
Please use 'create' to create it.
Deleting /etc/schroot/chroot.d/click-ubuntu-sdk-14.10-armhf
Deleting /var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf
click target was removed successfullyuo

Is there any way to uninstall my current SDK. I want to reinstall everything again.

Best regards,
XiaoG

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

Please find the captured screen!

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :
Download full text (24.2 KiB)

---Click exited with errors, please check the output---Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 244, in run
    return args.func(parser, args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 67, in create
    return chroot.create(args.keep_broken_chroot)
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 443, in create
    self.destroy()
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 524, in destroy
    "Chroot %s does not exist" % self.full_name)
click.chroot.ClickChrootDoesNotExistException: Chroot click-ubuntu-sdk-14.10-armhf does not exist
Command returned 1: schroot -u root -c source:click-ubuntu-sdk-14.10-armhf -- /finish.sh
click-ubuntu-sdk-14.10-armhf-fe36b505-68df-4614-9cc4-a0f3c2e2dcb6: Failed to lock chroot: /var/lib/schroot/session/click-ubuntu-sdk-14.10-armhf-fe36b505-68df-4614-9cc4-a0f3c2e2dcb6: Failed to write session file: No such file or directory
E: I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 790BC7277767219C42C86F933B4FE6ACC0B21F32)
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: init-system-helpers libgdbm3 libplymouth4 perl perl-modules
I: Checking component main on http://archive.ubuntu.com/ubuntu...
I: Retrieving adduser 3.113+nmu3ubuntu3
I: Validating adduser 3.113+nmu3ubuntu3
I: Retrieving apt 1.0.4ubuntu5
I: Validating apt 1.0.4ubuntu5
I: Retrieving base-files 7.2ubuntu6
I: Validating base-files 7.2ubuntu6
I: Retrieving base-passwd 3.5.33
I: Validating base-passwd 3.5.33
I: Retrieving bash 4.3-7ubuntu3
I: Validating bash 4.3-7ubuntu3
I: Retrieving binutils 2.24.51.20140709-1ubuntu1
I: Validating binutils 2.24.51.20140709-1ubuntu1
I: Retrieving bsdutils 1%3a2.20.1-5.1ubuntu21
I: Validating bsdutils 1%3a2.20.1-5.1ubuntu21
I: Retrieving build-essential 11.6ubuntu6
I: Validating build-essential 11.6ubuntu6
I: Retrieving busybox-initramfs 1%3a1.22.0-6ubuntu1
I: Validating busybox-initramfs 1%3a1.22.0-6ubuntu1
I: Retrieving bzip2 1.0.6-5ubuntu4
I: Validating bzip2 1.0.6-5ubuntu4
I: Retrieving coreutils 8.21-1ubuntu5
I: Validating coreutils 8.21-1ubuntu5
I: Retrieving cpio 2.11+dfsg-2ubuntu1
I: Validating cpio 2.11+dfsg-2ubuntu1
I: Retrieving cpp 4%3a4.9.0-3ubuntu6
I: Validating cpp 4%3a4.9.0-3ubuntu6
I: Retrieving cpp-4.8 4.8.3-4ubuntu2
I: Validating cpp-4.8 4.8.3-4ubuntu2
I: Retrieving dash 0.5.7-4ubuntu1
I: Validating dash 0.5.7-4ubuntu1
I: Retrieving debconf 1.5.53ubuntu1
I: Validating debconf 1.5.53ubuntu1
I: Retrieving debianutils 4.4
I: Validating debianutils 4.4
I: Retrieving diffutils 1%3a3.3-1
I: Validating diffutils 1%3a3.3-1
I: Retrieving dpkg 1.17.10ubuntu1
I: Validating dpkg 1.17.10ubuntu1
I: Retrieving dpkg-dev 1.17.1...

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :
Download full text (12.9 KiB)

---Click exited with errors, please check the output---Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 244, in run
    return args.func(parser, args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 67, in create
    return chroot.create(args.keep_broken_chroot)
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 422, in create
    self._debootstrap(components, mount)
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 360, in _debootstrap
    self.archive
  File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['debootstrap', '--arch', 'amd64', '--variant=buildd', '--components=main,restricted,universe,multiverse', 'utopic', '/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf', 'http://archive.ubuntu.com/ubuntu']' returned non-zero exit status 1
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 790BC7277767219C42C86F933B4FE6ACC0B21F32)
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: init-system-helpers libgdbm3 libplymouth4 perl perl-modules
I: Checking component main on http://archive.ubuntu.com/ubuntu...
I: Retrieving adduser 3.113+nmu3ubuntu3
I: Validating adduser 3.113+nmu3ubuntu3
I: Retrieving apt 1.0.4ubuntu5
I: Validating apt 1.0.4ubuntu5
I: Retrieving base-files 7.2ubuntu6
I: Validating base-files 7.2ubuntu6
I: Retrieving base-passwd 3.5.33
I: Validating base-passwd 3.5.33
I: Retrieving bash 4.3-7ubuntu3
I: Validating bash 4.3-7ubuntu3
I: Retrieving binutils 2.24.51.20140709-1ubuntu1
I: Validating binutils 2.24.51.20140709-1ubuntu1
I: Retrieving bsdutils 1%3a2.20.1-5.1ubuntu21
I: Validating bsdutils 1%3a2.20.1-5.1ubuntu21
I: Retrieving build-essential 11.6ubuntu6
I: Validating build-essential 11.6ubuntu6
I: Retrieving busybox-initramfs 1%3a1.22.0-6ubuntu1
I: Validating busybox-initramfs 1%3a1.22.0-6ubuntu1
I: Retrieving bzip2 1.0.6-5ubuntu4
I: Validating bzip2 1.0.6-5ubuntu4
I: Retrieving coreutils 8.21-1ubuntu5
I: Validating coreutils 8.21-1ubuntu5
I: Retrieving cpio 2.11+dfsg-2ubuntu1
I: Validating cpio 2.11+dfsg-2ubuntu1
I: Retrieving cpp 4%3a4.9.0-3ubuntu6
I: Validating cpp 4%3a4.9.0-3ubuntu6
I: Retrieving cpp-4.8 4.8.3-4ubuntu2
I: Validating cpp-4.8 4.8.3-4ubuntu2
I: Retrieving dash 0.5.7-4ubuntu1
I: Validating dash 0.5.7-4ubuntu1
I: Retrieving debconf 1.5.53ubuntu1
I: Validating debconf 1.5.53ubuntu1
I: Retrieving debianutils 4.4
I: Validating debianutils 4.4
I: Retrieving diffutils 1%3a3.3-1
I: Validating diffutils 1%3a3.3-1
I: Retrieving dpkg 1.17.10ubuntu1
I: Validating dpkg 1.17.10ubuntu1
I: Retrieving dpkg-dev 1.17.10ubuntu1
I: Validating dpkg-dev 1.17.10u...

Zoltan Balogh (bzoltan)
affects: android (Ubuntu) → click (Ubuntu)
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

When I am trying to install it in command line:

sudo click chroot -a armhf -f ubuntu-sdk-14.10 create

I get the following error:

I: Base system installed successfully.
E: click-ubuntu-sdk-14.10-armhf-d572a8ec-bda7-4213-bf01-1bdc07201990: Failed to lock chroot: /var/lib/schroot/session/click-ubuntu-sdk-14.10-armhf-d572a8ec-bda7-4213-bf01-1bdc07201990: Failed to write session file: No such file or directory
Command returned 1: schroot -u root -c source:click-ubuntu-sdk-14.10-armhf -- /finish.sh
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 244, in run
    return args.func(parser, args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 67, in create
    return chroot.create(args.keep_broken_chroot)
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 443, in create
    self.destroy()
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 524, in destroy
    "Chroot %s does not exist" % self.full_name)
click.chroot.ClickChrootDoesNotExistException: Chroot click-ubuntu-sdk-14.10-armhf does not exist

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

https://pastebin.canonical.com/113683/

When I trying to install from command:

sudo click chroot -a armhf -f ubuntu-sdk-14.10 create

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This sounds like there is some sort of network problem. Could you please let use now if:
$ sudo apt-get update
works corrently for you? And what the output of the command:
$ w3m -dump http://archive.ubuntu.com/ubuntu/dists/utopic/Release.gpg
in a terminal is?

Changed in click (Ubuntu):
status: New → Incomplete
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

HI Michael,

Thanks for your investigation. I think this problem has been resolved. I talked to xnox, and an engineer said that that could be caused by some of the rouge mirror on the server side.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks, if its fixed, I close the bug now.

Changed in click (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
John Doe (no+name-deactivatedaccount) wrote :

Hey! I have exactly the same problem.

Ubuntu 15.04
Tried via Ubuntu SDK and command line (sudo click chroot -a armhf -f ubuntu-sdk-15.04 create)

I get:

E: Sub-process /usr/bin/dpkg returned an error code (1)
Command returned 100: schroot -u root -c source:click-ubuntu-sdk-15.04-armhf -- /finish.sh
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 266, in run
    return args.func(parser, args)
  File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line 68, in create
    return chroot.create(args.keep_broken_chroot)
  File "/usr/lib/python3/dist-packages/click/chroot.py", line 554, in create
    self.full_name, ret_code))
click.chroot.ClickChrootException: Failed to create chroot 'click-ubuntu-sdk-15.04-armhf' (exit status 100)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.