Αδυναμία αναβάθμισης kernel και grub  Το θέμα επιλύθηκε

...εγκαταστάσεις, αναβαθμίσεις, διαχείριση partitions, boot-loader, κλπ

Συντονιστής: adem1

Κανόνες Δ. Συζήτησης
Στην ενότητα αυτή γράφουμε θέματα/ προβλήματα μόνο για το UBUNTU ή τα παράγωγά του.

Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό Logan » 01 Ιουν 2015, 20:51

Κώδικας: Επιλογή όλων

$ sudo apt-get -f dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
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]
Setting up linux-image-3.19.0-18-generic (3.19.0-18.18~14.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.19.0-18-generic
) points to /boot/initrd.img-3.19.0-18-generic
(/boot/initrd.img-3.19.0-18-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.19.0-18-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.19.0-18-generic
) points to /boot/vmlinuz-3.19.0-18-generic
(/boot/vmlinuz-3.19.0-18-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.19.0-18-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-18-generic /boot/vmlinuz-3.19.0-18-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-18-generic /boot/vmlinuz-3.19.0-18-generic
Error! echo
Your kernel headers for kernel 3.19.0-18-generic cannot be found at
/lib/modules/3.19.0-18-generic/build or /lib/modules/3.19.0-18-generic/source.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-18-generic /boot/vmlinuz-3.19.0-18-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-18-generic
Warning: No support for locale: en_US.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.19.0-18-generic /boot/vmlinuz-3.19.0-18-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.19.0-18-generic /boot/vmlinuz-3.19.0-18-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.19.0-18-generic /boot/vmlinuz-3.19.0-18-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-18-generic
Found initrd image: /boot/initrd.img-3.19.0-18-generic
Found linux image: /boot/vmlinuz-3.16.0-370-generic
Found initrd image: /boot/initrd.img-3.16.0-370-generic
Found linux image: /boot/vmlinuz-3.16.0-25-generic
Found initrd image: /boot/initrd.img-3.16.0-25-generic
Found linux image: /boot/vmlinuz-3.13.0-37-generic
Found initrd image: /boot/initrd.img-3.13.0-37-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
/etc/grub.d/40_custom_proxy: 3: /etc/grub.d/40_custom_proxy: menuentry: not found
insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module ext2: No such file or directory
/etc/grub.d/40_custom_proxy: 12: /etc/grub.d/40_custom_proxy: linux: not found
/etc/grub.d/40_custom_proxy: 13: /etc/grub.d/40_custom_proxy: initrd: not found
/etc/grub.d/40_custom_proxy: 14: /etc/grub.d/40_custom_proxy: Syntax error: "}" unexpected
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.19.0-18-generic.postinst line 1025.
dpkg: error processing package linux-image-3.19.0-18-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up grub-efi-amd64 (2.02~beta2-9ubuntu1.2) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-18-generic
Found initrd image: /boot/initrd.img-3.19.0-18-generic
Found linux image: /boot/vmlinuz-3.16.0-370-generic
Found initrd image: /boot/initrd.img-3.16.0-370-generic
Found linux image: /boot/vmlinuz-3.16.0-25-generic
Found initrd image: /boot/initrd.img-3.16.0-25-generic
Found linux image: /boot/vmlinuz-3.13.0-37-generic
Found initrd image: /boot/initrd.img-3.13.0-37-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
/etc/grub.d/40_custom_proxy: 3: /etc/grub.d/40_custom_proxy: menuentry: not found
insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module ext2: No such file or directory
/etc/grub.d/40_custom_proxy: 12: /etc/grub.d/40_custom_proxy: linux: not found
/etc/grub.d/40_custom_proxy: 13: /etc/grub.d/40_custom_proxy: initrd: not found
/etc/grub.d/40_custom_proxy: 14: /etc/grub.d/40_custom_proxy: Syntax error: "}" unexpected
dpkg: error processing package grub-efi-amd64 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
grub-efi-amd64-signed depends on grub-efi-amd64 (= 2.02~beta2-9ubuntu1.2); however:
Package grub-efi-amd64 is not configured yet.

dpkg: error processing package grub-efi-amd64-signed (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-3.19.0-18-generic:
linux-image-extra-3.19.0-18-generic depends on linux-image-3.19.0-18-generic; however:
Package linux-image-3.19.0-18-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.19.0-18-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-3.19.0-18-generic:
linux-signed-image-3.19.0-18-generic depends on linux-image-3.19.0-18-generic (= 3.19.0-18.18~14.04.1); however:
Package linux-image-3.19.0-18-generic is not configured yet.
linux-signed-image-3.19.0-18-generic depends on linux-image-extra-3.19.0-18-generic (= 3.19.0-18.18~14.04.1); however:
Package linux-image-extra-3.19.0-18-generic is not configured yet.

dpkg: error processing package linux-signed-image-3.19.0-18-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.19.0-18-generic
grub-efi-amd64
grub-efi-amd64-signed
linux-image-extra-3.19.0-18-generic
linux-signed-image-3.19.0-18-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
1 Γνώσεις Linux: όχι και μιάου! ┃ Προγραμματισμού:Ε.. ┃ Αγγλικών: Μέτρια
2 Arch Linux Gnome 4χχ
3 Intel Core i5-3210M CPU @ 2.50GHz ‖ RAM 7.7 GiB |
4 Intel 3rd Gen Core processor Graphics Controller [8086:0166] {i915} ⋮ Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] [1002:6840] {radeon}
Refugees Welcome
Άβαταρ μέλους
Logan
daemonTUX
daemonTUX
 
Δημοσιεύσεις: 816
Εγγραφή: 25 Νοέμ 2013, 19:42
Launchpad: loganlettuce
IRC: LoganL
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό sotos21 » 01 Ιουν 2015, 20:57

Αν δώσεις
Κώδικας: Επιλογή όλων
sudo dpkg --configure -a
και αν δεν πάρεις λάθη
Κώδικας: Επιλογή όλων
sudo apt-get install -f
κάνουμε κάτι;

Αν όχι δώσε
Κώδικας: Επιλογή όλων
sudo apt-get remove --purge linux-image-3.19.0-18-generic linux-image-extra-3.19.0-18-generic linux-signed-image-3.19.0-18-generic

και
Κώδικας: Επιλογή όλων
sudo apt-get install linux-image-3.19.0-18-generic linux-image-extra-3.19.0-18-generic linux-signed-image-3.19.0-18-generic linux-generic linux-image-generic linux-signed-generic linux-signed-image-generic
1 Γνώσεις Linux: Πρώτα βήματα ┃ Προγραμματισμού: Καθόλου ┃ Αγγλικών: Καθόλου
2 Ubuntu 23.10 Mantic Minotaur 6.3.0-7-generic 64bit (el_GR.UTF-8, Unity:Unity7:ubuntu unity)
3 AMD Ryzen 7 7730U with Radeon Graphics ‖ RAM 15368 MiB ‖ASUS TN3604YA - ASUS Vivobook_S_Flip TN3604YA_TN3604YA
4 Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] {amdgpu}
5 wlp1s0: MEDIATEK Corp. Device [14c3:7922]
Άβαταρ μέλους
sotos21
Freedom
Freedom
 
