Error updating May

As recommended I post My log because I have an error updating My RP2. Thanks in advance!

http://paste.osmc.io/upoyoquref

Error updating. Any help? Thanks

Please don’t post screenshots of console output. It’s horribly difficult to read.

We’d also prefer to see the entire output including the issued command.

Your issue is totally different to what problem was described here.
Please open a new thread and also provide full logs with grab-logs -A

Thanks! I’ll do it

Can you show (use paste-log or paste.osmc.io) the output of

ls -lah /usr/lib/kodi/addons/library.kodi.guilib/

Log started: 2016-05-05 18:13:06
Preparing to unpack …/rbp2-mediacenter-osmc_16.1.0-3_armhf.deb …
Unpacking rbp2-mediacenter-osmc (16.1.0-3) over (16.0.0-13) …
dpkg: error processing archive /var/cache/apt/archives/rbp2-mediacenter-osmc_16.1.0-3_armhf.deb (–unpack):
unable to create /usr/lib/kodi/addons/library.kodi.guilib/libKODI_guilib-arm.so.dpkg-new' (while processing ./usr/lib/kodi/addons/library.kodi.guilib/libKODI_guilib-arm.so’): Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for mime-support (3.58) …
Errors were encountered while processing:
/var/cache/apt/archives/rbp2-mediacenter-osmc_16.1.0-3_armhf.deb
Log ended: 2016-05-05 18:15:05

Yes I know, so post what I have mentioned before!

Total 48K
d–x--x— 2 root root 4.0K Apr 3 15:18 .
drwxr-xr-x 29 root root 4.0K May 6 16:21 …
-rwxr-xr-x 1 root root 40K Apr 3 13:15 libKODI_guilib-arm.so

Does it help?
Thanks in advance

Yes it helps. Somehow you must have messed up your permissions on your SD Card.
Please post out put of

ls -lah /usr/lib/kodi/addons
ls -lah /usr/lib/kodi/
ls -lah /usr/lib/
ls -lah /usr/
ls -lah /

total 116K
drwxr-xr-x 29 root root 4.0K May 6 16:21 .
drwxr-xr-x 4 root root 4.0K May 6 16:21 …
drwxr-xr-x 2 root root 4.0K Apr 3 20:51 adsp.basic
drwxr-xr-x 2 root root 4.0K May 6 16:21 adsp.freesurround
drwxr-xr-x 2 root root 4.0K Apr 3 20:51 audioencoder.vorbis
drwxr-xr-x 2 root root 4.0K May 6 16:21 library.kodi.adsp
drwxr-xr-x 2 root root 4.0K May 6 16:21 library.kodi.audioengine
d–x--x— 2 root root 4.0K Apr 3 15:18 library.kodi.guilib
drwxr-xr-x 2 root root 4.0K May 6 16:21 library.xbmc.addon
drwxr-xr-x 2 root root 4.0K May 6 16:21 library.xbmc.codec
drwxr-xr-x 2 root root 4.0K May 6 16:21 library.xbmc.pvr
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.argustv
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.demo
drwxr-xr-x 2 root root 4.0K Apr 3 20:51 pvr.dvblink
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.dvbviewer
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.filmon
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.hdhomerun
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.hts
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.iptvsimple
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.mediaportal.tvserver
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.mythtv
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.nextpvr
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.njoy
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.pctv
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.stalker
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.vbox
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.vdr.vnsi
drwxr-xr-x 2 root root 4.0K May 6 16:21 pvr.vuplus
drwxr-xr-x 2 root root 4.0K Apr 3 20:51 pvr.wmc

