首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >linux-映像-泛型似乎被破坏了。

linux-映像-泛型似乎被破坏了。
EN

Ask Ubuntu用户
提问于 2012-12-28 22:03:26
回答 1查看 2.5K关注 0票数 3

我用的是Ubuntu12.04。最近我不能再安装任何东西了。我总是收到以下错误消息:

代码语言:javascript
复制
Setting up linux-image-3.2.0-34-generic (3.2.0-34.53) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Use of chdir('') or chdir(undef) as chdir() is deprecated at /var/lib/dpkg/inf/linux-image-3.2.0-34-generic.postinst line 235.
Failed to symbolic-link /boot/initrd.img-3.2.0-34-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-3.2.0-34-generic.postinst line 614.
dpkg: error processing linux-image-3.2.0-34-generic (--configure):
 subprocess installed post-installation script returned error exit status 17
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.2.0-34-generic; however:
  Package linux-image-3.2.0-34-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.34.37); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up dselect (1.16.1.2ubuntu7) ...
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-3.2.0-34-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg -C的输出是:

代码语言:javascript
复制
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure menu option in dselect for them to work:
 linux-image-generic  Generic Linux kernel image
 linux-generic        Complete Generic Linux kernel

The following packages are only half configured, probably due to problems configuring them the first time. The configuration should be retried using dpkg --configure <package> or the configure menu option in dselect:
 linux-image-3.2.0-34-generic Linux kernel image for version 3.2.0 on 32 bit x8

但是dpkg --configure linux-image-3.2.0-34-generic linux-image-generic linux-generic会产生以下错误消息:

代码语言:javascript
复制
Setting up linux-image-3.2.0-34-generic (3.2.0-34.53) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Use of chdir('') or chdir(undef) as chdir() is deprecated at /var/lib/dpkg/inf/linux-image-3.2.0-34-generic.postinst line 235.
Failed to symbolic-link /boot/initrd.img-3.2.0-34-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-3.2.0-34-generic.postinst line 614.
dpkg: error processing linux-image-3.2.0-34-generic (--configure):
 subprocess installed post-installation script returned error exit status 17
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.2.0-34-generic; however:
  Package linux-image-3.2.0-34-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.34.37); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.2.0-34-generic
 linux-image-generic
 linux-generic

如果有人能帮我解决这个问题,我会很高兴的!

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2012-12-29 10:08:28

不知何故,您有一个伪造的pwd (打印工作目录)命令。我看了一下postinst脚本中引用的行。它试图“保存”工作目录,方法是将pwd的输出存储在变量中,然后在引用的行中,在执行其他目录中的一些操作后切换回该目录。这个问题的发生是因为被调用的pwd的输出是空的。

运行命令which pwd。如果输出不是/bin/pwd,找出原因并修复它。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/233798

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档