Error installing: apt (1.4.9) osmc

Hello.

I get this error when trying to update to 18.2.

Logs https://paste.osmc.tv/ewuvohetor

The log is showing this error:

dpkg: error processing archive /var/cache/apt/archives/apt_1.4.9_armhf.deb (--unpack):
 trying to overwrite '/usr/share/man/man5', which is also in package armv7-eventlircd-osmc 1.3.3

which we usually see when a file is already “owned” by another package. However, in this case, /usr/share/man/man5 should be a directory, so the error shouldn’t occur.

The first thing to check is if /usr/share/man/man5 really is a directory, so please show the output from running ls -l /usr/share/man

You could also try reinstalling armv7-eventlircd-osmc (sudo apt-get install --reinstall armv7-eventlircd-osmc) to see if this clears the problem.

I see that the SD card seems to be over 3 years old, so a failing card is quite likely to be the root cause of the problem.

Thanks. Here is the output
'osmc@osmcStoraRummet:~$ ls -l /usr/share/man
total 260
drwxr-xr-x 5 root root 4096 Jan 24 2016 cs
drwxr-xr-x 5 root root 4096 Jan 24 2016 da
drwxr-xr-x 5 root root 4096 Apr 22 2015 de
drwxr-xr-x 5 root root 4096 Apr 22 2015 es
drwxr-xr-x 3 root root 4096 Jan 24 2016 fi
drwxr-xr-x 5 root root 4096 Apr 22 2015 fr
drwxr-xr-x 5 root root 4096 Jan 24 2016 hu
drwxr-xr-x 4 root root 4096 Jan 24 2016 id
drwxr-xr-x 5 root root 4096 Apr 22 2015 it
drwxr-xr-x 5 root root 4096 Apr 22 2015 ja
drwxr-xr-x 5 root root 4096 Jan 24 2016 ko
drwxr-xr-x 2 root root 36864 Apr 22 11:51 man1
drwxr-xr-x 2 root root 12288 Aug 5 2018 man3
-rw-r–r-- 2 osmc osmc 80491 Mar 17 19:20 man5
drwxr-xr-x 2 root root 4096 Jan 1 11:26 man7
drwxr-xr-x 2 root root 36864 Jan 1 11:26 man8
drwxr-xr-x 5 root root 4096 Jan 10 2018 nl
drwxr-xr-x 5 root root 4096 Apr 22 2015 pl
drwxr-xr-x 5 root root 4096 Apr 22 2015 pt
drwxr-xr-x 5 root root 4096 Jan 24 2016 pt_BR
drwxr-xr-x 5 root root 4096 Jan 24 2016 ru
drwxr-xr-x 4 root root 4096 Jan 10 2018 sl
drwxr-xr-x 5 root root 4096 Apr 22 2015 sv
drwxr-xr-x 5 root root 4096 Jan 24 2016 tr
drwxr-xr-x 5 root root 4096 Jan 24 2016 zh_CN
drwxr-xr-x 5 root root 4096 Jan 24 2016 zh_TW

and this

osmc@osmcStoraRummet:~$ sudo apt-get install --reinstall armv7-eventlircd-osmc
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
apt-transport-https armv7-libafpclient-osmc armv7-libcrossguid-osmc bluez
ifupdown libapt-inst1.5 libasn1-8-heimdal libass5 libbind9-90 libbluray1
libcurl3-gnutls libdbus-1-dev libdns100 libdpkg-perl libflac8 libgif4
libgnutls-deb0-28 libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhogweed2 libhx509-5-heimdal
libicu52 libisc95 libisccc90 libisccfg90 libjasper1 libkrb5-26-heimdal
liblwres90 libmicrohttpd10 libmysqlclient18 libnettle4 libntdb1 libplist2
libpng12-0 libpsl0 libroken18-heimdal libssl1.0.0 libwebp5 libwebpdemux1
libwebpmux1 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
libxtables10 pkg-config python-dbus-dev
Use ‘sudo apt autoremove’ to remove them.
The following packages will be upgraded:
armv7-eventlircd-osmc
1 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
Need to get 0 B/36.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database … 28531 files and directories currently installed.)
Preparing to unpack …/armv7-eventlircd-osmc_1.3.4_armhf.deb …
Unpacking armv7-eventlircd-osmc (1.3.4) over (1.3.3) …
dpkg: error processing archive /var/cache/apt/archives/armv7-eventlircd-osmc_1.3.4_armhf.deb (–unpack):
trying to overwrite ‘/usr/share/man/man5’, which is also in package systemd 232-25+deb9u6
Errors were encountered while processing:
/var/cache/apt/archives/armv7-eventlircd-osmc_1.3.4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Don’t panic. You’ll need to remove the file first.

sudo rm -f /usr/share/man/man5

then try the reinstall

Thanks fot such a fast answer now the upgrade of sudo apt-get install --reinstall armv7-eventlircd-osmc went trough and man5 has the right permission.

The TV set is however occupied by wife so i will try the update later.

2 Likes

Thank you very much. Up and running 18.2 :slight_smile: