سلام و درود خدمت همه کاربران جامعه gnu/linux
مابین در گراب که چیزی نیست ۲۶ هم اخیرا اضافه شده
من قبلا یه مشکل داشتم حالا شده سه تا
هرکاری میکنم به
linux-image-extra-3.19.0-15-generic
linux-image-extra-3.19.0-25-generic
linux-image-extra-3.19.0-26-generic
گبر میده اخیرا هم میخواستم testdisk نصب کنم که گفت باید اینارو حذف کنم هرکاری هم کردم نشد از softcenter هم revmove زدم نشد
خروجی دستور sudo apt-get install testdisk :
alireza@alireza-N56JRH:~$ sudo apt-get install testdisk[sudo] password for alireza:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-extra-3.19.0-15-generic linux-image-extra-3.19.0-25-generic
linux-image-extra-3.19.0-26-generic
The following NEW packages will be installed:
testdisk
0 upgraded, 1 newly installed, 3 to remove and 48 not upgraded.
5 not fully installed or removed.
Need to get 0 B/315 kB of archives.
After this operation, 481 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 277270 files and directories currently installed.)
Removing linux-image-extra-3.19.0-15-generic (3.19.0-15.15) ...
depmod: FATAL: could not load /boot/System.map-3.19.0-15-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-15-generic /boot/vmlinuz-3.19.0-15-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-15-generic /boot/vmlinuz-3.19.0-15-generic
Error! Your kernel headers for kernel 3.19.0-15-generic cannot be found.
Please install the linux-headers-3.19.0-15-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 3.19.0-15-generic cannot be found.
Please install the linux-headers-3.19.0-15-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-15-generic /boot/vmlinuz-3.19.0-15-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-15-generic
grep: /boot/config-3.19.0-15-generic: No such file or directory
WARNING: missing /lib/modules/3.19.0-15-generic
Device driver support needs thus be built-in linux image!
depmod: ERROR: could not open directory /lib/modules/3.19.0-15-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
mktemp: failed to create file via template ‘/var/tmp/mkinitramfs-FW_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.19.0-15-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.19.0-15-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-extra-3.19.0-25-generic (3.19.0-25.26) ...
depmod: FATAL: could not load /boot/System.map-3.19.0-25-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-25-generic /boot/vmlinuz-3.19.0-25-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-25-generic /boot/vmlinuz-3.19.0-25-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-25-generic /boot/vmlinuz-3.19.0-25-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-25-generic
grep: /boot/config-3.19.0-25-generic: No such file or directory
mktemp: failed to create file via template ‘/var/tmp/mkinitramfs-FW_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.19.0-25-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.19.0-25-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-extra-3.19.0-26-generic (3.19.0-26.28) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-26-generic /boot/vmlinuz-3.19.0-26-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-26-generic /boot/vmlinuz-3.19.0-26-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-26-generic /boot/vmlinuz-3.19.0-26-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-26-generic
mktemp: failed to create file via template ‘/var/tmp/mkinitramfs-FW_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.19.0-26-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.19.0-26-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-3.19.0-15-generic
linux-image-extra-3.19.0-25-generic
linux-image-extra-3.19.0-26-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
خروجی دستور sudo apt-get remove linux-image-extra-3.19.0-15-generic :
alireza@alireza-N56JRH:~$ sudo apt-get remove linux-image-extra-3.19.0-15-generic
[sudo] password for alireza:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-extra-3.19.0-15-generic linux-image-extra-3.19.0-25-generic
linux-image-extra-3.19.0-26-generic
0 upgraded, 0 newly installed, 3 to remove and 48 not upgraded.
5 not fully installed or removed.
After this operation, 482 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 277270 files and directories currently installed.)
Removing linux-image-extra-3.19.0-15-generic (3.19.0-15.15) ...
depmod: FATAL: could not load /boot/System.map-3.19.0-15-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-15-generic /boot/vmlinuz-3.19.0-15-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-15-generic /boot/vmlinuz-3.19.0-15-generic
Error! Your kernel headers for kernel 3.19.0-15-generic cannot be found.
Please install the linux-headers-3.19.0-15-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 3.19.0-15-generic cannot be found.
Please install the linux-headers-3.19.0-15-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-15-generic /boot/vmlinuz-3.19.0-15-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-15-generic
grep: /boot/config-3.19.0-15-generic: No such file or directory
WARNING: missing /lib/modules/3.19.0-15-generic
Device driver support needs thus be built-in linux image!
depmod: ERROR: could not open directory /lib/modules/3.19.0-15-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
mktemp: failed to create file via template ‘/var/tmp/mkinitramfs-FW_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.19.0-15-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.19.0-15-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-extra-3.19.0-25-generic (3.19.0-25.26) ...
depmod: FATAL: could not load /boot/System.map-3.19.0-25-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-25-generic /boot/vmlinuz-3.19.0-25-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-25-generic /boot/vmlinuz-3.19.0-25-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-25-generic /boot/vmlinuz-3.19.0-25-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-25-generic
grep: /boot/config-3.19.0-25-generic: No such file or directory
mktemp: failed to create file via template ‘/var/tmp/mkinitramfs-FW_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.19.0-25-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.19.0-25-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-extra-3.19.0-26-generic (3.19.0-26.28) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-26-generic /boot/vmlinuz-3.19.0-26-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-26-generic /boot/vmlinuz-3.19.0-26-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-26-generic /boot/vmlinuz-3.19.0-26-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-26-generic
mktemp: failed to create file via template ‘/var/tmp/mkinitramfs-FW_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.19.0-26-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.19.0-26-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-3.19.0-15-generic
linux-image-extra-3.19.0-25-generic
linux-image-extra-3.19.0-26-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
من هنگام نصب lvm زدم لطفا یه راهی بگید که این حجم پارتیشن بوت را افزایش بذم
آپدیت هام نصب نمیشن و یه پیام میدن عکسشو میذارم شاید دلیل caused رو متوجه شدید (انشاالله)
ببخشید نمیشیه با یه دستور خاص کل فایل های سیستمی رو چک کرد و repair کرد؟
آیا با دسترسی روت میشه کرنل های اضافی رو پاک کرد؟
از همه استادان و بزرگواران خواهش میکنم مرا راهنمایی کنید
با تشکر فراوان
-----
update
۲۶ رو از گراب پاکش کردم اول از شاخه بوت فایلاشو پوکوندم بعد آپدیت گراب زدم حل شد