sudo apt-get install g++, it's showing error and how to resolve this error ?
Reading package lists... Done Building dependency tree Reading state information... Done g++ is already the newest version. The following package was automatically installed and is no longer required: libopenjpeg2 Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 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 linux-image-extra-3.5.0-22-generic (3.5.0-22.34) ... Running depmod. update-initramfs: deferring update (hook will be called later) Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-3.5.0-22-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-extra-3.5.0-22-generic.postinst line 1010. dpkg: error processing linux-image-extra-3.5.0-22-generic (--configure): subprocess installed post-installation script returned error exit status 2 No apport report written because MaxReports is reached already dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-extra-3.5.0-22-generic; however: Package linux-image-extra-3.5.0-22-generic is not configured yet. dpkg: error processing linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic; however:No apport report written because MaxReports is reached already Package linux-image-generic is not configured yet. dpkg: error processing linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: linux-image-extra-3.5.0-22-generic linux-image-generic linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1)