Comment 0 for bug 1969809

Revision history for this message
Jerry Larivee (cs-huit) wrote :

I'm using the ua tool (version 27.7~16.04.1). I'm unable to enable the esm-infra service because a couple of the packages that I have installed have been completely removed from the launchpad server. Specifically:

deb http://ppa.launchpad.net/jonathonf/ffmpeg-3/ubuntu xenial main
deb http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial main

When I remove these package definitions from /etc/apt/sources.list.d/ the command succeeds.

I've attached a log file that includes this stack trace.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1629, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1725, in main
    return args.action(args, cfg=cfg)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 480, in action_fix
    fix_status = security.fix_security_issue_id(cfg, args.security_issue)
  File "/usr/lib/python3/dist-packages/uaclient/security.py", line 607, in fix_security_issue_id
    usn_released_pkgs=usn_released_pkgs,
  File "/usr/lib/python3/dist-packages/uaclient/security.py", line 982, in prompt_for_affected_packages
    num_pkgs=count,
  File "/usr/lib/python3/dist-packages/uaclient/security.py", line 872, in _handle_released_package_fixes
    cfg, binary_pkgs, pocket
  File "/usr/lib/python3/dist-packages/uaclient/security.py", line 1223, in upgrade_packages_and_attach
    if not _check_subscription_for_required_service(pocket, cfg):
  File "/usr/lib/python3/dist-packages/uaclient/security.py", line 1139, in _check_subscription_for_required_service
    if _prompt_for_enable(cfg, ent.name):
  File "/usr/lib/python3/dist-packages/uaclient/security.py", line 1118, in _prompt_for_enable
    cfg,
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 200, in new_f
    if cmd_args.format == "json" and not cmd_args.assume_yes:
AttributeError: 'Namespace' object has no attribute 'format'