The below command (installing some dotnet framework dependencies) kicked up this error (and "1 not fully installed or removed."). Just prior to running this command the visual-studio-code editor had unsuccessfully tried to download and install mono-related packages. ----- # sudo apt-get install dotnet-dev-1.0.4 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: guile-2.0-libs libv8-3.14.5 linux-image-4.4.0-83-generic weechat-core Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework-microsoft.netcore.app-1.0.5 dotnet-sharedframework-microsoft.netcore.app-1.1.2 linux-image-4.4.0-83-generic Suggested packages: fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-headers-4.4.0-83-generic The following NEW packages will be installed: dotnet-dev-1.0.4 dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework-microsoft.netcore.app-1.0.5 dotnet-sharedframework-microsoft.netcore.app-1.1.2 The following packages will be upgraded: linux-image-4.4.0-83-generic 1 upgraded, 5 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. Need to get 97.3 MB/119 MB of archives. After this operation, 347 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-hostfxr-1.1.0 amd64 1.1.0-1 [124 kB] Get:2 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-sharedframework-microsoft.netcore.app-1.1.2 amd64 1.1.2-1 [22.9 MB] Get:3 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-hostfxr-1.0.1 amd64 1.0.1-1 [123 kB] Get:4 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-sharedframework-microsoft.netcore.app-1.0.5 amd64 1.0.5-1 [22.6 MB] Get:5 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-dev-1.0.4 amd64 1.0.4-1 [51.5 MB] Fetched 97.3 MB in 27s (3,486 kB/s) debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable (Reading database ... 210651 files and directories currently installed.) Preparing to unpack .../linux-image-4.4.0-83-generic_4.4.0-83.106_amd64.deb ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-83-generic_4.4.0-83.106_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-83-generic /boot/vmlinuz-4.4.0-83-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-83-generic /boot/vmlinuz-4.4.0-83-generic Selecting previously unselected package dotnet-hostfxr-1.1.0. Preparing to unpack .../dotnet-hostfxr-1.1.0_1.1.0-1_amd64.deb ... Unpacking dotnet-hostfxr-1.1.0 (1.1.0-1) ... Selecting previously unselected package dotnet-sharedframework-microsoft.netcore.app-1.1.2. Preparing to unpack .../dotnet-sharedframework-microsoft.netcore.app-1.1.2_1.1.2-1_amd64.deb ... Unpacking dotnet-sharedframework-microsoft.netcore.app-1.1.2 (1.1.2-1) ... Selecting previously unselected package dotnet-hostfxr-1.0.1. Preparing to unpack .../dotnet-hostfxr-1.0.1_1.0.1-1_amd64.deb ... Unpacking dotnet-hostfxr-1.0.1 (1.0.1-1) ... Selecting previously unselected package dotnet-sharedframework-microsoft.netcore.app-1.0.5. Preparing to unpack .../dotnet-sharedframework-microsoft.netcore.app-1.0.5_1.0.5-1_amd64.deb ... Unpacking dotnet-sharedframework-microsoft.netcore.app-1.0.5 (1.0.5-1) ... Selecting previously unselected package dotnet-dev-1.0.4. Preparing to unpack .../dotnet-dev-1.0.4_1.0.4-1_amd64.deb ... Unpacking dotnet-dev-1.0.4 (1.0.4-1) ... Processing triggers for man-db (2.7.5-1) ... Errors were encountered while processing: /var/cache/apt/archives/linux-image-4.4.0-83-generic_4.4.0-83.106_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)