Tag: dpkg

由于内核包问题无法升级

这是一个Ubuntu 14.04 LTS用户。 基本上我跑步时遇到了问题 sudo apt-get update sudo apt-get upgrade dpkg返回错误代码,因为Linux内核包3.13.0.57被标记为“未完全安装”: Errors were encountered while processing: linux-image-3.13.0.57-generic linux-image-extra-3.13.0-57-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 我键入uname -r以查看系统内核的当前版本是什么,令人惊讶的是它是3.13.0.57 。 之后我重新启动系统并输入grub列出所有已安装的Linux内核,并看到我有3.8.0-35-generic,所以我启动它以尝试重新安装3.13.0.57版本。 我没有任何线索为什么默认情况下,当3.8.0-35可用时,Ubuntu 14.04会以3.13.0.57启动。 在我用3.8.0成功启动后,我再次列出了所有与dpkg相关的内核,以确保3.13.0-57存在。 sudo dpkg –list | grep linux-image sudo apt-get purge linux-image-3.13.0.57-generic sudo apt-get purge linux-image-extra-3.13.0-57-generic 但是额外的图像包无法删除,而纯linux图像可以: Errors were encountered while processing: linux-image-extra-3.13.0-57-generic E: […]

为什么在使用dpkg删除内核时会出现update-initramfs错误?

通过dpkg –purge删除内核时,我得到以下输出: 删除linux-headers-3.13.0-112-generic(3.13.0-112.159)… 删除linux-image-extra-3.13.0-112-generic(3.13.0-112.159)… run-parts:执行/etc/kernel/postinst.d/apt-auto-removal 3.13.0-112-generic /boot/vmlinuz-3.13.0-112-generic run-parts:执行/etc/kernel/postinst.d/initramfs-tools 3.13.0-112-generic /boot/vmlinuz-3.13.0-112-generic update-initramfs:生成/boot/initrd.img-3.13.0-112-generic W:TMPDIR挂载noexec,不会缓存运行脚本。 gzip:stdout:设备上没有剩余空间 E:mkinitramfs失败cpio 141 gzip 1 update-initramfs:/boot/initrd.img-3.13.0-112-generic with 1失败。 run-parts:/etc/kernel/postinst.d/initramfs-tools退出,返回码为1 dpkg:error handling包linux-image-extra-3.13.0-112-generic(–purge): 子进程安装后删除脚本返回错误退出状态1 删除linux-image-3.13.0-112-generic(3.13.0-112.159)… 检查/etc/kernel/postrm.d。 run-parts:执行/etc/kernel/postrm.d/initramfs-tools 3.13.0-112-generic /boot/vmlinuz-3.13.0-112-generic update-initramfs:删除/boot/initrd.img-3.13.0-112-generic run-parts:执行/etc/kernel/postrm.d/zz-update-grub 3.13.0-112-generic /boot/vmlinuz-3.13.0-112-generic 生成grub配置文件… 警告:不再支持在设置GRUB_HIDDEN_TIMEOUT时将GRUB_TIMEOUT设置为非零值。 找到linux映像:/boot/vmlinuz-4.4.0-71-generic 找到initrd映像:/boot/initrd.img-4.4.0-71-generic 找到linux映像:/boot/vmlinuz-4.4.0-67-generic 找到initrd映像:/boot/initrd.img-4.4.0-67-generic 找到linux映像:/boot/vmlinuz-4.4.0-66-generic 找到initrd映像:/boot/initrd.img-4.4.0-66-generic 找到linux映像:/boot/vmlinuz-4.4.0-64-generic 找到initrd映像:/boot/initrd.img-4.4.0-64-generic 找到linux映像:/boot/vmlinuz-3.13.0-115-generic 找到initrd映像:/boot/initrd.img-3.13.0-115-generic 找到linux映像:/boot/vmlinuz-3.13.0-113-generic 找到initrd映像:/boot/initrd.img-3.13.0-113-generic 找到memtest86 + image:/memtest86+.elf 找到memtest86 + image:/memtest86+.bin 没有找到卷组 DONE […]

葡萄酒:取决于wine1.6或wine1.8,但它不会被安装,你已经破坏了包裹

我想在Ubuntu 16.04上安装wine,但是我收到了错误: $ sudo apt-get install wine Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out […]

安装包时“设备上没有剩余空间”,但我还有空间