Δημοσιεύσεις: 6304
Εγγραφή: 21 Φεβ 2011, 21:28
Τοποθεσία: Αθήνα
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό Logan » 01 Ιουν 2015, 21:00

Ακριβώς τα ίδια λάθη.
1 Γνώσεις Linux: όχι και μιάου! ┃ Προγραμματισμού:Ε.. ┃ Αγγλικών: Μέτρια
2 Arch Linux Gnome 4χχ
3 Intel Core i5-3210M CPU @ 2.50GHz ‖ RAM 7.7 GiB |
4 Intel 3rd Gen Core processor Graphics Controller [8086:0166] {i915} ⋮ Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] [1002:6840] {radeon}
Refugees Welcome
Άβαταρ μέλους
Logan
daemonTUX
daemonTUX
 
Δημοσιεύσεις: 816
Εγγραφή: 25 Νοέμ 2013, 19:42
Launchpad: loganlettuce
IRC: LoganL
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό sotos21 » 01 Ιουν 2015, 21:09

Δείξε μας την

Κώδικας: Επιλογή όλων
cat /etc/default/grub
1 Γνώσεις Linux: Πρώτα βήματα ┃ Προγραμματισμού: Καθόλου ┃ Αγγλικών: Καθόλου
2 Ubuntu 23.10 Mantic Minotaur 6.3.0-7-generic 64bit (el_GR.UTF-8, Unity:Unity7:ubuntu unity)
3 AMD Ryzen 7 7730U with Radeon Graphics ‖ RAM 15368 MiB ‖ASUS TN3604YA - ASUS Vivobook_S_Flip TN3604YA_TN3604YA
4 Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] {amdgpu}
5 wlp1s0: MEDIATEK Corp. Device [14c3:7922]
Άβαταρ μέλους
sotos21
Freedom
Freedom
 
