Fontconfig-config problem prevents me from updating OSMC

Hello,

I cannot seem to be able to upgrate OSMC which I’m running on rPi2. The problematic package appears to be fontconfig-config. This is the output I’m getting:

Preparing to unpack .../fontconfig-config_2.11.0-6.3+deb8u1_all.deb ...
/usr/bin/dpkg-maintscript-helper: 545: /usr/bin/dpkg-maintscript-helper: basename: Input/output error
dpkg: error processing archive /var/cache/apt/archives/fontconfig-config_2.11.0-6.3+deb8u1_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
/usr/bin/dpkg-maintscript-helper: 545: /usr/bin/dpkg-maintscript-helper: basename: Input/output error
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 2
Preparing to unpack .../tzdata_2016f-0+deb8u1_all.deb ...
Unpacking tzdata (2016f-0+deb8u1) over (2016d-0+deb8u1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/fontconfig-config_2.11.0-6.3+deb8u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’ve tried purging the package, clearing cache and re-downloading it, checking the filessytem’s integrity (checks out ok). All to no avail. Whatever I do I always get this error. Thanks for your help.

Which file system did you check? Because this is indicating a File system. Maybe post output of dmesg.

Ok, here is my dmesg output:

[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.16-4-osmc (root@vero2a) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT Fri Aug 26 00:22:10 UTC 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[    0.000000] cma: Reserved 8 MiB at 0x2e400000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 192512
[    0.000000] free_area_init_node: node 0, pgdat 80bd01c0, node_mem_map add64000
[    0.000000]   Normal zone: 1692 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 192512 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (9660->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 13 pages/cpu @aefaa000 s23552 r8192 d21504 u53248
[    0.000000] pcpu-alloc: s23552 r8192 d21504 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 190820
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0xa01041 bcm2709.serial=0xe5077abb smsc95xx.macaddr=B8:27:EB:07:7A:BB bcm2708_fb.fbswap=1 bcm2709.uart_clock=3000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  root=/dev/mmcblk0p2 rootfstype=ext4 rootwait quiet osmcdev=rbp2
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 741072K/770048K available (8006K kernel code, 439K rwdata, 1868K rodata, 1788K init, 764K bss, 20784K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xaf800000 - 0xff800000   (1280 MB)
    lowmem  : 0x80000000 - 0xaf000000   ( 752 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x809acb4c   (9875 kB)
      .init : 0x809ad000 - 0x80b6c000   (1788 kB)
      .data : 0x80b6c000 - 0x80bd9ecc   ( 440 kB)
       .bss : 0x80bdc000 - 0x80c9b36c   ( 765 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000011] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000032] Switching to timer-based delay loop, resolution 52ns
[    0.000333] Console: colour dummy device 80x30
[    0.000551] console [tty0] enabled
[    0.000581] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000610] pid_max: default: 32768 minimum: 301
[    0.000964] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000984] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002212] Disabling cpuset control group subsystem
[    0.002259] Initializing cgroup subsys io
[    0.002293] Initializing cgroup subsys memory
[    0.002344] Initializing cgroup subsys devices
[    0.002370] Initializing cgroup subsys freezer
[    0.002394] Initializing cgroup subsys net_cls
[    0.002467] CPU: Testing write buffer coherency: ok
[    0.002548] ftrace: allocating 19428 entries in 57 pages
[    0.049793] CPU0: update cpu_capacity 1024
[    0.049834] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.049851] [bcm2709_smp_prepare_cpus] enter
[    0.049993] Setting up static identity map for 0x8240 - 0x8298
[    0.129385] [bcm2709_boot_secondary] cpu:1 started (0) 17
[    0.129746] [bcm2709_secondary_init] enter cpu:1
[    0.129805] CPU1: update cpu_capacity 1024
[    0.129813] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.159418] [bcm2709_boot_secondary] cpu:2 started (0) 18
[    0.159703] [bcm2709_secondary_init] enter cpu:2
[    0.159735] CPU2: update cpu_capacity 1024
[    0.159743] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.189498] [bcm2709_boot_secondary] cpu:3 started (0) 17
[    0.189750] [bcm2709_secondary_init] enter cpu:3
[    0.189781] CPU3: update cpu_capacity 1024
[    0.189789] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.189880] Brought up 4 CPUs
[    0.189909] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.189919] CPU: All CPU(s) started in HYP mode.
[    0.189928] CPU: Virtualization extensions available.
[    0.190856] devtmpfs: initialized
[    0.202455] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.202962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.204067] pinctrl core: initialized pinctrl subsystem
[    0.204882] NET: Registered protocol family 16
[    0.210331] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.239650] cpuidle: using governor ladder
[    0.269680] cpuidle: using governor menu
[    0.276965] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.276986] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.277176] Serial: AMBA PL011 UART driver
[    0.277496] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.278187] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.353207] bcm2835-dma 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0x1
[    0.353808] SCSI subsystem initialized
[    0.354038] usbcore: registered new interface driver usbfs
[    0.354176] usbcore: registered new interface driver hub
[    0.354340] usbcore: registered new device driver usb
[    0.359919] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-06-13 13:25
[    0.387029] clocksource: Switched to clocksource arch_sys_counter
[    0.439264] FS-Cache: Loaded
[    0.439646] CacheFiles: Loaded
[    0.455850] NET: Registered protocol family 2
[    0.457181] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.457322] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.457515] TCP: Hash tables configured (established 8192 bind 8192)
[    0.457648] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.457713] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.458065] NET: Registered protocol family 1
[    0.458574] RPC: Registered named UNIX socket transport module.
[    0.458592] RPC: Registered udp transport module.
[    0.458603] RPC: Registered tcp transport module.
[    0.458614] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.570882] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.573341] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.573538] audit: initializing netlink subsys (disabled)
[    0.573616] audit: type=2000 audit(0.539:1): initialized
[    0.589215] VFS: Disk quotas dquot_6.6.0
[    0.589611] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.592227] FS-Cache: Netfs 'nfs' registered for caching
[    0.593464] NFS: Registering the id_resolver key type
[    0.593535] Key type id_resolver registered
[    0.593548] Key type id_legacy registered
[    0.596909] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.597178] io scheduler noop registered
[    0.597756] io scheduler bfq registered (default)
[    0.597769] BFQ I/O-scheduler version: v7r7
[    0.600646] BCM2708FB: allocated DMA memory ee800000
[    0.600693] BCM2708FB: allocated DMA channel 0 @ f3007000
[    0.662647] Console: switching to colour frame buffer device 240x67
[    1.648275] bcm2835-rng 3f104000.rng: hwrng registered
[    1.648433] vc-cma: Videocore CMA driver
[    1.648451] vc-cma: vc_cma_base      = 0x00000000
[    1.648464] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.648475] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.648825] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.670449] brd: module loaded
[    1.682103] loop: module loaded
[    1.683305] vchiq: vchiq_init_state: slot_zero = 0xae880000, is_master = 0
[    1.685262] Loading iSCSI transport class v2.0-870.
[    1.686382] usbcore: registered new interface driver smsc95xx
[    1.686463] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.886866] Core Release: 2.80a
[    1.886903] Setting default values for core params
[    1.886933] Finished setting default values for core params
[    2.087406] Using Buffer DMA mode
[    2.087426] Periodic Transfer Interrupt Enhancement - disabled
[    2.087436] Multiprocessor Interrupt Enhancement - disabled
[    2.087450] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.087468] Dedicated Tx FIFOs mode
[    2.087950] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xae814000 dma = 0xee814000 len=9024
[    2.087995] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    2.088026] dwc_otg: Microframe scheduler enabled
[    2.088099] WARN::hcd_init_fiq:413: FIQ on core 1 at 0x8057c13c
[    2.088120] WARN::hcd_init_fiq:414: FIQ ASM at 0x8057c4ac length 36
[    2.088141] WARN::hcd_init_fiq:439: MPHI regs_base at 0xaf87e000
[    2.088234] dwc_otg 3f980000.usb: DWC OTG Controller
[    2.088290] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    2.088351] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    2.088407] Init: Port Power? op_state=1
[    2.088418] Init: Power Port (0)
[    2.088740] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.088761] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.088779] usb usb1: Product: DWC OTG Controller
[    2.088795] usb usb1: Manufacturer: Linux 4.4.16-4-osmc dwc_otg_hcd
[    2.088810] usb usb1: SerialNumber: 3f980000.usb
[    2.090020] hub 1-0:1.0: USB hub found
[    2.090093] hub 1-0:1.0: 1 port detected
[    2.090908] dwc_otg: FIQ enabled
[    2.090927] dwc_otg: NAK holdoff enabled
[    2.090937] dwc_otg: FIQ split-transaction FSM enabled
[    2.090975] Module dwc_common_port init
[    2.091407] usbcore: registered new interface driver usb-storage
[    2.091809] mousedev: PS/2 mouse device common for all mice
[    2.092480] usbcore: registered new interface driver usbtouchscreen
[    2.092811] bcm2835-cpufreq: min=600000 max=900000
[    2.095423] sdhci: Secure Digital Host Controller Interface driver
[    2.095431] sdhci: Copyright(c) Pierre Ossman
[    2.095709] sdhost: log_buf @ ae813000 (ee813000)
[    2.167086] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    2.187470] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.187943] ledtrig-cpu: registered to indicate activity on CPUs
[    2.188062] hidraw: raw HID events driver (C) Jiri Kosina
[    2.188219] usbcore: registered new interface driver usbhid
[    2.188227] usbhid: USB HID core driver
[    2.188708] Initializing XFRM netlink socket
[    2.188742] NET: Registered protocol family 17
[    2.188890] Key type dns_resolver registered
[    2.189031] Registering SWP/SWPB emulation handler
[    2.189867] registered taskstats version 1
[    2.190053] vc-sm: Videocore shared memory driver
[    2.190068] [vc_sm_connected_init]: start
[    2.190637] [vc_sm_connected_init]: end - returning 0
[    2.190943] of_cfs_init
[    2.191037] of_cfs_init: OK
[    2.193890] Freeing unused kernel memory: 1788K (809ad000 - 80b6c000)
[    2.224664] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.226665] mmc0: new high speed SDHC card at address 0007
[    2.227596] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
[    2.229338]  mmcblk0: p1 p2
[    2.287231] Indeed it is in host mode hprt0 = 00021501
[    2.467127] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.467277] Indeed it is in host mode hprt0 = 00001101
[    2.667425] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.667450] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.668426] hub 1-1:1.0: USB hub found
[    2.668533] hub 1-1:1.0: 5 ports detected
[    2.947108] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.047420] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.047446] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.050392] smsc95xx v1.0.4
[    3.110655] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:07:7a:bb
[    4.127110] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[    4.268648] usb 1-1.4: New USB device found, idVendor=174c, idProduct=1153
[    4.268672] usb 1-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[    4.268684] usb 1-1.4: Product: AS2115
[    4.268695] usb 1-1.4: Manufacturer: ASMedia
[    4.268706] usb 1-1.4: SerialNumber: 00000000000000000000
[    4.269671] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    4.270248] scsi host0: usb-storage 1-1.4:1.0
[    5.278340] scsi 0:0:0:0: Direct-Access     ASMT     2115             0    PQ: 0 ANSI: 6
[    5.281423] sd 0:0:0:0: [sda] Spinning up disk...
[    5.655853] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.666359] fsck: E2fsck run: /bin/e2fsck -p -C 0 /dev/mmcblk0p2
[    5.666603] fsck: Filesystem UUID: fde6bf91-382a-4ce7-a562-6e39d18d2ded
[    5.666882] fsck: /dev/mmcblk0p2 has been mounted 4 times without being checked, check forced.
[    5.667249] fsck: /dev/mmcblk0p2: 53034/471424 files (0.3% non-contiguous), 477477/1882880 blocks
[    6.287150] .ready
[    6.555701] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    6.556279] sd 0:0:0:0: [sda] Write Protect is off
[    6.556298] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    6.556764] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.641749]  sda: sda1
[    6.645082] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.250222] random: systemd urandom read with 90 bits of entropy available
[    7.307870] NET: Registered protocol family 10
[    7.721559] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    7.721821] systemd[1]: Found ordering cycle on basic.target/start
[    7.721844] systemd[1]: Found dependency on sysinit.target/start
[    7.721863] systemd[1]: Found dependency on kbd.service/start
[    7.721880] systemd[1]: Found dependency on remote-fs.target/start
[    7.721897] systemd[1]: Found dependency on remote-fs-pre.target/start
[    7.721914] systemd[1]: Found dependency on connman.service/start
[    7.721930] systemd[1]: Found dependency on dbus.service/start
[    7.721945] systemd[1]: Found dependency on basic.target/start
[    7.721963] systemd[1]: Breaking ordering cycle by deleting job kbd.service/start
[    7.721984] systemd[1]: Job kbd.service/start deleted to break ordering cycle starting with basic.target/start
[    7.722276] systemd[1]: Found ordering cycle on basic.target/start
[    7.722298] systemd[1]: Found dependency on sysinit.target/start
[    7.722317] systemd[1]: Found dependency on rpcbind.service/start
[    7.722336] systemd[1]: Found dependency on network-online.target/start
[    7.722352] systemd[1]: Found dependency on network.target/start
[    7.722367] systemd[1]: Found dependency on connman.service/start
[    7.722383] systemd[1]: Found dependency on dbus.service/start
[    7.722399] systemd[1]: Found dependency on basic.target/start
[    7.722416] systemd[1]: Breaking ordering cycle by deleting job rpcbind.service/start
[    7.722437] systemd[1]: Job rpcbind.service/start deleted to break ordering cycle starting with basic.target/start
[    7.870978] fuse init (API version 7.23)
[    8.224322] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    8.644631] systemd-udevd[198]: starting version 215
[    9.058566] lirc_dev: IR Remote Control driver registered, major 245
[    9.063950] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[    9.249777] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    9.377176] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    9.466824] usbcore: registered new interface driver uas
[    9.485545] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    9.674294] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    9.895753] random: nonblocking pool is initialized
[   10.017078] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[   10.017430] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[   10.017444] lirc_rpi: driver registered!
[   10.067899] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   10.521886] input: lircd as /devices/virtual/input/input0
[   11.609724] systemd-journald[179]: Received request to flush runtime journal from PID 1
[   14.139267] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   14.139520] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.751335] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.752942] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   15.794824] 8021q: 802.1Q VLAN Support v1.8
[   27.293648] Console: switching to colour dummy device 80x30

Nothing strange in there.
Try to remove the fontconfig-config_2.11.0-6.3+deb8u1_all.deb file and do

sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade

Hi. Sorry for delayed reply - was moving houses and ended up not having internet connection for a while. The problem persists after deleting the package from /var/cache/apt/archives and redoing apt commands. I’ve also tried to download it manually and install with dpkg to the same result.