Yet again, I am getting this error. This is a practically fresh(maybe 1 month old) install on a BRAND NEW sd card. I got a notification telling me there was an update available, I told it to go ahead, and it failed immediately.
Yet again you installed a massive amount of packages that let to configuration issues. Check your apt.log
Actually I did not. I have not touched it since I last got the error. Where do I find the apt.log?
So you are telling us that you didn’t install screen? How about rtorrent? And how about dhcpcd5, git and whiptail? And that’s only part of it.
They didn’t install on their own.
Look in the log that you posted. It’s in the APT history.log
I said since I last got this error, I have not touched it. Yes I installed screen, it should be in base linux as far as I am concerned, it is a very useful utility, also yes I installed rtorrent, and pihole(which most likely installed the other things), plus I installed a nfs. Tell me how 4 things equals “a massive amount”.
The APT history.log does not show me whats wrong.
There is your problem most likely. PiHole does not play well with ConnMan that’s used on OSMC. I’d suggest a new install on the SD card and this time don’t install PiHole.
This is where the problem started:
Start-Date: 2020-02-02 19:24:52 Commandline: /usr/bin/apt-get-real -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 --yes --no-install-recommends install cron dnsutils iputils-ping lsof netcat unzip idn2 sqlite3 dns-root-data resolvconf lighttpd php-common php-cgi php-sqlite3 Requested-By: osmc (1000) Install: php7.0-cgi:armhf (7.0.33-0+deb9u6, automatic), php7.0-cli:armhf (7.0.33-0+deb9u6, automatic), ifupdown:armhf (0.8.19, automatic), php-common:armhf (1:49), php7.0-opcache:armhf (7.0.33-0+deb9u6, automatic), lsof:armhf (4.89+dfsg-0.1), dnsutils:armhf (1:9.10.3.dfsg.P4-12.3+deb9u5), php7.0-common:armhf (7.0.33-0+deb9u6, automatic), resolvconf:armhf (1.79), php7.0-sqlite3:armhf (7.0.33-0+deb9u6, automatic), php-sqlite3:armhf (1:7.0+49), libmagic1:armhf (1:5.30-1+deb9u3, automatic), lighttpd:armhf (1.4.45-1), sqlite3:armhf (3.16.2-5+deb9u1), php7.0-json:armhf (7.0.33-0+deb9u6, automatic), libmagic-mgc:armhf (1:5.30-1+deb9u3, automatic), php7.0-readline:armhf (7.0.33-0+deb9u6, automatic), php-cgi:armhf (1:7.0+49), libfam0:armhf (2.7.0-17.2+b1, automatic), unzip:armhf (6.0-21+deb9u2), iputils-ping:armhf (3:20161105-1), idn2:armhf (0.16-1+deb9u1), netcat:armhf (1.10-41), dns-root-data:armhf (2019031302~deb9u1), netcat-traditional:armhf (1.10-41+b1, automatic), cron:armhf (3.0pl1-128+deb9u1) Error: Sub-process /usr/bin/dpkg returned an error code (1) End-Date: 2020-02-02 19:25:23
I have DHCP disabled, and have used PIhole with OSMC for quite some time, but I will give it a shot without it.
Well the error is shown in the term.log
Setting up resolvconf (1.79) ... Can't locate object method "new" via package "Text::Iconv" (perhaps you forgot to load "Text::Iconv"?) at /usr/share/perl5/Debconf/Encoding.pm line 65. dpkg: error processing package resolvconf (--configure): subprocess installed post-installation script returned error exit status 29 Setting up php7.0-common (7.0.33-0+deb9u6) ... Can't locate object method "new" via package "Text::Iconv" (perhaps you forgot to load "Text::Iconv"?) at /usr/share/perl5/Debconf/Encoding.pm line 65, <GEN2> line 2. dpkg: error processing package php7.0-common (--configure): subprocess installed post-installation script returned error exit status 255 Setting up cron (3.0pl1-128+deb9u1) ... Adding group `crontab' (GID 112) ... Done. Created symlink /etc/systemd/system/multi-user.target.wants/cron.service -> /lib/systemd/system/cron.service. update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults dpkg: dependency problems prevent configuration of php7.0-readline: php7.0-readline depends on php7.0-common (= 7.0.33-0+deb9u6); however: Package php7.0-common is not configured yet.
Your SD card might be new but, even if genuine, electronic devices often fail early on.
As to your problem, there is one package that is marked as needing to be reinstalled:
iHR perl-modules-5.24 5.24.1-3+deb9u5 all Core Perl modules
and two perl-related packages that are in an unfinished state:
iU libperl5.24:armhf 5.24.1-3+deb9u6 armhf shared Perl library iU perl 5.24.1-3+deb9u6 armhf Larry Wall's Practical Extraction and Report Language
I think the first step is to try to reinstall
sudo apt-get install --reinstall perl-modules-5.24
This might fail because perl is used by the APT system, but we’ll see what happens first.