Hello all. I’m trying to update my RPi3B+ OSMC install, but keep getting an error installing base-files (9.9+deb9u9)
I’ve tried apt-get clean to clear any cache issues, I’ve tried fsck.repair=yes on my cmdline.txt, but no apparent errors to fix.
Any ideas?
The error from my APT log shows:-
Log started: 2019-04-27 11:56:04
dpkg: warning: files list file for package 'armv7-remote-osmc' missing; assuming package has no files currently installed
Preparing to unpack .../base-files_9.9+deb9u9_armhf.deb ...
Unpacking base-files (9.9+deb9u9) over (9.9+deb9u5) ...
dpkg: error processing archive /var/cache/apt/archives/base-files_9.9+deb9u9_armhf.deb (--unpack):
trying to overwrite '/etc/issue', which is also in package base-files-osmc 2.7.2
Errors were encountered while processing:
/var/cache/apt/archives/base-files_9.9+deb9u9_armhf.deb
Log ended: 2019-04-27 11:56:04
If running
sudo apt-get install --reinstall base-files-osmc
doesn’t fix the problem, please provide logs.
That doesn’t work whatsoever:-
Preparing to unpack .../base-files-osmc_2.7.6_all.deb ...
Adding 'diversion of /etc/issue to /etc/issue.distributed by base-files-osmc'
dpkg-divert: error: rename involves overwriting '/etc/issue.distributed' with
different file '/etc/issue', not allowed
dpkg: error processing archive /var/cache/apt/archives/base-files-osmc_2.7.6_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/base-files-osmc_2.7.6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Full logs are at https://paste.osmc.tv/fugucifudo
It looks like you have a filesystem corruption that has caused some problems:
Log started: 2019-03-06 20:12:17
unable to open files list file for package 'bash': Structure needs cleaning
Log ended: 2019-03-06 20:12:18
You’ll notice that this error is similar to the one you already posted:
dpkg: warning: files list file for package 'armv7-remote-osmc' missing; assuming package has no files currently installed
You can try to reinstall version 2.7.2 of base-files-osmc, which is the one currently installed:
sudo apt-get install --reinstall base-files-osmc=2.7.2
but realistically you either need to fix the filesystem corruption or reinstall OSMC, preferably on a new SD card. To run a filesystem check type sudo touch /forcefsck
and then reboot
the Pi.