How an install failure looks when you have a drive corruption

Upgrading OSMC this morning a required dependency fails to install. The 1.1.0 version can’t be found so it won’t roll back either. OSMC still runs fine as I have no wireless device anyway, but this un-installable and un-fixable dependency stops me from upgrading any other software on the device.

Could this please be marked as an optional dependency, or fixed so it installs properly.

You are the only person to have reported this as an issue.

Please provide the URL from grab-logs -a or by selecting apt logs in the MyOSMC log uploader so we can see what the issue is.

File is at: http://paste.osmc.io/unoqetefas

I did the install on the command line. My assumption is that anyone who upgraded through the GUI may not have noticed the failure in the first place. As I said, OSMC still works fine, I just can’t update anything else.

Well I assume you assume wrongly. Many people ,including myself, do upgrades on the command line.

Start-Date: 2016-05-01 18:15:03
Commandline: apt-get upgrade

As it has been stated very often, DON’T use “upgrade”!
sudo apt-get update
sudo apt-get dist-upgrade
are the right commands for a upgrade.

Start-Date: 2016-05-14 11:41:32
Commandline: apt-get upgrade
Upgrade: wireless-firmware-osmc:armhf (1.1.0, 1.1.1), rbp-bootloader-osmc:armhf (1.2.6-1, 1.2.8-1), rbp2-mediacenter-osmc:armhf (16.0.0-13, 16.1.0-3), mediacenter-addon-osmc:armhf (3.0.611, 3.0.614), openssl:armhf (1.0.1k-3+deb8u4, 1.0.1k-3+deb8u5), poppler-utils:armhf (0.26.5-2, 0.26.5-2+deb8u1), libdatetime-timezone-perl:armhf (1.75-2+2016c, 1.75-2+2016d), libpoppler46:armhf (0.26.5-2, 0.26.5-2+deb8u1), base-files-osmc:armhf (1.9.1, 1.9.3), armv7-libnfs-osmc:armhf (1.9.8-4, 1.10.0-1), armv7-remote-osmc:armhf (1.1.9, 1.2.0), armv7-bluez-osmc:armhf (5.3.8-8, 5.3.9-1), libtasn1-6:armhf (4.2-3+deb8u1, 4.2-3+deb8u2), armv7-libsqlite-osmc:armhf (3.9.2.0-2, 3.9.2.0-3), libssl1.0.0:armhf (1.0.1k-3+deb8u4, 1.0.1k-3+deb8u5), rbp-userland-osmc:armhf (1.1.8-1, 1.2.0-1)
�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

I assume you have a corrupted filesystem, maybe share grab-logs -A if we can spot any issue.

Also try dist-upgrade as written above before uploading the new logs.

It seems to be dropping the file system during the install some how. The root file system is unmounted after attempting the install…

Preparing to unpack .../wireless-firmware-osmc_1.1.1_all.deb ...
Unpacking wireless-firmware-osmc (1.1.1) over (1.1.0) ...

dpkg: error processing archive /var/cache/apt/archives/wireless-firmware-osmc_1.1.1_all.deb (--unpack):
 unable to securely remove '/lib/firmware/RTL8192SU/rtl8192sfw.bin.dpkg-tmp': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rt3071.bin': Read-only file system
