[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Hi Nathan, per comment #9 (https://bugs.launchpad.net/ubuntu/+source/update- manager/+bug/2058133/comments/9) we decided on "invalid" for ubuntu- advantage-tools for this particular bug. ** Changed in: ubuntu-advantage-tools (Ubuntu) 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/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Mathew, as per the logs shared, this does affect ubuntu-advantage-tools: ["2024-03-21T10:32:14.759", "ERROR", "ubuntupro.cli", "wrapper", 1768, "Unhandled exception, please file a bug", ** Also affects: ubuntu-advantage-tools (Ubuntu) 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/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
** No longer affects: ubuntu-advantage-tools (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
In a Xenial virtual machine, I installed update-manager 1:16.04.23. I attached the machine to Ubuntu Pro and made sure Livepatch is enabled in the output of 'ua status': Then, I simulated a failing Livepatch with ---> mv /snap/bin/canonical-livepatch /snap/bin/canonical-livepatch.bak >/snap/bin/canonical-livepatch printf '%s\n' '#!/bin/sh' 'exit 1' chmod +x /snap/bin/canonical-livepatch < I launched update-manager, it opened, did not crash. ** Tags removed: verification-needed verification-needed-xenial ** Tags added: verification-done verification-done-xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Hello Gregory, or anyone else affected, Accepted update-manager into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/update- manager/1:16.04.23 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 on 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, what testing has been performed on the package and change the tag from verification-needed- xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-xenial. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Tags added: verification-needed-xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
@Andreas, those follow up updates are fixing issues in the current candidate SRU so it should be ok to just accept the new version and replace the one in proposed, we want to migrate to update to one with the fixes not the current version -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Coming here from my dup bug report 2060971. Can confirm that the newer version of update-manager seems to fix the issue. And indeed, my livepatch install is a little jankey on my system for some reason, but instead of being greeted with a crash every morning, I'm now presented with pending updates as expected \o/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
This bug was fixed in the package update-manager - 1:20.04.10.21 --- update-manager (1:20.04.10.21) focal; urgency=medium * Replace Popen to 'ua security-status --format=json' by the Ubuntu Pro API. The former is not stable enough and would break the program once in a while when something unrelated to Update Manager (Livepatch, for instance) went awry. The updates() end point from the API, on the other hand, does not raise exceptions. LP: #2058133. -- Nathan Pratta Teodosio Fri, 22 Mar 2024 08:38:43 +0100 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
This bug was fixed in the package update-manager - 1:18.04.12 --- update-manager (1:18.04.12) bionic; urgency=medium * Replace Popen to 'ua security-status --format=json' by the Ubuntu Pro API. The former is not stable enough and would break the program once in a while when something unrelated to Update Manager (Livepatch, for instance) went awry. The updates() end point from the API, on the other hand, does not raise exceptions. LP: #2058133. -- Nathan Pratta Teodosio Fri, 22 Mar 2024 08:42:47 +0100 ** Changed in: update-manager (Ubuntu Bionic) Status: Fix Committed => Fix Released ** Changed in: update-manager (Ubuntu Focal) 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/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
SRU Team: The phasing in 22.04 was blocked due to LP:2004482. That is not a problem of update-manager though, but caused by a namespace conflict between ubuntu-advantage-tools and opcua-client-gui when installed via Pip[1]. I think therefore that the phasing should be continued. [1] https://github.com/canonical/ubuntu-pro-client/issues/2434 ** Bug watch added: github.com/canonical/ubuntu-pro-client/issues #2434 https://github.com/canonical/ubuntu-pro-client/issues/2434 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
> Denn meine Aktualisierungsverwaltung hakt nach wie vor. Derzeit ist das Update nur für Jammy veröffentlicht (was ist deine Version?) und allerdings nur vor kurzer Zeit. Das heißt, dass es noch nicht für jedermann verfügbar ist (c.f. phased updates[1]). [1] https://wiki.ubuntuusers.de/Aktualisierungen/phased_update/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Hallo Andreas, also so ganz schlau bin ich aus dem Ganzen nicht geworden. Denn meine Aktualisierungsverwaltung hakt nach wie vor. Wenn ich hingegen den von Dir übermittelten Befehl eingebe im Terminal, aktualisiert das alles problemlos. mfG Rainer Bruns Am 11.04.24 um 21:08 schrieb Andreas Hasenack: > Focal still has an ubuntu-release-upgrader regression on armhf. I > triggered that one again. > > Jammy is ok. > > Bionic is ok, but can't be released before focal. > > The xenial upload is still in unapproved, probably because there is another > xenial SRU going on > in xenial-proposed: 1:16.04.21 > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
This bug was fixed in the package update-manager - 1:22.04.20 --- update-manager (1:22.04.20) jammy; urgency=medium * Replace Popen to 'ua security-status --format=json' by the Ubuntu Pro API. The former is not stable enough and would break the program once in a while when something unrelated to Update Manager (Livepatch, for instance) went awry. The updates() end point from the API, on the other hand, does not raise exceptions. LP: #2058133. -- Nathan Pratta Teodosio Fri, 22 Mar 2024 08:24:04 +0100 ** Changed in: update-manager (Ubuntu Jammy) 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/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Focal still has an ubuntu-release-upgrader regression on armhf. I triggered that one again. Jammy is ok. Bionic is ok, but can't be released before focal. The xenial upload is still in unapproved, probably because there is another xenial SRU going on in xenial-proposed: 1:16.04.21 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
** Also affects: canonical-livepatch-client 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/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-livepatch-client/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Also confirmed the bug goes away in a Ubuntu Pro attached Focal virtual machine. Installed the 1:20.04.10.21 update-manager from proposed, sabotaged Livepatch with ---> mv /snap/bin/canonical-livepatch /snap/bin/canonical-livepatch.bak >/snap/bin/canonical-livepatch printf '%s\n' '#!/bin/sh' 'exit 1' chmod +x /snap/bin/canonical-livepatch <--- and launched update-manager, which opened and worked normally. ** Tags removed: jammy verification-needed-focal ** Tags added: verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
In a Ubuntu Pro attached Bionic virtual machine, I installed the 1:18.04.12 update-manager from proposed, sabotaged Livepatch with ---> mv /snap/bin/canonical-livepatch /snap/bin/canonical-livepatch.bak >/snap/bin/canonical-livepatch printf '%s\n' '#!/bin/sh' 'exit 1' chmod +x /snap/bin/canonical-livepatch <--- and launched update-manager, which opened and worked normally. ** Tags removed: verification-needed-bionic ** Tags added: verification-done-bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Thank you for verifying the SRU for Jammy, Giacomo! You probably know that, but: After having verified the fix by running the test case, you may want to move the original Livepatch file back with 'mv /snap/bin/canonical-livepatch.bak /snap/bin/canonical-livepatch', in case it were at least partially working. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Hi Timo and everybody, just tested the proposed package for Jammy (22.04.4), version 1:22.04.20 and it fixes the bug for me same as it did applying the patch directly to UpdateManager.py before. Preliminary: - reverted UpdateManager.py to its original nonworking state > bug is present -updated the package to proposed version, then Testing procedure: mv /snap/bin/canonical-livepatch /snap/bin/canonical-livepatch.bak >/snap/bin/canonical-livepatch printf '%s\n' '#!/bin/sh' 'exit 1' chmod +x /snap/bin/canonical-livepatch update-manager -c -d Results: software opens, runs and gives results without crashing. ** Tags removed: verification-needed-jammy ** Tags added: verification-done-jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Hello Gregory, or anyone else affected, Accepted update-manager into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/update- manager/1:22.04.20 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 on 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, what testing has been performed on the package and change the tag from verification-needed- jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-jammy. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Tags added: verification-needed verification-needed-jammy ** Tags added: verification-needed-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
** Changed in: update-manager (Ubuntu Xenial) Status: In Progress => Fix Committed ** Changed in: update-manager (Ubuntu Bionic) Status: In Progress => Fix Committed ** Changed in: update-manager (Ubuntu Focal) Status: In Progress => Fix Committed ** Changed in: update-manager (Ubuntu Jammy) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Many thanks for your proactivity, Giacomo!, it is always very helpful to know beforehand that a proposed change really fixes the real end user case — that's all that matters after all. ** Description changed: Impact -- Update Manager fails to launch in the LTS releases if the 'ua security- status' command fails. It tries to parse its output to generate the list of ESM-Apps and ESM-Infra updates that would be available if the system were attached to Ubuntu Pro. However, if ua finds some problem with unrelated stuff, such as Livepatch (as evidenced by the attached ubuntu-advantage.log), the command just raises an error, crashing Update Manager. Although Update Manager could catch the error, it would result in not showing Ubuntu Pro updates, simply because the information is not there. Better would be to ditch 'ua security-status' in favor of the Ubuntu Pro API. The updates() end point[1] will provide the information Update Manager wants even if the Ubuntu Advantage daemon has issues with other services such as Livepatch (as evidenced by #10), and it does not raise exceptions. [1] https://canonical-ubuntu-pro-client.readthedocs- hosted.com/en/latest/references/api/#u-pro-packages-updates-v1 Test Plan - - To be determined + Attach your machine to Ubuntu Pro and make sure Livepatch is enabled in + the output of 'ua status'. Then, simulate a failing Livepatch with + + ---> + mv /snap/bin/canonical-livepatch /snap/bin/canonical-livepatch.bak + >/snap/bin/canonical-livepatch printf '%s\n' '#!/bin/sh' 'exit 1' + chmod +x /snap/bin/canonical-livepatch + < + + Launch update-manager, it should open and not crash. Where problems could occur -- In the Ubuntu Pro section of the updates, in form of wrong package data (e.g. package name, version number etc.) in the description pane when selecting a package. The section could not show at all, or the program could crash right away. Original bug report --- Below is a run in my computer. Please send a mail on what to do fuga2:~> update-manager -c -d Unexpected error(s) occurred. For more details, see the log: /var/log/ubuntu-advantage.log To file a bug run: ubuntu-bug ubuntu-advantage-tools Traceback (most recent call last): File "/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 448, in _on_finished self._action_done(action, File "/usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py", line 365, in _action_done self.window_main.start_available() File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 241, in start_available self.refresh_cache() File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 459, in refresh_cache self._get_ua_security_status() File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 285, in _get_ua_security_status s = json.load(p.stdout) File "/usr/lib/python3.10/json/__init__.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ^CTraceback (most recent call last): File "/usr/bin/update-manager", line 125, in Gtk.main() File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 1687, in main with register_sigint_fallback(Gtk.main_quit): File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__ next(self.gen) File "/usr/lib/python3/dist-packages/gi/_ossighelper.py", line 237, in register_sigint_fallback signal.default_int_handler(signal.SIGINT, None) KeyboardInterrupt fuga2:~> ubuntu-bug ubuntu-advantage-tools fuga2:~> update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/local/share/doc /usr/local/share/doc none bind,ro 0 0): cannot open directory "/usr/local/share": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied Gtk-Message: 11:23:47.656: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it. fuga2:~> ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: ubuntu-advantage-tools 31.2~22.04 ProcVersionSignature: Ubuntu 5.15.0-100.110-generic 5.15.143 Uname: Linux 5.15.0-100-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.5 Ar
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
I don't know if this helps but I've tested the patch https://code.launchpad.net/~nteodosio/update-manager/+git/update- manager/+ref/jammy-json-to-api for Jammy by nteodosio and it fixes the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2058133] Re: [SRU] update-manager crashes when ua security-status response is an error
Reproduced in Bionic: ---> % canonical-livepatch snap-confine has elevated permissions and is not confined but should be. [...] % systemctl status snapd-apparmor [...] Mär 22 10:58:04 snapd-apparmor[3198]: Failed to load policy-features from '/etc/apparmor.d/abi/kernel-5.4-outoftree-network': No such file or directory <--- So I guess the whole story is: /etc/apparmor.d/abi/kernel-5.4-outoftree- network is missing, which is causing snapd-apparmor to fail, which is causing Livepatch to fail, which is causing 'ua security-status' to fail, which is causing update-manager to fail. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058133 Title: [SRU] update-manager crashes when ua security-status response is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs