Skip to content

checkAPT: handle packages without a candidate version#1060

Open
SAY-5 wants to merge 1 commit intolinuxmint:masterfrom
SAY-5:fix/check-apt-cache-version-none-1059
Open

checkAPT: handle packages without a candidate version#1060
SAY-5 wants to merge 1 commit intolinuxmint:masterfrom
SAY-5:fix/check-apt-cache-version-none-1059

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 3, 2026

Skip installed packages whose apt cache candidate is None instead of crashing with AttributeError: 'NoneType' object has no attribute 'version' in find_changes. This can happen when a package is orphaned or removed from the configured repositories (e.g. snapd after disabling snap), and previously caused the entire update list refresh to fail.

Closes #1059

Skip installed packages whose apt cache candidate is None instead of
crashing with 'NoneType has no attribute version'. This can happen when
a package is orphaned or removed from the configured repositories, and
previously caused the entire update list refresh to fail.

Closes linuxmint#1059

Signed-off-by: SAY-5 <say.apm35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'NoneType' object has no attribute 'version' in checkAPT.py

1 participant