total 26M
drwxr-xr-x 4 root root 4.0K May 6 16:21 .
drwxr-xr-x 37 root root 4.0K May 2 17:14 …
-rw-r–r-- 1 root root 7.6K Apr 3 13:16 addon-helpers.cmake
drwxr-xr-x 29 root root 4.0K May 6 16:21 addons
-rw-r–r-- 1 root root 3.1K Apr 3 13:16 addoptions.cmake
-rw-r–r-- 1 root root 2.6K Apr 3 13:16 check_target_platform.cmake
-rw-r–r-- 1 root root 8.8K Apr 3 13:16 handle-depends.cmake
-rw-r–r-- 1 root root 739 Apr 3 13:16 kodi-config.cmake
-rwxr-xr-x 1 root root 26M Apr 3 13:35 kodi.bin
-rw-r–r-- 1 root root 5.3K Apr 3 13:16 prepare-env.cmake
drwxr-xr-x 3 root root 4.0K May 6 16:21 system
-rw-r–r-- 1 root root 160 Apr 3 13:16 xbmc-config.cmake

total 2.8M
drwxr-xr-x 37 root root 4.0K May 2 17:14 .
drwxr-xr-x 12 root root 4.0K Apr 3 14:14 …
drwxr-xr-x 4 root root 4.0K Apr 3 14:12 apt
drwxr-xr-x 17 root root 20K May 5 17:18 arm-linux-gnueabihf
drwxr-xr-x 2 root root 4.0K Jan 1 1970 avahi
drwxr-xr-x 2 root root 4.0K May 26 2015 binfmt.d
drwxr-xr-x 3 root root 4.0K Jan 1 1970 connman
drwxr-xr-x 2 root root 4.0K Jan 1 1970 coreutils
drwxr-xr-x 3 root root 4.0K Apr 3 14:14 cups
drwxr-xr-x 2 root root 4.0K Sep 8 2015 dbus-1.0
drwxr-xr-x 3 root root 4.0K Jan 1 1970 dpkg
drwxr-xr-x 2 root root 4.0K Jan 1 1970 eject
drwxr-xr-x 3 root root 4.0K Jan 1 1970 gcc
drwxr-xr-x 2 root root 4.0K Apr 3 14:12 gnupg
drwxr-xr-x 4 root root 4.0K May 6 16:21 kodi
-rw-r–r-- 1 root root 11K May 30 2015 libarmmem.a
-rwxr-xr-x 1 root root 15K May 30 2015 libarmmem.so
lrwxrwxrwx 1 root root 18 Mar 8 05:58 libbind9.so.90 -> libbind9.so.90.0.9
-rw-r–r-- 1 root root 38K Mar 8 05:58 libbind9.so.90.0.9
lrwxrwxrwx 1 root root 17 Jan 1 1970 libcdio.so.13 -> libcdio.so.13.0.0
-rw-r–r-- 1 root root 82K Sep 1 2014 libcdio.so.13.0.0
-rw-r–r-- 1 root root 128K Nov 4 2015 libcrossguid.a
-rw-r–r-- 1 root root 235K Oct 1 2014 libdialog.a
lrwxrwxrwx 1 root root 17 Mar 8 05:58 libdns.so.100 -> libdns.so.100.2.2
-rw-r–r-- 1 root root 1.3M Mar 8 05:58 libdns.so.100.2.2
lrwxrwxrwx 1 root root 16 Mar 8 05:58 libisc.so.95 -> libisc.so.95.5.0
-rw-r–r-- 1 root root 259K Mar 8 05:58 libisc.so.95.5.0
lrwxrwxrwx 1 root root 18 Mar 8 05:58 libisccc.so.90 -> libisccc.so.90.0.6
-rw-r–r-- 1 root root 22K Mar 8 05:58 libisccc.so.90.0.6
lrwxrwxrwx 1 root root 19 Mar 8 05:58 libisccfg.so.90 -> libisccfg.so.90.1.0
-rw-r–r-- 1 root root 76K Mar 8 05:58 libisccfg.so.90.1.0
-rw-r–r-- 1 root root 63K Feb 28 2015 liblirc_client.a
-rwxr-xr-x 1 root root 963 Feb 28 2015 liblirc_client.la
lrwxrwxrwx 1 root root 23 Jan 1 1970 liblirc_client.so -> liblirc_client.so.0.2.1
lrwxrwxrwx 1 root root 23 Jan 1 1970 liblirc_client.so.0 -> liblirc_client.so.0.2.1
-rwxr-xr-x 1 root root 56K Feb 28 2015 liblirc_client.so.0.2.1
lrwxrwxrwx 1 root root 18 Mar 8 05:58 liblwres.so.90 -> liblwres.so.90.0.7
-rw-r–r-- 1 root root 50K Mar 8 05:58 liblwres.so.90.0.7
lrwxrwxrwx 1 root root 32 Jan 1 1970 libpyglib-2.0-python2.7.so.0 -> libpyglib-2.0-python2.7.so.0.0.0
-rw-r–r-- 1 root root 11K May 10 2013 libpyglib-2.0-python2.7.so.0.0.0
-rw-r–r-- 1 root root 130K Dec 27 14:30 librtmp.a
lrwxrwxrwx 1 root root 12 Dec 27 14:30 librtmp.so -> librtmp.so.1
-rwxr-xr-x 1 root root 112K Dec 27 14:30 librtmp.so.1
lrwxrwxrwx 1 root root 20 Jan 1 1970 libsgutils2.so.2 -> libsgutils2.so.2.0.0
-rw-r–r-- 1 root root 124K Sep 29 2014 libsgutils2.so.2.0.0
drwxr-xr-x 3 root root 4.0K Jan 1 1970 locale
drwxr-xr-x 3 root root 4.0K Jan 1 1970 mime
drwxr-xr-x 2 root root 4.0K May 26 2015 modules-load.d
drwxr-xr-x 2 root root 4.0K May 2 17:14 openssh
-rw-r–r-- 1 root root 232 Mar 28 23:59 os-release
drwxr-xr-x 2 root root 4.0K Aug 15 2014 perl5
drwxr-xr-x 2 root root 4.0K May 2 17:11 pkgconfig
drwxr-xr-x 4 root root 4.0K Jan 1 1970 pm-utils
drwxr-xr-x 2 root root 4.0K Jan 1 1970 policykit-1
drwxr-xr-x 3 root root 4.0K Jan 1 1970 pyshared
drwxr-xr-x 27 root root 20K Jan 1 1970 python2.7
drwxr-xr-x 3 root root 4.0K Jan 1 1970 python3
drwxr-xr-x 2 root root 4.0K Mar 7 2015 samba
drwxr-xr-x 2 root root 4.0K Mar 9 2015 sasl2
lrwxrwxrwx 1 root root 19 Apr 14 22:26 sftp-server -> openssh/sftp-server
drwxr-xr-x 3 root root 4.0K May 4 16:06 ssl
drwxr-xr-x 2 root root 4.0K Jan 18 20:42 sudo
drwxr-xr-x 2 root root 4.0K May 26 2015 sysctl.d
drwxr-xr-x 7 root root 4.0K Jan 1 1970 systemd
drwxr-xr-x 2 root root 4.0K Nov 8 2014 tar
drwxr-xr-x 2 root root 4.0K Jan 1 1970 tc
drwxr-xr-x 2 root root 4.0K May 2 17:14 tmpfiles.d
drwxr-xr-x 2 root root 4.0K Jan 1 1970 udisks
drwxr-xr-x 2 root root 4.0K Jan 1 1970 valgrind
lrwxrwxrwx 1 root root 4 Jan 1 1970 xbmc -> kodi

