Trying to run `pkg upgrade' failed with the following error: [2/17] Extracting pango-1.38.0_1: 100% rm: /usr/local/lib/pango/1.8.0/modules.cache: No such file or directory pkg: DEINSTALL script failed I solved the problem by running: pkg delete -D -f x11-toolkits/pango pkg install pango-1.38.0_1
Do you still get the problem when using pkg-1.8.3? Because of the current number of packages that have edge case issues with errors in the plist that can cause pkg deinstall errors like this one (pango's plist was fixed, but too late for existing pango packages in the wild that had the error), pkg-1.8.3 tries to ignore such failures. When most (all?) packages have cleaned up their act, pkg(8) can then re-introduce code to not ignore package deinstall errors (and some class of package install errors). By the way, another workaround is to mkdir -p /usr/local/lib/1.8.0 && touch /usr/local/lib/pango/1.8.0/modules.cache before upgrading the pango package. Then remove those after you did the upgrade. That could have been added to UPDATING. But it was probably easier to just update pkg(8) to ignore the deinstall error for now.
Yes, before this upgrade, pkg has been auto-upgraded to 1.8.3.
Is this still relevant?