After debugging, I found this issue is still related to list-oem-metapackages in update-notifier, I just switch apt to apt_pkg, and is_installed is also not attribute of pkg.
After debugging, I found this issue is still related to list-oem- metapackages in update-notifier, I just switch apt to apt_pkg, and is_installed is also not attribute of pkg.