Δημοσιεύσεις: 6304
Εγγραφή: 21 Φεβ 2011, 21:28
Τοποθεσία: Αθήνα
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό Logan » 01 Ιουν 2015, 21:11

Κώδικας: Επιλογή όλων
cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
1 Γνώσεις Linux: όχι και μιάου! ┃ Προγραμματισμού:Ε.. ┃ Αγγλικών: Μέτρια
2 Arch Linux Gnome 4χχ
3 Intel Core i5-3210M CPU @ 2.50GHz ‖ RAM 7.7 GiB |
4 Intel 3rd Gen Core processor Graphics Controller [8086:0166] {i915} ⋮ Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] [1002:6840] {radeon}
Refugees Welcome
Άβαταρ μέλους
Logan
daemonTUX
daemonTUX
 
Δημοσιεύσεις: 816
Εγγραφή: 25 Νοέμ 2013, 19:42
Launchpad: loganlettuce
IRC: LoganL
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό sotos21 » 01 Ιουν 2015, 21:27

Δώσε
Κώδικας: Επιλογή όλων
sudo apt-get purge
sudo apt-get clean
sudo apt-get check
1 Γνώσεις Linux: Πρώτα βήματα ┃ Προγραμματισμού: Καθόλου ┃ Αγγλικών: Καθόλου
2 Ubuntu 23.10 Mantic Minotaur 6.3.0-7-generic 64bit (el_GR.UTF-8, Unity:Unity7:ubuntu unity)
3 AMD Ryzen 7 7730U with Radeon Graphics ‖ RAM 15368 MiB ‖ASUS TN3604YA - ASUS Vivobook_S_Flip TN3604YA_TN3604YA
4 Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] {amdgpu}
5 wlp1s0: MEDIATEK Corp. Device [14c3:7922]
Άβαταρ μέλους
sotos21
Freedom
Freedom
 
Δημοσιεύσεις: 6304
Εγγραφή: 21 Φεβ 2011, 21:28
Τοποθεσία: Αθήνα
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό Logan » 01 Ιουν 2015, 21:33

Στην purge τα ίδια λάθη, στις άλλες δύο σωστά.
1 Γνώσεις Linux: όχι και μιάου! ┃ Προγραμματισμού:Ε.. ┃ Αγγλικών: Μέτρια
2 Arch Linux Gnome 4χχ
3 Intel Core i5-3210M CPU @ 2.50GHz ‖ RAM 7.7 GiB |
4 Intel 3rd Gen Core processor Graphics Controller [8086:0166] {i915} ⋮ Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] [1002:6840] {radeon}
Refugees Welcome
Άβαταρ μέλους
Logan
daemonTUX
daemonTUX
 
Δημοσιεύσεις: 816
Εγγραφή: 25 Νοέμ 2013, 19:42
Launchpad: loganlettuce
IRC: LoganL
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό sotos21 » 01 Ιουν 2015, 21:39

έγραψε:I finally solved my issue by removing with Synaptic the problematic packages grub-efi-amd64 and grub-efi-amd64-signed.

Διάβασα στο ask ubuntu την παραπάνω επίλυση σε ίδιο πρόβλημα.
Αφαίρεσε τα πακέτα που λέει, κάνε πάλι update και upgrade και λογικά θα στα ξαναβάλει.
1 Γνώσεις Linux: Πρώτα βήματα ┃ Προγραμματισμού: Καθόλου ┃ Αγγλικών: Καθόλου
2 Ubuntu 23.10 Mantic Minotaur 6.3.0-7-generic 64bit (el_GR.UTF-8, Unity:Unity7:ubuntu unity)
3 AMD Ryzen 7 7730U with Radeon Graphics ‖ RAM 15368 MiB ‖ASUS TN3604YA - ASUS Vivobook_S_Flip TN3604YA_TN3604YA
4 Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] {amdgpu}
5 wlp1s0: MEDIATEK Corp. Device [14c3:7922]
Άβαταρ μέλους
sotos21
Freedom
Freedom
 
