[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
This bug was fixed in the package ubuntu-dev-tools - 0.155ubuntu2 --- ubuntu-dev-tools (0.155ubuntu2) xenial; urgency=medium * mk-sbuild: fix failure to copy /etc/localtime into the target chroot. LP: #1569400. -- Steve Langasek Fri, 01 Jul 2016 12:21:58 -0700 ** Changed in: ubuntu-dev-tools (Ubuntu Xenial) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
Prior to installing this update on a system with the timezone set to UTC, my attempts to create an ``unstable`` schroot ended with: I: Base system installed successfully. cp: '/etc/localtime' and '/var/lib/schroot/chroots/sid-amd64/etc/localtime' are the same file After installing the proposed update, I was able to successfully create such a schroot using ``mk-sbuild``. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
** Changed in: ubuntu-dev-tools (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
Hello Robie, or anyone else affected, Accepted ubuntu-dev-tools into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-dev- tools/0.155ubuntu2 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: ubuntu-dev-tools (Ubuntu Xenial) Status: In Progress => Fix Committed ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
** Description changed: + [SRU Justification] + The mk-sbuild command fails to completely set up its schroot environment if /etc/localtime is a symlink, due to wrong 'cp' options. Since /etc/localtime is a symlink /by default/, this makes the tool unusable for most users in xenial. + + [Test case] + 1. Verify that /etc/localtime is a symlink on your system. + 2. Install ubuntu-dev-tools. + 3. Run 'mk-sbuild yakkety'. When prompted to edit ~/.sbuildrc, you can accept the defaults. + 4. Run 'sg sbuild' to make sure you are in the 'sbuild' group in case this is newly added. + 5. Run 'mk-sbuild yakkety' again. Verify that the command output ends with the line: + cp: '/etc/localtime' and '/var/lib/schroot/chroots/yakkety-amd64/etc/localtime' are the same file. + 6. Run 'echo $?' to verify that the return value of mk-sbuild is 1. + 7. Install ubuntu-dev-tools from xenial-proposed. + 8. Run 'sudo rm -rf /var/lib/schroot/chroots/yakkety-amd64' to remove the incompletely-bootstrapped directory from the previous attempt. + 9. Run 'mk-sbuild yakkety' again. Confirm that the command exits 0. + 10. Confirm that 'schroot -l' shows the yakkety-amd64 chroot. + On my system, /etc/localtime points to Etc/UTC. When I run mk-sbuild, it fails as follows: I: Base system installed successfully. cp: '/etc/localtime' and '/var/lib/schroot/chroots/xenial-amd64/etc/localtime' are the same file rbasak@diglett:~$ stat /etc/localtime - File: '/etc/localtime' -> '/usr/share/zoneinfo/Etc/UTC' - Size: 27 Blocks: 0 IO Block: 4096 symbolic link + File: '/etc/localtime' -> '/usr/share/zoneinfo/Etc/UTC' + Size: 27 Blocks: 0 IO Block: 4096 symbolic link Device: fa00h/64000dInode: 24904635Links: 1 Access: (0777/lrwxrwxrwx) Uid: (0/root) Gid: (0/root) Access: 2016-04-12 14:34:01.913544692 + Modify: 2016-04-09 14:16:56.0 + Change: 2016-04-11 14:33:38.788003973 + - Birth: - + Birth: - rbasak@diglett:~$ stat /var/lib/schroot/chroots/xenial-amd64/etc/localtime - File: '/var/lib/schroot/chroots/xenial-amd64/etc/localtime' -> '/usr/share/zoneinfo/Etc/UTC' - Size: 27 Blocks: 0 IO Block: 4096 symbolic link + File: '/var/lib/schroot/chroots/xenial-amd64/etc/localtime' -> '/usr/share/zoneinfo/Etc/UTC' + Size: 27 Blocks: 0 IO Block: 4096 symbolic link Device: fa00h/64000dInode: 25958842Links: 1 Access: (0777/lrwxrwxrwx) Uid: (0/root) Gid: (0/root) Access: 2016-04-12 14:39:39.042359630 + Modify: 2016-04-12 14:39:39.038359620 + Change: 2016-04-12 14:39:39.038359620 + - Birth: - + Birth: - rbasak@diglett:~$ ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: ubuntu-dev-tools 0.155 [modified: usr/bin/mk-sbuild] ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6 Uname: Linux 4.4.0-18-generic x86_64 NonfreeKernelModules: zfs zunicode zcommon znvpair zavl ApportVersion: 2.20.1-0ubuntu1 Architecture: amd64 Date: Tue Apr 12 14:52:21 2016 JournalErrors: - Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system. -Users in the 'systemd-journal' group can see all messages. Pass -q to -turn off this notice. - No journal files were opened due to insufficient permissions. + Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system. + Users in the 'systemd-journal' group can see all messages. Pass -q to + turn off this notice. + No journal files were opened due to insufficient permissions. PackageArchitecture: all SourcePackage: ubuntu-dev-tools UpgradeStatus: No upgrade log present (probably fresh install) ** Description changed: [SRU Justification] - The mk-sbuild command fails to completely set up its schroot environment if /etc/localtime is a symlink, due to wrong 'cp' options. Since /etc/localtime is a symlink /by default/, this makes the tool unusable for most users in xenial. + The mk-sbuild command fails to completely set up its schroot environment if /etc/localtime is a symlink to the default timezone file (Etc/UTC), due to wrong 'cp' options. This makes the tool unusable in xenial on systems with a default config. It also causes the tool to do the wrong thing on systems with a user-configured timezone, as the Etc/UTC file within the chroot environment will be overwritten by the host system's zone file, rather than changing the *target* of the /etc/localtime symlink. [Test case] - 1. Verify that /etc/localtime is a symlink on your system. + 1. Verify that /etc/localtime is a symlink to /usr/share/zoneinfo/Etc/UTC on your system. 2. Install ubuntu-dev-tools. 3. Run 'mk-sbuild yakkety'
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
** Changed in: ubuntu-dev-tools (Ubuntu Xenial) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
** Changed in: ubuntu-dev-tools (Ubuntu Xenial) Importance: Undecided => High ** Changed in: ubuntu-dev-tools (Ubuntu Xenial) Status: New => Triaged ** Changed in: ubuntu-dev-tools (Ubuntu Xenial) Assignee: (unassigned) => Steve Langasek (vorlon) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
** Also affects: ubuntu-dev-tools (Ubuntu Xenial) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
Will this be fixed in xenial too? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
This bug was fixed in the package ubuntu-dev-tools - 0.157 --- ubuntu-dev-tools (0.157) unstable; urgency=medium * mk-sbuild: cp localtime and timezone a little harder (LP: #1569400) -- Adam Conrad Sun, 08 May 2016 23:58:48 -0600 ** Changed in: ubuntu-dev-tools (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
** Branch linked: lp:ubuntu-dev-tools -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu-dev-tools (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1569400] Re: mk-sbuild fails with cp: /etc/localtime... are the same file
I patched my live system as attached, which fixed the problem. ** Patch added: "fix.patch" https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+attachment/4634267/+files/fix.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1569400 Title: mk-sbuild fails with cp: /etc/localtime... are the same file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1569400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs