Error when running dist-upgrade

getting the same problem. running cmd line: apt-get dist-upgrade, get the message:

root@Marvin:~# apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
armv7-connman-osmc armv7-network-osmc base-files-osmc libicu52 openssh-client openssh-server openssh-sftp-server openssl
rbp2-mediacenter-osmc sudo tzdata
11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/48.7 MB of archives.
After this operation, 20.5 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “en_US.utf8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
E: Invalid archive member header urceTVP.pl VODTVP VOD PluginAllowing You to watch TVP VOD.ht!

E: Prior errors apply to /var/cache/apt/archives/libicu52_52.1-8+deb8u6_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/tzdata_2017c-0+deb8u1_all.deb
E: Prior errors apply to /var/cache/apt/archives/armv7-connman-osmc_1.3.4-9_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/armv7-network-osmc_1.7.3_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/base-files-osmc_2.4.5_all.deb
E: Prior errors apply to /var/cache/apt/archives/rbp2-mediacenter-osmc_17.6.0-5_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/openssh-sftp-server_1%3a6.7p1-5+deb8u4_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/openssh-server_1%3a6.7p1-5+deb8u4_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/openssh-client_1%3a6.7p1-5+deb8u4_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/openssl_1.0.1t-1+deb8u7_armhf.deb
E: Prior errors apply to /var/cache/apt/archives/sudo_1.8.10p3-1+deb8u5_armhf.deb
debconf: apt-extracttemplates failed: No such file or directory
Setting up sensible-utils (0.0.9+deb8u1) …
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libicu52_52.1-8+deb8u6_armhf.deb (–unpack):
subprocess dpkg-deb --control returned error exit status 2
(Reading database … 22761 files and directories currently installed.)
Preparing to unpack …/tzdata_2017c-0+deb8u1_all.deb …
Unpacking tzdata (2017c-0+deb8u1) over (2017b-0+deb8u1) …
Errors were encountered while processing:
/var/cache/apt/archives/libicu52_52.1-8+deb8u6_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Marvin:~#

OSMC runs okay, but it is not the updated version.

(Note this was run on an RPi 3, with a fresh install of oct 29, '17 version).

ken

I’ve moved your problem to a new thread.

Please run grab-logs -A and post the URL it returns.

https://paste.osmc.tv/ehofuhemiy

ken

It looks like there has been a corruption of (at least) the APT package management system.

You could try to run

sudo apt-get check
sudo apt-get install -f

but it’s a long shot, since there it looks like other things have been affected on the system

Out of interest, why would you do a fresh install of October version and upgrade when the December image is available?

When I installed this RPi, I used the latest version from the osmc-installer.

I did the install at the beginning of January - probably the 1st. I only ran the check update about a week later. That is when this failure first happened.

ken

So with only a week or two’s cruft on it, maybe it’s best to just start again with the 2017-12-01 image, using backup and restore to preserve your settings.

Surprise, surprise!

This did (seem to) help. I didn’t save the output, but I did run apt-get update and apt-get dist-upgrade afterward. That time it updated about 300 packages, all with no error! If there is anything else corrupted on this box, I can’t see it, and kodi seems to run okay.

Thanks for your help. But, is this the same problem as the other’s listed in the previous thread?

(I should mention that I am mostly a fedora/rpm guy, so this apt stuff is a bit foreign to me.)

ken

The “previous” thread has no doubt moved to a different location by now. :wink:

If you run less /var/log/apt/term.log does it show readable text or unprintable junk?