dpkg: error while cleaning up:
 unable to remove newly-extracted version of `/lib/firmware/mt7610u_sta.dat': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar5523.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/RTL8192E/boot.img': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/RTL8192E/main.img': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/RTL8192E/data.img': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rt2661.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/htc_7010.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath3k-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rt2561.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192cufw_A.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192defw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192cufw_B.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8723aufw_B_NoBT.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192cufw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8188efw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8723befw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192sefw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8723aufw_B.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8723fw_B.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8821aefw_wowlan.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192cfw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192cfwU.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8712u.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192cfwU_B.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192eefw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8192cufw_TMSC.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8821aefw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8188eufw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8723fw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtlwifi/rtl8723aufw_A.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168f-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8402-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168g-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8106e-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168e-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8105e-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168g-3.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8106e-2.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168e-3.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168e-2.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168f-2.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8411-2.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168d-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168d-2.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8168g-2.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl_nic/rtl8411-1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl8192dufw.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rt2870.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rt73.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/htc_9271.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x01020201_26.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x11020000_40.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x01020200_40.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x01020201_40.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x41020000_40.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/AthrBT_0x31010000.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x01020001_26.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/AthrBT_0x11020000.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/AthrBT_0x01020201.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x01020200_26.dfu': Read-onltee: /root/inst.txt: Read-only file system
                                                                                                                                     y file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/AthrBT_0x01020001.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/ramps_0x31010000_40.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/AthrBT_0x41020000.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar3k/AthrBT_0x01020200.dfu': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar9271.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6004/hw1.3/fw-3.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6004/hw1.3/bdata.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6004/hw1.2/fw-2.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6004/hw1.2/bdata.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/otp.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/bdata.SD31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/athwlan.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/bdata.WB31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/data.patch.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/fw-3.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/fw-2.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/bdata.SD32.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.1.1/endpointping.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw1.0/bdata.SD31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw1.0/athwlan.bin.z77': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw1.0/bdata.WB31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw1.0/data.patch.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw1.0/bdata.SD32.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw1.0/otp.bin.z77': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.0/bdata.SD31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.0/athwlan.bin.z77': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.0/bdata.WB31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.0/data.patch.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.0/bdata.SD32.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003/hw2.0/otp.bin.z77': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003.1/hw2.1.1/otp.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003.1/hw2.1.1/bdata.SD31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003.1/hw2.1.1/athwlan.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003.1/hw2.1.1/bdata.WB31.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003.1/hw2.1.1/data.patch.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003.1/hw2.1.1/bdata.SD32.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ath6k/AR6003.1/hw2.1.1/endpointping.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rt2561s.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac43143.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac4330-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/bcm43xx-0.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac4354-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/bcm43xx_hdr-0.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac4335-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac4334-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac43143-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac4329-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac43241b0-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac43241b4-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/brcm/brcmfmac43362-sdio.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar7010.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/ar7010_1_1.fw': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/lib/firmware/rtl8192dufw_wol.bin': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-ralink/copyright': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-ralink/changelog.gz': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-brcm80211/copyright': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-brcm80211/changelog.gz': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-atheros/copyright': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-atheros/changelog.gz': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-realtek/copyright': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/doc/firmware-realtek/changelog.gz': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/bug/firmware-ralink/presubj': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/bug/firmware-brcm80211/presubj': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/bug/firmware-atheros/presubj': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of `/usr/share/bug/firmware-realtek/presubj': Read-only file system
dpkg: error while cleaning up:
 unable to securely remove '/var/lib/dpkg/tmp.ci': Read-only file system
dpkg: error while cleaning up:
 unable to securely remove '/var/lib/dpkg/reassemble.deb': Read-only file system
dpkg: error processing archive /var/cache/apt/archives/libx265-79_1.9-dmo3~bpo8+1_armhf.deb (--unpack):
 error ensuring `/var/lib/dpkg/reassemble.deb' doesn't exist: Read-only file system
dpkg: error processing archive /var/cache/apt/archives/libavcodec56_10%3a2.8.7-dmo1~bpo8+2_armhf.deb (--unpack):
 error ensuring `/var/lib/dpkg/reassemble.deb' doesn't exist: Read-only file system
dpkg: error processing archive /var/cache/apt/archives/libavformat56_10%3a2.8.7-dmo1~bpo8+2_armhf.deb (--unpack):
 error ensuring `/var/lib/dpkg/reassemble.deb' doesn't exist: Read-only file system
dpkg: error processing archive /var/cache/apt/archives/libavfilter5_10%3a2.8.7-dmo1~bpo8+2_armhf.deb (--unpack):
 error ensuring `/var/lib/dpkg/reassemble.deb' doesn't exist: Read-only file system
dpkg: error: unable to create new file '/var/lib/dpkg/status-new': Read-only file system
E: Sub-process /usr/bin/dpkg returned an error code (2)
E: Failed to write temporary StateFile /var/lib/apt/extended_states.tmp

My assumption was that the problem wouldn’t be obvious when using the GUI, not that no-one uses the command line.

Did dist-upgrade, same problem

As you wrote problem with the filesystem. Check the Journal grab-logs -J for errors. But my best guess is SD Card or USB problem (depending where you installed OSMC)

Sorry for the inconvenience, but it was nice to bounce this off someone else. There was a single inode in the firmware directory that had its parent directory pointing to null. The system was stepping back from there and then couldn’t find anything else.

Fixed now.

1 Like

use dist-upgrade in the future :slight_smile: