/usr/bin/update-manager:json.decoder.JSONDecodeError:/bin/update-manager@118:start_update:start_available:refresh_cache:_get_ua_security_status:load:loads:decode:raw_decode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
High
|
Nathan Teodosio | ||
Xenial |
Fix Committed
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
The new Ubuntu Pro integration hits an exception when the pro client call isn't returning a value json output
* Test case
Check that reports on https:/
Also on a system not connected to pro, install an old ubuntu-
* Regression potential
The code is changing the callback to get the list of pro updates to use the ubuntu-
-------
In JournalErrors:
--->
Failed to access URL: https:/
Cannot verify certificate of server
Please check your openssl configuration.
[info] A new version is available: 30~20.04
Please run:
sudo apt-get install ubuntu-
<---
Is it the ubuntu-
[1] https:/
------
The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager. This problem was most recently seen with package version 1:20.04.10.18, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
Related branches
- Sebastien Bacher: Approve
-
Diff: 121 lines (+42/-30)3 files modifiedUpdateManager/UpdateManager.py (+31/-29)
debian/changelog (+10/-0)
debian/control (+1/-1)
- Sebastien Bacher: Approve
-
Diff: 29 lines (+9/-1)2 files modifieddebian/changelog (+8/-0)
debian/control (+1/-1)
- Sebastien Bacher: Approve
-
Diff: 121 lines (+42/-30)3 files modifiedUpdateManager/UpdateManager.py (+31/-29)
debian/changelog (+10/-0)
debian/control (+1/-1)
description: | updated |
description: | updated |
Changed in update-manager (Ubuntu): | |
status: | In Progress → Fix Committed |
I reproduced the bug on a fresh 20.04.6 install, just upgraded update-manager, disconnected from internet and started update manager
Failed to connect to authentication server
Check your Internet connection and try again.
[info] A new version is available: 30~20.04 advantage- tools python3/ dist-packages/ UpdateManager/ Dialogs. py", line 118, in <lambda> connect( "clicked" , lambda x: callback()) python3/ dist-packages/ UpdateManager/ Dialogs. py", line 371, in available window_ main.start_ available( error_occurred= True) python3/ dist-packages/ UpdateManager/ UpdateManager. py", line 240, in start_available refresh_ cache() python3/ dist-packages/ UpdateManager/ UpdateManager. py", line 458, in refresh_cache _get_ua_ security_ status( ) python3/ dist-packages/ UpdateManager/ UpdateManager. py", line 284, in _get_ua_ security_ status python3. 8/json/ __init_ _.py", line 293, in load python3. 8/json/ __init_ _.py", line 357, in loads decoder. decode( s) python3. 8/json/ decoder. py", line 337, in decode python3. 8/json/ decoder. py", line 355, in raw_decode ("Expecting value", s, err.value) from None JSONDecodeError : Expecting value: line 1 column 1 (char 0)
Please run:
sudo apt-get install ubuntu-
to get the latest version with new features and bug fixes.
Traceback (most recent call last):
File "/usr/lib/
button.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
s = json.load(p.stdout)
File "/usr/lib/
return loads(fp.read(),
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/
raise JSONDecodeError
json.decoder.
ii ubuntu- advantage- tools 27.13.6~20.04.1 amd64 management tools for Ubuntu Pro
$ pro security-status --format=json
Failed to connect to authentication server
Check your Internet connection and try again.
[info] A new version is available: 30~20.04 advantage- tools
Please run:
sudo apt-get install ubuntu-
to get the latest version with new features and bug fixes.
that's resolved after updating ubuntu- advantage- tools to 30~20.04 (the current version)