wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.78k stars 814 forks source link

Package Control:There are no packages available for installation (with fix) #1413

Open billsmithem opened 5 years ago

billsmithem commented 5 years ago

I've seen this reported many times, but never seen the issue I had, so for future reference:

Followed instructions on debugging and traced the issue down to the files in "~/.config/sublime-text-3/Packages/User/Package Control.cache" belonging to root rather than my user. Sublime is set up to share configuration via dropbox, so it's possible I opened Package Control while running Sublime as root and that's how the ownership of the cache files got set that way.

Once found, the solution was to change file ownership.

XenHat commented 5 years ago

If you're in a hurry, you can use the following command:

sudo chown "$USER:$USER" "$HOME/.config/sublime-text-3/Packages" -R -v|grep -v retained

This will only show the files that has been changed.