错误代码-无法执行apt-get升级

肯尼斯·拉文(Kenneth Ravn)

标准软件更新程序说软件包系统已损坏。它在安装更新时。

当我这样做时sudo apt-get upgrade,我得到以下信息:

Setting up linux-image-4.8.0-52-generic (4.8.0-52.55~16.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-4.8.0-52-generic
) points to /boot/initrd.img-4.8.0-52-generic
 (/boot/initrd.img-4.8.0-52-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.8.0-52-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-4.8.0-52-generic
) points to /boot/vmlinuz-4.8.0-52-generic
 (/boot/vmlinuz-4.8.0-52-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.8.0-52-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-52-generic /boot/vmlinuz-4.8.0-52-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-52-generic /boot/vmlinuz-4.8.0-52-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-52-generic /boot/vmlinuz-4.8.0-52-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-52-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.8.0-52-generic /boot/vmlinuz-4.8.0-52-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.8.0-52-generic /boot/vmlinuz-4.8.0-52-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.8.0-52-generic /boot/vmlinuz-4.8.0-52-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.8.0-52-generic /boot/vmlinuz-4.8.0-52-generic
/usr/sbin/grub-mkconfig: 13: /etc/default/grub: intel_idle.max_cstate=1: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.8.0-52-generic.postinst line 1052.
dpkg: error processing package linux-image-4.8.0-52-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.8.0-52-generic:
 linux-image-extra-4.8.0-52-generic depends on linux-image-4.8.0-52-generic; however:
  Package linux-image-4.8.0-52-generic is not configured yet.

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

dpkg: error processing package linux-signed-image-4.8.0-52-generic (--configure):
 dependency problems - leaving unconfigured
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.
                                                    Errors were encountered while processing:
 linux-image-4.8.0-52-generic
 linux-image-extra-4.8.0-52-generic
 linux-signed-image-4.8.0-52-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-get -f installdpkg --configure -a产生相同的结果。

我该怎么办?我没有安装Synaptic,现在也无法安装任何东西。

的内容/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 splash"
GRUB_CMDLINE_LINUX=""
intel_idle.max_cstate=1 acpi_backlight=vendor


# 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"
大卫·福斯特(David Foerster)

的第13行有错误/etc/default/grub它的内容似乎应该GRUB_CMDLINE_LINUX在上一行中分配给它。正确操作的方法如下:

  1. 将第12和13行替换为:

    GRUB_CMDLINE_LINUX="intel_idle.max_cstate=1 acpi_backlight=vendor"
    
  2. 使用以下命令完成半安装软件包的安装:

    sudo apt install -f
    

    这还将基于步骤1中的更改​​来更新Grub配置(这就是为什么它首先失败的原因),因此无需update-grub再次运行

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Excel Source无法执行预执行阶段,并返回错误代码0xC0207013,需要参数

来自分类Dev

出口无法设置错误代码

来自分类Dev

无法执行servlet代码

来自分类Dev

无法从ReCaptchaResponse获取错误代码

来自分类Dev

Apt-get无法从Ubuntu服务器获取错误代码404

来自分类Dev

sudo apt-get install错误代码01

来自分类Dev

apt-get不起作用。/ usr / bin / dpkg返回错误代码

来自分类Dev

Docker:执行Shell脚本时出现错误代码127

来自分类Dev

Apt-get无法从Ubuntu服务器获取错误代码404

来自分类Dev

Payflow-错误代码52权限不足,无法执行交易

来自分类Dev

sudo apt-get install错误代码01

来自分类Dev

apt-get不起作用。/ usr / bin / dpkg返回错误代码

来自分类Dev

sudo apt-get update子进程返回了错误代码

来自分类Dev

Excel Source无法执行预执行阶段,并返回错误代码0xC0207013,需要参数

来自分类Dev

由于ActiveX元素,VBA代码无法执行(错误32809)

来自分类Dev

由于依赖关系而无法执行apt-get

来自分类Dev

apt vs apt-get错误代码

来自分类Dev

无法从ReCaptchaResponse获取错误代码

来自分类Dev

NHibernate通过代码错误消息映射无法执行查询

来自分类Dev

我无法执行“ sudo apt-get更新”(sources.list中格式错误的条目54)

来自分类Dev

无法执行:apt-get更新

来自分类Dev

E:在sudo apt-get install --fix-missing后,子进程/ usr / bin / dpkg返回错误代码(1)

来自分类Dev

apt-get升级:错误503

来自分类Dev

apt升级:无法执行操作:没有此类文件或目录

来自分类Dev

执行apt-get升级时dpkg中的错误(大多数命令)

来自分类Dev

在Codeigniter中卷曲-错误代码22,HTTP GET

来自分类Dev

Swift 3升级错误-执行错误代码

来自分类Dev

Asprise OCR <错误:无法读取 pdf。错误代码:ÿ>

来自分类Dev

无法执行的 CodeIgniter 代码

Related 相关文章

  1. 1

    Excel Source无法执行预执行阶段,并返回错误代码0xC0207013,需要参数

  2. 2

    出口无法设置错误代码

  3. 3

    无法执行servlet代码

  4. 4

    无法从ReCaptchaResponse获取错误代码

  5. 5

    Apt-get无法从Ubuntu服务器获取错误代码404

  6. 6

    sudo apt-get install错误代码01

  7. 7

    apt-get不起作用。/ usr / bin / dpkg返回错误代码

  8. 8

    Docker:执行Shell脚本时出现错误代码127

  9. 9

    Apt-get无法从Ubuntu服务器获取错误代码404

  10. 10

    Payflow-错误代码52权限不足,无法执行交易

  11. 11

    sudo apt-get install错误代码01

  12. 12

    apt-get不起作用。/ usr / bin / dpkg返回错误代码

  13. 13

    sudo apt-get update子进程返回了错误代码

  14. 14

    Excel Source无法执行预执行阶段,并返回错误代码0xC0207013,需要参数

  15. 15

    由于ActiveX元素,VBA代码无法执行(错误32809)

  16. 16

    由于依赖关系而无法执行apt-get

  17. 17

    apt vs apt-get错误代码

  18. 18

    无法从ReCaptchaResponse获取错误代码

  19. 19

    NHibernate通过代码错误消息映射无法执行查询

  20. 20

    我无法执行“ sudo apt-get更新”(sources.list中格式错误的条目54)

  21. 21

    无法执行:apt-get更新

  22. 22

    E:在sudo apt-get install --fix-missing后,子进程/ usr / bin / dpkg返回错误代码(1)

  23. 23

    apt-get升级:错误503

  24. 24

    apt升级:无法执行操作:没有此类文件或目录

  25. 25

    执行apt-get升级时dpkg中的错误(大多数命令)

  26. 26

    在Codeigniter中卷曲-错误代码22,HTTP GET

  27. 27

    Swift 3升级错误-执行错误代码

  28. 28

    Asprise OCR <错误:无法读取 pdf。错误代码:ÿ>

  29. 29

    无法执行的 CodeIgniter 代码

热门标签

归档