[Bug 2143372] [NEW] ubuntu-bug fails with "Yaml load allows (<class 'dict'>, ) root types, but got str instead" on Ubuntu 26.04

johanes hutapea 2143372 at bugs.launchpad.net
Fri Mar 6 01:49:26 UTC 2026


Public bug reported:

While trying to report a kernel/suspend issue using ubuntu-bug linux,
the process fails during "Collecting problem information".

Error Message:
Failed loading yaml blob. Yaml load allows (<class 'dict'>,) root types, but got str instead

Environment:

OS: Ubuntu 26.04 (Server/GNOME)

Apport Version: (Cek dengan perintah apt policy apport)

Python Version: (Cek dengan python3 --version)

Steps to Reproduce:

Run sudo ubuntu-bug linux or ubuntu-bug linux.

Wait for information collection.

The YAML parsing error occurs and prevents the report from being
generated/sent.

Suspected Cause:
Apport's cloud-init or subiquity hooks are trying to parse a config file in /etc/cloud/cloud.cfg.d/ that contains a string instead of a dictionary, causing a type mismatch in the YAML loader.

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "apport_crash.log"
   https://bugs.launchpad.net/bugs/2143372/+attachment/5950336/+files/apport_crash.log

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2143372

Title:
  ubuntu-bug fails with "Yaml load allows (<class 'dict'>,) root types,
  but got str instead" on Ubuntu 26.04

Status in apport package in Ubuntu:
  New

Bug description:
  While trying to report a kernel/suspend issue using ubuntu-bug linux,
  the process fails during "Collecting problem information".

  Error Message:
  Failed loading yaml blob. Yaml load allows (<class 'dict'>,) root types, but got str instead

  Environment:

  OS: Ubuntu 26.04 (Server/GNOME)

  Apport Version: (Cek dengan perintah apt policy apport)

  Python Version: (Cek dengan python3 --version)

  Steps to Reproduce:

  Run sudo ubuntu-bug linux or ubuntu-bug linux.

  Wait for information collection.

  The YAML parsing error occurs and prevents the report from being
  generated/sent.

  Suspected Cause:
  Apport's cloud-init or subiquity hooks are trying to parse a config file in /etc/cloud/cloud.cfg.d/ that contains a string instead of a dictionary, causing a type mismatch in the YAML loader.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2143372/+subscriptions




More information about the foundations-bugs mailing list