Проблемы с обновлением… Ошибки Ошибки

Я пробовал все, как удаление ядра 24 вручную, но независимо от того, что я делаю, это мой вывод sudo apt-get upgrade:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  linux-image-4.4.0-24-generic linux-image-extra-4.4.0-24-generic
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
**7 not fully installed or removed.**
After this operation, 217 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 292291 files and directories currently installed.)
Removing linux-image-extra-4.4.0-24-generic (4.4.0-24.43) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-24-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-24-generic
depmod: WARNING: could not open /var/tmp/mkinitramfs_Zm20Mv/lib/modules/4.4.0-24-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_Zm20Mv/lib/modules/4.4.0-24-generic/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Generating grub configuration file ...
/usr/sbin/grub-probe: error: failed to get canonical path of `/boot/grub/unicode.pf2GRUB_GFXPAYLOAD_LINUX=None'.
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub-probe --help' or 'grub-probe --usage' for more information.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 64
dpkg: error processing package linux-image-extra-4.4.0-24-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.4.0-24-generic (4.4.0-24.43) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Generating grub configuration file ...
/usr/sbin/grub-probe: error: failed to get canonical path of `/boot/grub/unicode.pf2GRUB_GFXPAYLOAD_LINUX=None'.
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub-probe --help' or 'grub-probe --usage' for more information.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 64
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.4.0-24-generic.postrm line 328.
dpkg: error processing package linux-image-4.4.0-24-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-24-generic
 linux-image-4.4.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Вот мои /etc/default/grub.cfg:

# 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="splash 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"

export GRUB_COLOR_NORMAL="light-green/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
GRUB_FONT="/boot/grub/unicode.pf2"GRUB_GFXPAYLOAD_LINUX=None
GRUB_GFXPAYLOAD_LINUX=None
2
задан 20 July 2016 в 08:44

3 ответа

Существует две записи на строка 38 из Вашего /etc/default/grub.cfg , которые заканчивают тем, что были объединены в одну переменную:

GRUB_FONT="/boot/grub/unicode.pf2"GRUB_GFXPAYLOAD_LINUX=None

необходимо добавить разрыв строки после 2-й кавычки (") прежде GRUB_GFXPAYLOAD_LINUX, или, так как получающаяся запись была бы точным дубликатом строки 39, можно просто удалить ту часть.

0
ответ дан 20 July 2016 в 08:44

Это говорит "7 не полностью установленный или удаленный". sudo apt -f install должен добиться цели.

0
ответ дан 20 July 2016 в 08:44

Попробуйте эти команды, я надеюсь, что они могли бы полезный

, sudo Кв. - получает обновление

, sudo Кв. - становится авточистой

, sudo Кв. - становится чистой

, sudo Кв. - добирается, автоудаляют

//На всякий случай, Вы знаете пакет

sudo dpkg --remove -force --force-remove-reinstreq package name
0
ответ дан 20 July 2016 в 08:44

Другие вопросы по тегам:

Похожие вопросы: