apt: fixed duplicate fail_json