"Unable to remove xxx: no packages to remove"

If you sudo nano the file you want to edit, you don’t need to copy it.