安装软件时总报错:E: Sub-process /usr/bin/dpkg returned an error code

编译打包和其他
回复
will-v-king
帖子: 47
注册时间: 2009-10-07 15:49
系统: U10.04 10.10 12.04 W

安装软件时总报错:E: Sub-process /usr/bin/dpkg returned an error code

#1

帖子 will-v-king » 2010-05-03 16:31

我以前装的nfs-kernel-server and nfs-common and portmap 可以和另外一台同局域网的电脑上的Ubuntu共享文件夹。
后来装了中国电信无线宽带客服端(不能肯定是这个引起的)。不久后,想共享文件夹,边没法从这台电脑的Network里面看到其他电脑共享的文件夹了。
执行:

代码: 全选

sudo apt-get install nfs-kernel-server
后,反馈:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-kernel-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 240 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up crossplatformui (1.0.27) ...
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service acpid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart acpid
acpid start/running, process 8789
make -C /mnt/windows/old_linux-2.6.31.6 M=/usr/local/bin/ztemtApp/zteusbserial/2.6.31 modules
make: *** /mnt/windows/old_linux-2.6.31.6: No such file or directory. Stop.
make: *** [modules] Error 2
dpkg: error processing crossplatformui (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
crossplatformui
E: Sub-process /usr/bin/dpkg returned an error code (1)
说明装了nfs的,只是not fully installed or removed....
后来卸载掉,卸载过程中报错,但Synaptic Package Manager(新得立更新管理)显示卸载成功。再安装报同样的错,但Synaptic Package Manager(新得立更新管理)显示已经为安装了的(installed)。
-laptop:~$ sudo apt-get -f install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-kernel-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 240 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up crossplatformui (1.0.27) ...
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service acpid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart acpid
acpid start/running, process 8724
make -C /mnt/windows/old_linux-2.6.31.6 M=/usr/local/bin/ztemtApp/zteusbserial/2.6.31 modules
make: *** /mnt/windows/old_linux-2.6.31.6: No such file or directory. Stop.
make: *** [modules] Error 2
dpkg: error processing crossplatformui (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
crossplatformui
E: Sub-process /usr/bin/dpkg returned an error code (1)
谁知道怎么解决?
PS1:我的Ubuntukernel版本是2.6.31.14.仅此一个版本的kernel!
PS2:据说mv掉 dpkg的info,再装上会导致以前装的程序无法运行,我可不想这样。

这个问题已经解决,见2楼。。。
上次由 will-v-king 在 2010-05-03 16:55,总共编辑 1 次。
10.10
10.04LTS
12.04LTS
will-v-king
帖子: 47
注册时间: 2009-10-07 15:49
系统: U10.04 10.10 12.04 W

Re: 安装软件时总报错:E: Sub-process /usr/bin/dpkg returned an error

#2

帖子 will-v-king » 2010-05-03 16:54

我在Synaptic Package Manager(新得立软件包管理)里面发现crossplatformui是ZTEMT UI Cross-Platform Edition for BSNL。版本1.027。这个是为我的中兴AC8710无线网卡装的驱动,不过没有成功。因为看了下网上的介绍,是下的AC8700的,还要怎么改动下,我改动不来,就直接装了。
--2 minutes later--
刚刚我在Synaptic Package Manager里面找到crossplatformui,并彻底卸载掉。于是就没有报错了。
至于怎么装网卡驱动,555,还是有待研究。
10.10
10.04LTS
12.04LTS
回复