total 280K
drwxr-xr-x 12 root root 4.0K Apr 3 14:14 .
drwxr-xr-x 23 root root 4.0K Oct 2 2015 …
drwxr-xr-x 2 root root 20K May 6 16:21 bin
drwxr-xr-x 2 root root 4.0K May 31 2015 games
drwxr-xr-x 7 root root 4.0K Jan 18 20:42 include
drwxr-xr-x 37 root root 4.0K May 2 17:14 lib
drwxr-xr-x 3 root root 4.0K Apr 3 14:14 libexec
drwxrwsr-x 10 root staff 4.0K Jan 1 1970 local
drwxr-xr-x 5 root root 4.0K Nov 29 10:27 osmc
drwxr-xr-x 2 root root 4.0K May 2 17:14 sbin
drwxr-xr-x 69 root root 4.0K Jan 3 11:26 share
-rw-r–r-- 1 root root 110K Nov 30 16:43 splash.png
-rw-r–r-- 1 root root 103K Nov 30 16:43 splash_sad.png
drwxr-xr-x 2 root root 4.0K May 31 2015 src

total 1.2M
drwxr-xr-x 23 root root 4.0K Oct 2 2015 .
drwxr-xr-x 23 root root 4.0K Oct 2 2015 …
drwxr-xr-x 2 root root 4.0K Apr 3 14:13 bin
drwxr-xr-x 5 root root 4.0K May 6 16:22 boot
-rw------- 1 root root 18M Oct 2 2015 core
drwxr-xr-x 15 root root 3.3K May 6 16:15 dev
drwxr-xr-x 71 root root 4.0K May 6 16:22 etc
drwxr-xr-x 3 root root 4.0K Jan 1 1970 home
drwxr-xr-x 16 root root 4.0K Apr 3 14:12 lib
drwxr-xr-x 2 root root 4.0K Feb 28 2015 lib64
drwx------ 4 root root 16K Jan 1 1970 lost+found
drwxr-xr-x 3 root root 4.0K May 6 16:15 media
drwxr-xr-x 2 root root 4.0K Jun 28 2015 mnt
drwxr-xr-x 3 root root 4.0K Jan 1 1970 opt
dr-xr-xr-x 134 root root 0 Jan 1 1970 proc
drwx------ 2 root root 4.0K Jan 1 1970 root
drwxrwxrwt 20 root root 600 May 6 16:18 run
drwxr-xr-x 2 root root 4.0K Apr 3 14:13 sbin
drwxr-xr-x 2 root root 4.0K Feb 28 2015 selinux
drwxr-xr-x 3 root root 4.0K Oct 19 2015 srv
dr-xr-xr-x 12 root root 0 May 6 17:24 sys
drwxrwxrwt 7 root root 4.0K May 6 16:22 tmp
drwxr-xr-x 12 root root 4.0K Apr 3 14:14 usr
drwxr-xr-x 11 root root 4.0K Jan 1 1970 var
-rw-r–r-- 1 osmc osmc 0 Aug 5 2015 walkthrough_completed

