My computer has a dual boot of Windows 10 and Ubuntu 20.04. One day my Windows OS faced the Blue Screen of Death error with error code INACCESSIBLE_BOOT_DEVICE which somehow got fixed automatically. But then when I tried to access my Ubuntu, it is always landing into emergency mode. This is how it looks:
(I am sorry I had to attach this bad pic, because it couldn't be copied.)
Then I followed this article: https://linuxhint.com/fix-broken-ubuntu-without-reinstalling/ step by step to fix the issue using live bootable usb. Everything went fine, but at the last step i.e. on running the command sudo apt upgrade
after all the things got downloaded, I got the following error:
Preparing to unpack .../224-linux-firmware_1.187.15_all.deb ...
Unpacking linux-firmware (1.187.15) over (1.187) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/224-linux-firmware_1.187.15_all.deb (--unpack):
unable to make backup link of './lib/firmware/iwlwifi-7260-12.ucode' before installing new version: No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
update-initramfs is disabled since running on read-only media
Preparing to unpack .../225-zfs-initramfs_0.8.3-1ubuntu12.11_amd64.deb ...
Unpacking zfs-initramfs (0.8.3-1ubuntu12.11) over (0.8.3-1ubuntu12) ...
Preparing to unpack .../226-zfsutils-linux_0.8.3-1ubuntu12.11_amd64.deb ...
Unpacking zfsutils-linux (0.8.3-1ubuntu12.11) over (0.8.3-1ubuntu12) ...
Preparing to unpack .../227-libnvpair1linux_0.8.3-1ubuntu12.11_amd64.deb ...
Unpacking libnvpair1linux (0.8.3-1ubuntu12.11) over (0.8.3-1ubuntu12) ...
Preparing to unpack .../228-libuutil1linux_0.8.3-1ubuntu12.11_amd64.deb ...
Unpacking libuutil1linux (0.8.3-1ubuntu12.11) over (0.8.3-1ubuntu12) ...
Preparing to unpack .../229-libzfs2linux_0.8.3-1ubuntu12.11_amd64.deb ...
Unpacking libzfs2linux (0.8.3-1ubuntu12.11) over (0.8.3-1ubuntu12) ...
Preparing to unpack .../230-libzpool2linux_0.8.3-1ubuntu12.11_amd64.deb ...
Unpacking libzpool2linux (0.8.3-1ubuntu12.11) over (0.8.3-1ubuntu12) ...
Selecting previously unselected package linux-modules-5.8.0-63-generic.
Preparing to unpack .../231-linux-modules-5.8.0-63-generic_5.8.0-63.71~20.04.1_amd64.deb ...
Unpacking linux-modules-5.8.0-63-generic (5.8.0-63.71~20.04.1) ...
Selecting previously unselected package linux-image-5.8.0-63-generic.
Preparing to unpack .../232-linux-image-5.8.0-63-generic_5.8.0-63.71~20.04.1_amd64.deb ...
Unpacking linux-image-5.8.0-63-generic (5.8.0-63.71~20.04.1) ...
Selecting previously unselected package linux-modules-extra-5.8.0-63-generic.
Preparing to unpack .../233-linux-modules-extra-5.8.0-63-generic_5.8.0-63.71~20.04.1_amd64.deb ...
Unpacking linux-modules-extra-5.8.0-63-generic (5.8.0-63.71~20.04.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/233-linux-modules-extra-5.8.0-63-generic_5.8.0-63.71~20.04.1_amd64.deb (--unpack):
cannot copy extracted data for './lib/modules/5.8.0-63-generic/kernel/drivers/media/usb/dvb-usb/dvb-usb-dib0700.ko' to '/lib/modules/5.8.0-63-generic/kernel/drivers/media/usb/dvb-usb/dvb-usb-dib0700.ko.
dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../234-intel-microcode_3.20210608.0ubuntu0.20.04.1_amd64.deb ...
Unpacking intel-microcode (3.20210608.0ubuntu0.20.04.1) over (3.20191115.1ubuntu3) ...
Preparing to unpack .../235-linux-generic-hwe-20.04_5.8.0.63.71~20.04.45_amd64.deb ...
Unpacking linux-generic-hwe-20.04 (5.8.0.63.71~20.04.45) over (5.4.0.26.32) ...
Preparing to unpack .../236-linux-image-generic-hwe-20.04_5.8.0.63.71~20.04.45_amd64.deb ...
Unpacking linux-image-generic-hwe-20.04 (5.8.0.63.71~20.04.45) over (5.4.0.26.32) ...
Selecting previously unselected package linux-hwe-5.8-headers-5.8.0-63.
Preparing to unpack .../237-linux-hwe-5.8-headers-5.8.0-63_5.8.0-63.71~20.04.1_all.deb ...
Unpacking linux-hwe-5.8-headers-5.8.0-63 (5.8.0-63.71~20.04.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/237-linux-hwe-5.8-headers-5.8.0-63_5.8.0-63.71~20.04.1_all.deb (--unpack):
cannot copy extracted data for './usr/src/linux-hwe-5.8-headers-5.8.0-63/include/linux/spi/max7301.h' to '/usr/src/linux-hwe-5.8-headers-5.8.0-63/include/linux/spi/max7301.h.dpkg-new': failed to write (
No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package linux-headers-5.8.0-63-generic.
Preparing to unpack .../238-linux-headers-5.8.0-63-generic_5.8.0-63.71~20.04.1_amd64.deb ...
Unpacking linux-headers-5.8.0-63-generic (5.8.0-63.71~20.04.1) ...
Preparing to unpack .../239-linux-headers-generic-hwe-20.04_5.8.0.63.71~20.04.45_amd64.deb ...
Unpacking linux-headers-generic-hwe-20.04 (5.8.0.63.71~20.04.45) over (5.4.0.26.32) ...
Preparing to unpack .../240-memtest86+_5.01-3.1ubuntu2.1_amd64.deb ...
Unpacking memtest86+ (5.01-3.1ubuntu2.1) over (5.01-3.1ubuntu1) ...
Preparing to unpack .../241-mesa-vulkan-drivers_20.2.6-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mesa-vulkan-drivers:amd64 (20.2.6-0ubuntu0.20.04.1) over (20.0.4-2ubuntu1) ...
Preparing to unpack .../242-nautilus-sendto_3.8.6-3ubuntu0.20.04.1_amd64.deb ...
Unpacking nautilus-sendto (3.8.6-3ubuntu0.20.04.1) over (3.8.6-3) ...
Preparing to unpack .../243-network-manager-config-connectivity-ubuntu_1.22.10-1ubuntu2.2_all.deb ...
Unpacking network-manager-config-connectivity-ubuntu (1.22.10-1ubuntu2.2) over (1.22.10-1ubuntu1) ...
Preparing to unpack .../244-openvpn_2.4.7-1ubuntu2.20.04.2_amd64.deb ...
Unpacking openvpn (2.4.7-1ubuntu2.20.04.2) over (2.4.7-1ubuntu2) ...
Preparing to unpack .../245-orca_3.36.2-1ubuntu1~20.04.1_all.deb ...
Unpacking orca (3.36.2-1ubuntu1~20.04.1) over (3.36.1-0ubuntu1) ...
Preparing to unpack .../246-python3-cryptography_2.8-3ubuntu0.1_amd64.deb ...
Unpacking python3-cryptography (2.8-3ubuntu0.1) over (2.8-3) ...
Preparing to unpack .../247-python3-lib2to3_3.8.10-0ubuntu1~20.04_all.deb ...
Unpacking python3-lib2to3 (3.8.10-0ubuntu1~20.04) over (3.8.2-1ubuntu1) ...
Preparing to unpack .../248-python3-pil_7.0.0-4ubuntu0.4_amd64.deb ...
Unpacking python3-pil:amd64 (7.0.0-4ubuntu0.4) over (7.0.0-4build1) ...
Preparing to unpack .../249-software-properties-common_0.98.9.5_all.deb ...
Unpacking software-properties-common (0.98.9.5) over (0.98.9) ...
Preparing to unpack .../250-software-properties-gtk_0.98.9.5_all.deb ...
Unpacking software-properties-gtk (0.98.9.5) over (0.98.9) ...
Preparing to unpack .../251-python3-software-properties_0.98.9.5_all.deb ...
Unpacking python3-software-properties (0.98.9.5) over (0.98.9) ...
Preparing to unpack .../252-python3-urllib3_1.25.8-2ubuntu0.1_all.deb ...
Unpacking python3-urllib3 (1.25.8-2ubuntu0.1) over (1.25.8-2) ...
Preparing to unpack .../253-rfkill_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking rfkill (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Preparing to unpack .../254-rhythmbox-plugin-alternative-toolbar_0.19.3-1.1_all.deb ...
Unpacking rhythmbox-plugin-alternative-toolbar (0.19.3-1.1) over (0.19.3-1) ...
Preparing to unpack .../255-shotwell-common_0.30.10-0ubuntu0.1_all.deb ...
Unpacking shotwell-common (0.30.10-0ubuntu0.1) over (0.30.8-0ubuntu2) ...
Preparing to unpack .../256-shotwell_0.30.10-0ubuntu0.1_amd64.deb ...
Unpacking shotwell (0.30.10-0ubuntu0.1) over (0.30.8-0ubuntu2) ...
Preparing to unpack .../257-xdg-utils_1.1.3-2ubuntu1.20.04.2_all.deb ...
Unpacking xdg-utils (1.1.3-2ubuntu1.20.04.2) over (1.1.3-2ubuntu1) ...
Preparing to unpack .../258-simple-scan_3.36.3-0ubuntu0.20.04.0_amd64.deb ...
Unpacking simple-scan (3.36.3-0ubuntu0.20.04.0) over (3.36.0-0ubuntu1) ...
Preparing to unpack .../259-snapd_2.49.2+20.04_amd64.deb ...
Unpacking snapd (2.49.2+20.04) over (2.44.3+20.04) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/259-snapd_2.49.2+20.04_amd64.deb (--unpack):
cannot copy extracted data for './usr/bin/snap' to '/usr/bin/snap.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
Preparing to unpack .../260-system-config-printer-udev_1.5.12-0ubuntu1.1_amd64.deb ...
Unpacking system-config-printer-udev (1.5.12-0ubuntu1.1) over (1.5.12-0ubuntu1) ...
Preparing to unpack .../261-thermald_1.9.1-1ubuntu0.4_amd64.deb ...
Unpacking thermald (1.9.1-1ubuntu0.4) over (1.9.1-1build1) ...
Preparing to unpack .../262-thunderbird-locale-zh-hant_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-zh-hant (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../263-thunderbird-locale-zh-hans_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-zh-hans (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../264-thunderbird-locale-ru_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-ru (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../265-thunderbird-locale-pt_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-pt (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../266-thunderbird-locale-it_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-it (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../267-thunderbird-locale-fr_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-fr (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../268-thunderbird-locale-es_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-es (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../269-thunderbird-locale-en_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-en (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../270-thunderbird-locale-de_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-locale-de (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../271-thunderbird_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/271-thunderbird_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/thunderbird/librnp.so' to '/usr/lib/thunderbird/librnp.so.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../272-thunderbird-gnome-support_1%3a78.11.0+build1-0ubuntu0.20.04.2_amd64.deb ...
Unpacking thunderbird-gnome-support (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../273-thunderbird-locale-en-gb_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-en-gb (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../274-thunderbird-locale-en-us_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-en-us (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../275-thunderbird-locale-es-ar_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-es-ar (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../276-thunderbird-locale-es-es_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-es-es (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../277-thunderbird-locale-pt-br_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-pt-br (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../278-thunderbird-locale-pt-pt_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-pt-pt (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../279-thunderbird-locale-zh-cn_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-zh-cn (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
Preparing to unpack .../280-thunderbird-locale-zh-tw_1%3a78.11.0+build1-0ubuntu0.20.04.2_all.deb ...
Unpacking thunderbird-locale-zh-tw (1:78.11.0+build1-0ubuntu0.20.04.2) over (1:68.7.0+build1-0ubuntu2) ...
tar: ./templates: Wrote only 8192 of 10240 bytes
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/281-ubiquity_20.04.15.14_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
No apport report written because MaxReports is reached already
Preparing to unpack .../282-ubiquity-frontend-gtk_20.04.15.14_amd64.deb ...
Unpacking ubiquity-frontend-gtk (20.04.15.14) over (20.04.15) ...
Preparing to unpack .../283-ubiquity-ubuntu-artwork_20.04.15.14_all.deb ...
Unpacking ubiquity-ubuntu-artwork (20.04.15.14) over (20.04.15) ...
Preparing to unpack .../284-ubiquity-casper_1.445.1_all.deb ...
Unpacking ubiquity-casper (1.445.1) over (1.445) ...
Preparing to unpack .../285-ubuntu-settings_20.04.6_all.deb ...
Unpacking ubuntu-settings (20.04.6) over (20.04.5) ...
Preparing to unpack .../286-ubuntu-desktop-minimal_1.450.2_amd64.deb ...
Unpacking ubuntu-desktop-minimal (1.450.2) over (1.450) ...
Preparing to unpack .../287-ubuntu-desktop_1.450.2_amd64.deb ...
Unpacking ubuntu-desktop (1.450.2) over (1.450) ...
Preparing to unpack .../288-unattended-upgrades_2.3ubuntu0.1_all.deb ...
Unpacking unattended-upgrades (2.3ubuntu0.1) over (2.3) ...
Preparing to unpack .../289-wireless-regdb_2020.11.20-0ubuntu1~20.04.1_all.deb ...
Unpacking wireless-regdb (2020.11.20-0ubuntu1~20.04.1) over (2018.05.09-0ubuntu1) ...
Preparing to unpack .../290-xserver-xephyr_2%3a1.20.9-2ubuntu1.2~20.04.2_amd64.deb ...
Unpacking xserver-xephyr (2:1.20.9-2ubuntu1.2~20.04.2) over (2:1.20.8-2ubuntu2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/290-xserver-xephyr_2%3a1.20.9-2ubuntu1.2~20.04.2_amd64.deb (--unpack):
unable to make backup link of './usr/bin/Xephyr' before installing new version: No space left on device
No apport report written because MaxReports is reached already
Preparing to unpack .../291-xwayland_2%3a1.20.9-2ubuntu1.2~20.04.2_amd64.deb ...
Unpacking xwayland (2:1.20.9-2ubuntu1.2~20.04.2) over (2:1.20.8-2ubuntu2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/291-xwayland_2%3a1.20.9-2ubuntu1.2~20.04.2_amd64.deb (--unpack):
unable to make backup link of './usr/bin/Xwayland' before installing new version: No space left on device
No apport report written because MaxReports is reached already
Preparing to unpack .../292-yaru-theme-gtk_20.04.11.1_all.deb ...
Unpacking yaru-theme-gtk (20.04.11.1) over (20.04.6) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/292-yaru-theme-gtk_20.04.11.1_all.deb (--unpack):
cannot copy extracted data for './usr/share/themes/Yaru/gtk-3.20/gtk.gresource' to '/usr/share/themes/Yaru/gtk-3.20/gtk.gresource.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../293-yaru-theme-icon_20.04.11.1_all.deb ...
Unpacking yaru-theme-icon (20.04.11.1) over (20.04.6) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/293-yaru-theme-icon_20.04.11.1_all.deb (--unpack):
unable to make backup link of './usr/share/icons/Yaru/16x16/apps/org.gnome.Totem.png' before installing new version: No space left on device
No apport report written because MaxReports is reached already
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../294-yaru-theme-sound_20.04.11.1_all.deb ...
Unpacking yaru-theme-sound (20.04.11.1) over (20.04.6) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/294-yaru-theme-sound_20.04.11.1_all.deb (--unpack):
unable to make backup link of './usr/share/sounds/Yaru/stereo/system-ready.oga' before installing new version: No space left on device
No apport report written because MaxReports is reached already
Preparing to unpack .../295-zsys_0.4.8_amd64.deb ...
Unpacking zsys (0.4.8) over (0.4.5) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/295-zsys_0.4.8_amd64.deb (--unpack):
cannot copy extracted data for './sbin/zsysd' to '/sbin/zsysd.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
zsys-gc.service is a disabled or a static unit not running, not starting it.
zsysd.service is a disabled or a static unit not running, not starting it.
Preparing to unpack .../296-casper_1.445.1_amd64.deb ...
Unpacking casper (1.445.1) over (1.445) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/296-casper_1.445.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/share/initramfs-tools/scripts/casper-bottom/55disable_snap_refresh' to '/usr/share/initramfs-tools/scripts/casper-bottom/55disable_snap_refresh.dpkg-new': failed to
write (No space left on device)
No apport report written because MaxReports is reached already
update-initramfs is disabled since running on read-only media
Preparing to unpack .../297-libpam-fprintd_1.90.9-1~ubuntu20.04.1_amd64.deb ...
Unpacking libpam-fprintd:amd64 (1.90.9-1~ubuntu20.04.1) over (1.90.1-1ubuntu1) ...
Preparing to unpack .../298-fprintd_1.90.9-1~ubuntu20.04.1_amd64.deb ...
Unpacking fprintd (1.90.9-1~ubuntu20.04.1) over (1.90.1-1ubuntu1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-bkFlUh/298-fprintd_1.90.9-1~ubuntu20.04.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/bin/fprintd-enroll' to '/usr/bin/fprintd-enroll.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
fprintd.service is a disabled or a static unit not running, not starting it.
Preparing to unpack .../299-liblirc-client0_0.10.1-6.1ubuntu1.1_amd64.deb ...
dpkg: unrecoverable fatal error, aborting:
failed to write status database record about 'dmraid' to '/var/lib/dpkg/status': No space left on device
E: Sub-process /usr/bin/dpkg returned an error code (2)
And again on rebooting without the usb, Ubuntu enters the emergency mode only. I am not sure but there might be some problem with storage partition.