sudo apt update && sudo apt dist-upgrade Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://archive.canonical.com/ubuntu xenial InRelease Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [207 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [429 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [423 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [166 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [366 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [362 kB] Fetched 2,260 kB in 6s (367 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: aptitude-common g++-4.8 giblib1 heirloom-mailx icedtea-netx icedtea-netx-common libass4 libatk-wrapper-java libatk-wrapper-java-jni libavcodec54 libavformat54 libavutil52 libbasicusageenvironment0 libboost-iostreams1.54.0 libdee-qt5-3 libdirac-encoder0 libdvbpsi8 libenca0 libept1.4.12 libgif4 libgroupsock1 liblivemedia23 libmagickcore5 libmagickwand5 libopenjpeg2 libpostproc52 libstdc++-4.8-dev libswscale2 libsystemd-daemon0 libsystemd-journal0 libsystemd-login0 libtar0 libtinyxml2-0.0.0 libts-0.0-0 libupstart-app-launch2 liburcu1 libusageenvironment1 libx264-142 linux-headers-3.13.0-100 linux-headers-3.13.0-100-generic linux-image-3.13.0-100-generic linux-image-extra-3.13.0-100-generic m17n-contrib oem-kernel-cmdline python-requests qtdeclarative5-friends0.2 qtdeclarative5-qtmultimedia-plugin tsconf ttf-dejavu-extra Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up initramfs-tools (0.122ubuntu8.5) ... update-initramfs: deferring update (trigger activated) Setting up linux-image-4.4.0-51-generic (4.4.0-51.72) ... Running depmod. update-initramfs: deferring update (hook will be called later) The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-51-generic vmlinuz(/boot/vmlinuz-4.4.0-51-generic ) points to /boot/vmlinuz-4.4.0-51-generic (/boot/vmlinuz-4.4.0-51-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-51-generic.postinst line 491. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic Error! Bad return status for module build on kernel: 4.4.0-51-generic (x86_64) Consult /var/lib/dkms/iwlwifi-3.16.2/1.0/build/make.log for more information. Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built. Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic update-initramfs: Generating /boot/initrd.img-4.4.0-51-generic E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1. update-initramfs: failed for /boot/initrd.img-4.4.0-51-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-51-generic.postinst line 1052. dpkg: error processing package linux-image-4.4.0-51-generic (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-51-generic: linux-image-extra-4.4.0-51-generic depends on linux-image-4.4.0-51-generic; however: Package linux-image-4.4.0-51-generic is not configured yet. dpkg: error processing package linux-image-extra-4.4.0-51-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-4.4.0-51-generic; however: Package linux-image-4.4.0-51-generic is not configured yet. linux-image-generic depends on linux-image-extra-4.4.0-51-generic; however: Package linux-image-extra-4.4.0-51-generic is not configured yet. dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 4.4.0.51.54); however: Package linux-image-generic is not configured No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because MaxReports is reached already yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured Processing triggers for initramfs-tools (0.122ubuntu8.5) ... update-initramfs: Generating /boot/initrd.img-3.13.0-101-generic E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1. update-initramfs: failed for /boot/initrd.img-3.13.0-101-generic with 1. dpkg: error processing package initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already Errors were encountered while processing: linux-image-4.4.0-51-generic linux-image-extra-4.4.0-51-generic linux-image-generic linux-generic initramfs-tools N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension E: Sub-process /usr/bin/dpkg returned an error code (1) kiran@kiran-Vostro-3558:~$ mkdir ~/.emacs.d/ auto-save-list/ elpa/ eshell/ kiran@kiran-Vostro-3558:~$ mkdir ~/.emacs.d/git kiran@kiran-Vostro-3558:~$ cd ~/.emacs.d/git kiran@kiran-Vostro-3558:~/.emacs.d/git$ ls kiran@kiran-Vostro-3558:~/.emacs.d/git$ sudo apt install git Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: aptitude-common g++-4.8 giblib1 heirloom-mailx icedtea-netx icedtea-netx-common libass4 libatk-wrapper-java libatk-wrapper-java-jni libavcodec54 libavformat54 libavutil52 libbasicusageenvironment0 libboost-iostreams1.54.0 libdee-qt5-3 libdirac-encoder0 libdvbpsi8 libenca0 libept1.4.12 libgif4 libgroupsock1 liblivemedia23 libmagickcore5 libmagickwand5 libopenjpeg2 libpostproc52 libstdc++-4.8-dev libswscale2 libsystemd-daemon0 libsystemd-journal0 libsystemd-login0 libtar0 libtinyxml2-0.0.0 libts-0.0-0 libupstart-app-launch2 liburcu1 libusageenvironment1 libx264-142 linux-headers-3.13.0-100 linux-headers-3.13.0-100-generic linux-image-3.13.0-100-generic linux-image-extra-3.13.0-100-generic m17n-contrib oem-kernel-cmdline python-requests qtdeclarative5-friends0.2 qtdeclarative5-qtmultimedia-plugin tsconf ttf-dejavu-extra Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: git-man liberror-perl Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn The following NEW packages will be installed: git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 3,760 kB of archives. After this operation, 25.6 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 git-man all 1:2.7.4-0ubuntu1 [735 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 git amd64 1:2.7.4-0ubuntu1 [3,006 kB] Fetched 3,760 kB in 6s (579 kB/s) N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension Selecting previously unselected package liberror-perl. (Reading database ... 295073 files and directories currently installed.) Preparing to unpack .../liberror-perl_0.17-1.2_all.deb ... Unpacking liberror-perl (0.17-1.2) ... Selecting previously unselected package git-man. Preparing to unpack .../git-man_1%3a2.7.4-0ubuntu1_all.deb ... Unpacking git-man (1:2.7.4-0ubuntu1) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a2.7.4-0ubuntu1_amd64.deb ... Unpacking git (1:2.7.4-0ubuntu1) ... Processing triggers for man-db (2.7.5-1) ... Setting up initramfs-tools (0.122ubuntu8.5) ... update-initramfs: deferring update (trigger activated) Setting up linux-image-4.4.0-51-generic (4.4.0-51.72) ... Running depmod. update-initramfs: deferring update (hook will be called later) The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-51-generic vmlinuz(/boot/vmlinuz-4.4.0-51-generic ) points to /boot/vmlinuz-4.4.0-51-generic (/boot/vmlinuz-4.4.0-51-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-51-generic.postinst line 491. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/iwlwifi-3.16.2-dkms.0.crash' Error! Bad return status for module build on kernel: 4.4.0-51-generic (x86_64) Consult /var/lib/dkms/iwlwifi-3.16.2/1.0/build/make.log for more information. Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built. Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic update-initramfs: Generating /boot/initrd.img-4.4.0-51-generic E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1. update-initramfs: failed for /boot/initrd.img-4.4.0-51-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-51-generic.postinst line 1052. dpkg: error processing package linux-image-4.4.0-51-generic (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-51-generic: linux-image-extra-4.4.0-51-generic depends on linux-image-4.4.0-51-generic; however: Package linux-image-4.4.0-51-generic is not configured yet. dpkg: error processing package linux-image-extra-4.4.0-51-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-4.4.0-51-generic; however: Package linux-image-4.4.0-51-generic is not configured yet. linux-image-generic depends on linux-image-extra-4.4.0-51-generic; however: Package linux-image-extra-4.4.0-51-generic is not configured yet. dpkg: error processing package linux-image-generic (--configure): No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 4.4.0.51.54); however: Package linux-image-generic is not configured yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Setting up liberror-perl (0.17-1.2) ... Setting up git-man (1:2.7.4-0ubuntu1) ... Setting up git (1:2.7.4-0ubuntu1) ... Processing triggers for initramfs-tools (0.122ubuntu8.5) ... update-initramfs: Generating /boot/initrd.img-3.13.0-101-generic E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1. update-initramfs: failed for /boot/initrd.img-3.13.0-101-generic with 1. dpkg: error processing package initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already Errors were encountered while processing: linux-image-4.4.0-51-generic linux-image-extra-4.4.0-51-generic linux-image-generic linux-generic initramfs-tools N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension E: Sub-process /usr/bin/dpkg returned an error code (1)