Today after I did a system upgrade of my arch linux box I found that every time I installed any package using pacman I encountered this error message.
:: Running post-transaction hooks...
(1/2) Updating icon theme caches...
call to execv failed (Permission denied)
error: command failed to execute correctly
(2/2) Updating the desktop file MIME type cache...
After looking around for a solution I found that the case was a lack of execution permissions in a file called gtk-update-icon-cache.
THE CAUSE:
The script that gtk-update-icon-cache calls through pacman has not the executable flag.
$ ls -al /usr/share/libalpm/scripts/gtk-update-icon-cache
-rw-r--r-- 1 root root 195 abr 27 17:04 /usr/share/libalpm/scripts/gtk-update-icon-cache
THE SOLUTION:
Just change it to be executable
$ sudo chmod +x /usr/share/libalpm/scripts/gtk-update-icon-cache
$ ls -al /usr/share/libalpm/scripts/gtk-update-icon-cache
-rwxr-xr-x 1 root root 195 abr 27 09:06 /usr/share/libalpm/scripts/gtk-update-icon-cache
And you have to reinstall gtk3 to make it work back again.
$ sudo pacman -S gtk3
Please share this workaround or g+ as we can help as many arch linux users as possible.
Any comments you have, leave them below...
Thanks for passing by.
Nice blog thanks for postinng
ReplyDelete