Copied in the same order you asked

Ok, seems only that one directory is impacted. Try
sudo chmod -R 755 /usr/lib/kodi/addons/library.kodi.guilib/

If that is successful then try to upgrade again

operation not permitted

I copy

osmc@osmc:~$ sudo chmod -R 755 /usr/lib/kodi/addons/library.kodi.guilib/
chmod: changing permissions of ‘/usr/lib/kodi/addons/library.kodi.guilib/’: Operation not permitted

Than you might either have broken your SD card or some addons are really messing up your system.
Last try
sudo chattr -i /usr/lib/kodi/addons/library.kodi.guilib/
and then again
sudo chmod -R 755 /usr/lib/kodi/addons/library.kodi.guilib/

the same

osmc@osmc:~$ sudo chmod -R 755 /usr/lib/kodi/addons/library.kodi.guilib/
chmod: changing permissions of ‘/usr/lib/kodi/addons/library.kodi.guilib/’: Operation not permitted

format sd is the solution?

SO but chattr worked ok?

Well that is one option but main question is if SD card is broken or one of the addons has played fool. If SD card broken then the format may only be a short healing

RP works perfect (addons and pvr I usually use) the only problems is when I try to update. Do you think is a good idea to wait for the next update?

Another question
Could I delete this folder and when updating it would be restored or I could delete it and create another one with the same name?

thanks in advance

No, the next update will not make any difference to a corrupted filesystem

Well as you can not change the permission on the directory you will also not be able to delete it. Try it but it will most likely also say permission denied.

ok
Thank you very much!!!

After formated and updated I cannot modify config.txt with MPG2 licence. Any idea?