无论是通过更新管理器,还是通过终端,我都会出错。 当我尝试sudo apt-get update && sudo apt-get upgrade : Fetched 1,024 kB in 20s (51.0 kB/s) Reading package lists… Done Reading package lists… Done Building dependency tree Reading state information… Done You might want to run ‘apt-get -f install’ to correct these. The following packages have unmet dependencies: linux-headers-generic : Depends: linux-headers-3.13.0-29-generic but it is […]

升级后我收到此错误

我在最近的升级后收到此错误消息: dpkg: dependency problems prevent configuration of initramfs-tools: initramfs-tools depends on initramfs-tools-bin (<< 0.99ubuntu13.2.1~); however: Version of initramfs-tools-bin on system is 0.103ubuntu0.2. klibc-utils (2.0.1-1ubuntu2) breaks initramfs-tools (<= 2.28); however: Package mountall is not configured yet. dpkg: error processing initscripts (–configure): dependency problems – leaving unconfigured dpkg: dependency problems prevent configuration of upstart: upstart depends on […]

“涉及服务的循环”:apt-get install打破dpkg

一个apt-get安装变坏了,现在每个apt命令都失败了。 来自sudo apt-get install apache2强制转储 Reading package lists… Done Building dependency tree Reading state information… Done **apache2 is already the newest version.** 0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded. **1 not fully installed or removed.** After this operation, 0 B of additional disk space will be used. Do you want […]

如何找到系统上安装的所有许可证?

我想编写一个脚本,为我系统上安装的每个软件包输出许可证。 使用dpkg –get-selections我能够获得所有安装的列表。 但是,我没有办法获取每个包的许可证信息。 例如,我可以使用aptitude show来获取每个包的属性,但这不包括许可证: $ aptitude show apache2 Package: apache2 State: installed Automatically installed: no Version: 2.2.14-5ubuntu8.6 Priority: optional Section: httpd Maintainer: Ubuntu Developers Uncompressed Size: 36.9k Depends: apache2-mpm-worker (= 2.2.14-5ubuntu8.6) | apache2-mpm-prefork (= 2.2.14-5ubuntu8.6) | apache2-mpm-event (= 2.2.14-5ubuntu8.6) | apache2-mpm-itk (= 2.2.14-5ubuntu8.6), apache2.2-common (= 2.2.14-5ubuntu8.6) Provided by: apache2-mpm-event, apache2-mpm-itk, apache2-mpm-prefork, apache2-mpm-worker Description: […]

Grub-pc安装错误

试图修复我的apt-get升级,它总是停止设置grub-pc …我读到了应该清除的地方删除我的grub2然后重新安装它。 我这样做了,经过大量的支付,我能够删除它(这不是一个聪明的举动)。 现在我再也无法安装它了。 我正在尝试sudo apt-get install grub-pc,它只是停在“设置grub-pc ..”并且什么也没做,因为它不允许我做任何升级或安装..它问我sudo dpkg –configure -a在设置grub-pc时再次停止 我想我很快就需要帮助。 谢谢,我真的很感激这里的任何输入,以便在下次重启之前使我的系统到位。

由于依赖性和配置问题导致内核安装失败导致apt和dpkg失败

我见过一些类似的问题,但我见过的都没有解决我的问题。 在Ubuntu 12.04上从linux-image-3.2.0-36-generic到linux-image-3.2.0-38-generic进行内核升级时发生错误。 使用3.2.0-38启动时,引导时会发生内核3.2.0-38 。 在3.2.0-36下启动,系统正常启动。 但是,当我尝试删除干净或配置受影响的内核包时,它会引发以下错误: Reading package lists… Done Building dependency tree Reading state information… Done You might want to run ‘apt-get -f install’ to correct these: The following packages have unmet dependencies: initramfs-tools : Depends: initramfs-tools-bin (< 0.99ubuntu13.1~) but 0.99ubuntu13.1 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with […]

使用apt-get remove时如何解决E:内部错误?

我用: apt-get remove 要删除某些软件,但它会显示: error:E: Internal Error, No file name for libssl1.0.0 . 我也尝试这个来解决错误: wget http://launchpadlibrarian.net/102991621/libssl1.0.0_1.0.0e-2ubuntu4.5_i386.deb sudo dpkg -i libssl1.0.0_1.0.0e-2ubuntu4.5_i386.deb 但它也给出了一个错误: libssl1.0.0:i386 1.0.0e-2ubuntu4.5 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.3) 我想知道解决这个问题的正确方法。