fix apt.py refresh_db (issue #3488)
Merge pull request #3491 from archtaku/issue3488

fix apt.py refresh_db (issue #3488)