Skip to content

checkAPT: handle packages without a candidate version#1060

Closed
SAY-5 wants to merge 1 commit into
linuxmint:masterfrom
SAY-5:fix/check-apt-cache-version-none-1059
Closed

checkAPT: handle packages without a candidate version#1060
SAY-5 wants to merge 1 commit into
linuxmint: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>
@mtwebster
Copy link
Copy Markdown
Member

Hi I had to merge this manually as I've moved this code into a new file:
c47be3d

Thanks!

@mtwebster mtwebster closed this May 20, 2026
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

2 participants