Error installing python-pkg-resources (44.1.1-1)

Hi all,

I’ve tried to install the January update which Kodi prompted me to do. However, the process failed with a message which translates to: Error occurred installing: python-pkg-resources (44.1.1-1).

So I logged in through ssh and tried to update manually. It seems I’m getting “Segmentation fault” errors. I don’t know why:

root@osmc:/var/log# apt update
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Get:3 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://security.debian.org bullseye-security InRelease [48.4 kB]
Hit:1 https://ftp.fau.de/osmc/osmc/apt bullseye InRelease
Get:5 http://security.debian.org bullseye-security/main armhf Packages [212 kB]
Fetched 305 kB in 6s (50.9 kB/s)
Reading package lists... Done

root@osmc:/var/log# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  armv7-libass-osmc armv7-libcrossguid-osmc armv7-libnfs-osmc bluez dh-python gnupg-agent libapt-inst1.5 libapt-inst2.0 libapt-pkg5.0
  libbind9-140 libbind9-161 libbind9-90 libcdio13 libcdio18 libdbus-1-dev libdevmapper-event1.02.1 libdns100 libdns1104 libdns1110
  libdns162 libdpkg-perl libenca0 libevent-2.0-5 libevent-2.1-6 libfdk-aac1 libffi6 libgdbm3 libgeoip1 libgif4 libgnutls-deb0-28
  libhogweed2 libhogweed4 libicu52 libicu57 libicu63 libidn11 libip4tc0 libip6tc0 libiptc0 libisc1100 libisc1105 libisc160 libisc95
  libisccc140 libisccc161 libisccc90 libisccfg140 libisccfg163 libisccfg90 libiso9660-8 libjson-c3 liblvm2app2.2 liblwres141
  liblwres161 liblwres90 libmicrohttpd10 libmpdec2 libmysqlclient18 libnettle4 libnettle6 libnfs12 libntdb1 libntfs-3g871 libperl5.28
  libplist2 libpng12-0 libprocps6 libprocps7 libpsl0 libpython2-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib
  libpython3.5-minimal libpython3.5-stdlib libpython3.7 libpython3.7-minimal libpython3.7-stdlib libreadline7 libsnmp30 libssl1.0.0
  libssl1.0.2 libunistring0 libwebp5 libwebpdemux1 libwebpmux1 libwebpmux2 libxtables10 perl-modules-5.28 pkg-config python-dbus-dev
  python-pkg-resources python-six python2 python2-minimal python2.7 python2.7-minimal python3-distutils python3-lib2to3 python3.5
  python3.5-minimal python3.7 python3.7-minimal wireless-firmware-osmc
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  armv7-evrepeat-osmc base-files-osmc bind9-host bind9-libs curl distro-info-data libconfuse-common libconfuse2 libcurl4
  libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libksba8 libmariadb3 libntfs-3g883 libtasn1-6 libtinyxml2.6.2v5 libxml2
  mariadb-common mediacenter-addon-osmc nano ntfs-3g python-pkg-resources python-six rbp-bootloader-osmc rbp2-mediacenter-osmc sudo