Δημοσιεύσεις: 6304
Εγγραφή: 21 Φεβ 2011, 21:28
Τοποθεσία: Αθήνα
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό Logan » 01 Ιουν 2015, 21:49

Πάλι
Κώδικας: Επιλογή όλων
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.19.0-18-generic.efi.signed
Found linux image: /boot/vmlinuz-3.19.0-18-generic
Found initrd image: /boot/initrd.img-3.19.0-18-generic
Found linux image: /boot/vmlinuz-3.16.0-370-generic
Found initrd image: /boot/initrd.img-3.16.0-370-generic
Found linux image: /boot/vmlinuz-3.16.0-25-generic
Found initrd image: /boot/initrd.img-3.16.0-25-generic
Found linux image: /boot/vmlinuz-3.13.0-37-generic
Found initrd image: /boot/initrd.img-3.13.0-37-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
/etc/grub.d/40_custom_proxy: 3: /etc/grub.d/40_custom_proxy: menuentry: not found
insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module ext2: No such file or directory
/etc/grub.d/40_custom_proxy: 12: /etc/grub.d/40_custom_proxy: linux: not found
/etc/grub.d/40_custom_proxy: 13: /etc/grub.d/40_custom_proxy: initrd: not found
/etc/grub.d/40_custom_proxy: 14: /etc/grub.d/40_custom_proxy: Syntax error: "}" unexpected
dpkg: error processing package grub-efi-amd64 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
grub-efi-amd64-signed depends on grub-efi-amd64 (= 2.02~beta2-9ubuntu1.2); however:
Package grub-efi-amd64 is not configured yet.

dpkg: error processing package grub-efi-amd64-signed (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
grub-efi-amd64
grub-efi-amd64-signed
1 Γνώσεις Linux: όχι και μιάου! ┃ Προγραμματισμού:Ε.. ┃ Αγγλικών: Μέτρια
2 Arch Linux Gnome 4χχ
3 Intel Core i5-3210M CPU @ 2.50GHz ‖ RAM 7.7 GiB |
4 Intel 3rd Gen Core processor Graphics Controller [8086:0166] {i915} ⋮ Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] [1002:6840] {radeon}
Refugees Welcome
Άβαταρ μέλους
Logan
daemonTUX
daemonTUX
 
Δημοσιεύσεις: 816
Εγγραφή: 25 Νοέμ 2013, 19:42
Launchpad: loganlettuce
IRC: LoganL
Εκτύπωση

Re: Αδυναμία αναβάθμισης kernel και grub

Δημοσίευσηαπό sotos21 » 01 Ιουν 2015, 21:51

H
Κώδικας: Επιλογή όλων
sudo dpkg-reconfigure grub-efi-amd64-signed
τι επιστρέφει;
Δείξε και την
Κώδικας: Επιλογή όλων
sudo apt-get update
1 Γνώσεις Linux: Πρώτα βήματα ┃ Προγραμματισμού: Καθόλου ┃ Αγγλικών: Καθόλου
2 Ubuntu 23.10 Mantic Minotaur 6.3.0-7-generic 64bit (el_GR.UTF-8, Unity:Unity7:ubuntu unity)
3 AMD Ryzen 7 7730U with Radeon Graphics ‖ RAM 15368 MiB ‖ASUS TN3604YA - ASUS Vivobook_S_Flip TN3604YA_TN3604YA
4 Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] {amdgpu}
5 wlp1s0: MEDIATEK Corp. Device [14c3:7922]
Άβαταρ μέλους
sotos21
Freedom
Freedom
 
Δημοσιεύσεις: 6304
Εγγραφή: 21 Φεβ 2011, 21:28
Τοποθεσία: Αθήνα
Εκτύπωση

Επόμενο

Επιστροφή στο Λειτουργικό Σύστημα

cron