[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
** Changed in: cloud-init Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
This has been fixed long ago, actually following the advice from Adam above to properly purge lsb-release from the images (in live- build/hooks/600-no-debian.binary). ** Changed in: livecd-rootfs (Ubuntu) Status: Fix Committed => Fix Released ** Changed in: snappy 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/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
@adam: because purging tears out stuff we want to keep ... also the hooks code went to https://github.com/snapcore/core/tree/master/live-build/hooks now and gets cross reviews, i'll SRU the remaining livecd-rootfs bits shortly so we dont need teh PPA version anymore -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
Why on earth are you doing "rm -f usr/bin/lsb_release" when you could be purging the "lsb-release" package entirely (which is more than just the stub binary). Also, it would be nice if all these livecd-rootfs hacks actually happened on a branch that gets some review, rather than in PPA that no one looks at. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
Got here by trying to understand why "pip" exploded when tried to call "lsb_release" when being inside a snap (yes, no dpkg-query"). IIUC, "pip" survives to lsb_release not existing, so the solution for this bug is an improvement in that front too. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
@robertliu, lsb_release should be completely gone from the core snap now ... i just discovered a minor typo in the removal code, thanks for reporting this. please use /etc/os-release for checking for any distro data. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
Hi @Ogra, I cannot get the correct result on a all-snap system. Is this expected? admin@caracalla:~$ lsb_release Traceback (most recent call last): File "/usr/bin/lsb_release", line 95, in main() File "/usr/bin/lsb_release", line 59, in main distinfo = lsb_release.get_distro_information() File "/usr/lib/python3/dist-packages/lsb_release.py", line 383, in get_distro_information distinfo = guess_debian_release() File "/usr/lib/python3/dist-packages/lsb_release.py", line 281, in guess_debian_release get_distro_info(distinfo['ID']) File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in get_distro_info RELEASES_ORDER.sort(key=lambda n: float(n[0])) File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '8.04 LTS' admin@caracalla:~$ snap info core name: core summary: "snapd runtime environment" publisher: canonical description: | The core runtime environment for snapd type:core tracking:edge installed: 16.04.1 (1251) 79MB - refreshed: 2017-02-20 16:05:56 + UTC channels: stable:16.04.1 (1240) 79MB - candidate: 16.04.1 (1240) 79MB - beta: 16.04.1 (1240) 79MB - edge: 16.04.1 (1251) 79MB - admin@caracalla:~$ cat /etc/os-release NAME="Ubuntu Core" VERSION="16" ID=ubuntu-core PRETTY_NAME="Ubuntu Core 16" VERSION_ID="16" HOME_URL="http://www.snapcraft.io/; BUG_REPORT_URL="http://bugs.launchpad.net/snappy/; admin@caracalla:~$ cat /etc/issue Ubuntu Core 16 on \4 (\l) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
Hi @Ogra, I cannot get the correct result on a all-snap system. Is this expected? $ lsb_release Traceback (most recent call last): File "/usr/bin/lsb_release", line 95, in main() File "/usr/bin/lsb_release", line 59, in main distinfo = lsb_release.get_distro_information() File "/usr/lib/python3/dist-packages/lsb_release.py", line 383, in get_distro_information distinfo = guess_debian_release() File "/usr/lib/python3/dist-packages/lsb_release.py", line 281, in guess_debian_release get_distro_info(distinfo['ID']) File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in get_distro_info RELEASES_ORDER.sort(key=lambda n: float(n[0])) File "/usr/lib/python3/dist-packages/lsb_release.py", line 41, in RELEASES_ORDER.sort(key=lambda n: float(n[0])) ValueError: could not convert string to float: '8.04 LTS' $ snap info core name: core summary: "snapd runtime environment" publisher: canonical description: | The core runtime environment for snapd type: core tracking: edge installed: 16.04.1 (1251) 79MB - refreshed: 2017-02-20 16:05:56 + UTC channels: stable: 16.04.1 (1240) 79MB - candidate: 16.04.1 (1240) 79MB - beta: 16.04.1 (1240) 79MB - edge: 16.04.1 (1251) 79MB - $ cat /etc/os-release NAME="Ubuntu Core" VERSION="16" ID=ubuntu-core PRETTY_NAME="Ubuntu Core 16" VERSION_ID="16" HOME_URL="http://www.snapcraft.io/; BUG_REPORT_URL="http://bugs.launchpad.net/snappy/; $ cat /etc/issue Ubuntu Core 16 on \4 (\l) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619420] Re: snappy removal of dpkg-query breaks lsb_release --all
the lsb_release binary was now removed from the core snap. ** Also affects: livecd-rootfs (Ubuntu) Importance: Undecided Status: New ** Changed in: livecd-rootfs (Ubuntu) Status: New => Fix Committed ** Changed in: livecd-rootfs (Ubuntu) Importance: Undecided => Medium ** Changed in: livecd-rootfs (Ubuntu) Assignee: (unassigned) => Oliver Grawert (ogra) ** Changed in: snappy Status: New => Fix Committed ** Changed in: snappy Importance: Undecided => Medium ** Changed in: snappy Assignee: (unassigned) => Oliver Grawert (ogra) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619420 Title: snappy removal of dpkg-query breaks lsb_release --all To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1619420/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs