Sync the AptPackages db after modification, and close when done.