28 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 110 MB of archives.
After this operation, 510 kB of additional disk space will be used.
Do you want to continue? [Y/n] yes
Get:1 http://security.debian.org bullseye-security/main armhf curl armhf 7.74.0-1.3+deb11u5 [262 kB]
Get:2 http://ftp.debian.org/debian bullseye/main armhf python-pkg-resources all 44.1.1-1 [182 kB]
Get:4 http://ftp.debian.org/debian bullseye/main armhf python-six all 1.16.0-2 [17.4 kB]
Get:5 http://ftp.debian.org/debian bullseye/main armhf libk5crypto3 armhf 1.18.3-6+deb11u3 [110 kB]
Get:6 http://ftp.debian.org/debian bullseye/main armhf libkrb5support0 armhf 1.18.3-6+deb11u3 [62.6 kB]
Get:7 http://ftp.debian.org/debian bullseye/main armhf libkrb5-3 armhf 1.18.3-6+deb11u3 [319 kB]
Get:10 http://security.debian.org bullseye-security/main armhf libcurl4 armhf 7.74.0-1.3+deb11u5 [313 kB]
Get:11 http://security.debian.org bullseye-security/main armhf bind9-libs armhf 1:9.16.37-1~deb11u1 [1307 kB]
Get:12 http://ftp.debian.org/debian bullseye/main armhf libgssapi-krb5-2 armhf 1.18.3-6+deb11u3 [143 kB]
Get:13 http://ftp.debian.org/debian bullseye/main armhf libtasn1-6 armhf 4.16.0-2+deb11u1 [50.4 kB] 
Get:15 http://ftp.debian.org/debian bullseye/main armhf libtinyxml2.6.2v5 armhf 2.6.2-4+deb11u1 [32.7 kB]                 
Get:16 http://ftp.debian.org/debian bullseye/main armhf mariadb-common all 1:10.5.18-0+deb11u1 [36.9 kB]                               
Get:17 http://ftp.debian.org/debian bullseye/main armhf libmariadb3 armhf 1:10.5.18-0+deb11u1 [162 kB]                                 
Get:19 http://ftp.debian.org/debian bullseye/main armhf libxml2 armhf 2.9.10+dfsg-6.7+deb11u3 [602 kB]                                 
Get:20 http://security.debian.org bullseye-security/main armhf bind9-host armhf 1:9.16.37-1~deb11u1 [306 kB]    
Get:21 http://ftp.debian.org/debian bullseye/main armhf nano armhf 5.4-2+deb11u2 [639 kB]  
Get:3 https://ftp.fau.de/osmc/osmc/apt bullseye/main armhf base-files-osmc all 3.2.5 [61.3 kB]
Get:22 http://security.debian.org bullseye-security/main armhf libksba8 armhf 1.5.0-3+deb11u2 [105 kB]
Get:23 http://security.debian.org bullseye-security/main armhf sudo armhf 1.9.5p2-3+deb11u1 [1001 kB]   
Get:8 https://ftp.fau.de/osmc/osmc/apt bullseye/main armhf rbp-bootloader-osmc armhf 5.15.76-1 [2002 kB]
Get:24 http://ftp.debian.org/debian bullseye/main armhf distro-info-data all 0.51+deb11u3 [7812 B] 
Get:25 http://ftp.debian.org/debian bullseye/main armhf libconfuse-common all 3.3-2+deb11u1 [13.4 kB]               
Get:26 http://ftp.debian.org/debian bullseye/main armhf libconfuse2 armhf 3.3-2+deb11u1 [29.2 kB]                      
Get:27 http://ftp.debian.org/debian bullseye/main armhf ntfs-3g armhf 1:2017.3.23AR.3-4+deb11u3 [401 kB]        
Get:28 http://ftp.debian.org/debian bullseye/main armhf libntfs-3g883 armhf 1:2017.3.23AR.3-4+deb11u3 [161 kB]
Get:9 https://ftp.fau.de/osmc/osmc/apt bullseye/main armhf mediacenter-addon-osmc all 3.0.761 [6731 kB]         
Get:14 https://ftp.fau.de/osmc/osmc/apt bullseye/main armhf rbp2-mediacenter-osmc armhf 19.5.0-14 [95.2 MB]
Get:18 https://ftp.fau.de/osmc/osmc/apt bullseye/main armhf armv7-evrepeat-osmc armhf 0.1.0-4 [4004 B]                                 
Fetched 110 MB in 30s (3738 kB/s)                                                                                                      
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "nl_NL.UTF-8",
	LC_MONETARY = "nl_NL.UTF-8",
	LC_ADDRESS = "nl_NL.UTF-8",
	LC_TELEPHONE = "nl_NL.UTF-8",
	LC_NAME = "nl_NL.UTF-8",
	LC_MEASUREMENT = "nl_NL.UTF-8",
	LC_IDENTIFICATION = "nl_NL.UTF-8",
	LC_NUMERIC = "nl_NL.UTF-8",
	LC_PAPER = "nl_NL.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up base-files (11.1+deb11u6) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 48922 files and directories currently installed.)
Preparing to unpack .../python-pkg-resources_44.1.1-1_all.deb ...
Segmentation fault
dpkg: warning: old python-pkg-resources package pre-removal script subprocess returned error exit status 139
dpkg: trying script from the new package instead ...
Segmentation fault
dpkg: error processing archive /var/cache/apt/archives/python-pkg-resources_44.1.1-1_all.deb (--unpack):
 new python-pkg-resources package pre-removal script subprocess returned error exit status 139
Segmentation fault
dpkg: error while cleaning up:
 installed python-pkg-resources package post-installation script subprocess returned error exit status 139
Preparing to unpack .../python-six_1.16.0-2_all.deb ...
Segmentation fault
dpkg: warning: old python-six package pre-removal script subprocess returned error exit status 139
dpkg: trying script from the new package instead ...
Segmentation fault
dpkg: error processing archive /var/cache/apt/archives/python-six_1.16.0-2_all.deb (--unpack):
 new python-six package pre-removal script subprocess returned error exit status 139
Segmentation fault
dpkg: error while cleaning up:
 installed python-six package post-installation script subprocess returned error exit status 139
Preparing to unpack .../libk5crypto3_1.18.3-6+deb11u3_armhf.deb ...
Unpacking libk5crypto3:armhf (1.18.3-6+deb11u3) over (1.18.3-6+deb11u2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python-pkg-resources_44.1.1-1_all.deb
 /var/cache/apt/archives/python-six_1.16.0-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@osmc:/var/log# dmesg | tail
[   17.045487] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[   17.045964] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[   17.046243] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[   17.046493] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[   17.050586] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[   17.142143] Console: switching to colour frame buffer device 240x67
[   17.170824] vc4-drm soc:gpu: [drm] fb0: vc4drmfb frame buffer device
[   19.037172] smsc95xx 1-1.1:1.0 enxb827eb882b77: Link is Up - 100Mbps/Full - flow control off
[   19.037253] IPv6: ADDRCONF(NETDEV_CHANGE): enxb827eb882b77: link becomes ready
[   19.145455] 8021q: 802.1Q VLAN Support v1.8
root@osmc:/var/log# 

Does anybody have an idea on how to troubleshoot this further?

Thanks in advance!

Hi

Can you upload full logs? This should give us a more detailed explanation as to what’s happening

Thanks

Sam

Hi Sam,

Thanks for your response!
I’ve uploaded the logs (grab-logs -A): https://paste.osmc.tv/vudebowigi

It looks like the filesystem is corrupted.