我的系统不能安装任何软件或升级,请帮忙

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
ucn123
帖子: 16
注册时间: 2008-10-27 12:51

我的系统不能安装任何软件或升级,请帮忙

#1

帖子 ucn123 » 2010-12-29 14:29

我的系统现在提醒我的安装出错,具体内容如下,请大家帮忙看看,谢谢

Package operation failed 包操作失败
The installation or removal of a software package failed. 安装或移除一个软件包失败。

details: 具体内容
installArchives() failed: Setting up install-info (4.13a.dfsg.1-5ubuntu1) ...

/etc/environment: line 4: ./configure: No such file or directory

dpkg: error processing install-info (--configure):

subprocess installed post-installation script returned error exit status 1

Setting up install-info (4.13a.dfsg.1-5ubuntu1) ...

/etc/environment: line 4: ./configure: No such file or directory

dpkg: error processing install-info (--configure):

subprocess installed post-installation script returned error exit status 1
xtz1990
帖子: 452
注册时间: 2010-06-03 22:51

Re: 我的系统不能安装任何软件或升级,请帮忙

#2

帖子 xtz1990 » 2010-12-29 19:49

先换一下源试试 推荐163的源 再更新 可能是其他的问题 等其他人解决
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 我的系统不能安装任何软件或升级,请帮忙

#3

帖子 lainme » 2010-12-29 22:34

ucn123
帖子: 16
注册时间: 2008-10-27 12:51

Re: 我的系统不能安装任何软件或升级,请帮忙

#4

帖子 ucn123 » 2010-12-30 11:13

谢谢lainme的提示,我照上面的改了以后,至少apt-get update是可以做了。 但现在还是有个问题,就是当我在安装软件的时候,还是提醒我的设置不对,请看:
installArchives() failed: dpkg: parse error, in file '/var/lib/dpkg/status' near line 6129 package 'install-info':

Configured-Version for package with inappropriate Status

我是从ubuntu软件中心安装的。

以下是我现在的修改后的,之前的status是 install ok half-configured,现在改成了 install ok installed了。

Package: install-info
Status: install ok installed
Priority: important
Section: doc
Installed-Size: 252
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: texinfo
Version: 4.13a.dfsg.1-5ubuntu1
Config-Version: 4.13a.dfsg.1-5ubuntu1
Replaces: texinfo (<< 4.13a.dfsg.1-2)
Depends: libc6 (>= 2.4)
Conflicts: texinfo (<< 4.13a.dfsg.1-2)
Description: Manage installed documentation in info format
The install-info utility creates the index of all installed documentation
in info format and makes it available to info readers.
Original-Maintainer: Debian TeX maintainers <debian-tex-maint@lists.debian.org>


请各位帮忙看看该如何改,我不知道该怎么该了,谢谢
ucn123
帖子: 16
注册时间: 2008-10-27 12:51

新的问题:dpkg status设置出现问题,安装任何软件或升级都提示install-info设置错误,请帮忙,急,谢谢

#5

帖子 ucn123 » 2011-01-15 22:00

dpkg: parse error, in file '/var/lib/dpkg/status' near line 6129 package 'install-info':
Configured-Version for package with inappropriate Status
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
dpkg: parse error, in file '/var/lib/dpkg/status' near line 6129 package 'install-info':
Configured-Version for package with inappropriate Status

请问我该如何设置,上面已有我原来的设置,谢谢大家帮忙。这是ubuntu的精神所在!
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: 我的系统不能安装任何软件或升级,请帮忙

#6

帖子 cnkilior » 2011-01-16 10:46

什么嘛!!!
检查你的/etc/environment
瞎改什么系统环境配置。。。。

乱改东西要受到惩罚的。
ucn123
帖子: 16
注册时间: 2008-10-27 12:51

Re: 我的系统不能安装任何软件或升级,请帮忙

#7

帖子 ucn123 » 2011-01-19 11:41

谢谢提醒,但我根本就没有改过我environment, 这是我的:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun
JAVAC=javac ./configure

请指点,非常感谢
alexshots
帖子: 248
注册时间: 2010-01-22 23:45

Re: 我的系统不能安装任何软件或升级,请帮忙

#8

帖子 alexshots » 2013-05-05 18:21

这问题,我也遇到了。

是在ubuntu 11.10 32bit,升级ubuntu 12.04 LTS的时候。

我ubuntu 11.10为了玩minecraft 1.5.1/1.5.2,安装了oracle/sun的jre和jdk 1.7

需要把部分配置内容写入/etc/environment

结果就是导致,系统在安装包的时候,install-info,info,ubuntu-standard,这几个包安装死活过不去。卡那里。报错都是说。读取/etc/environment中和jre或者jdk相关内容的行时候报错。

所以,work-around就是,备份environment文件。然后修改该文件,就留最开始的2行。
代码 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
代码 export GNOME_SHELL_DISABLE_TFP=1

底下jre,jdk的配置行都删除。完了保存。重启ubuntu让/etc/environment文件生效。

完了。再安装任何一个新软件,或者包,(我系统里事先安装过新立得,synaptic package manager)你就发现,配置到一半的install-info,info,ubuntu-standard等包,又都正常了。

真是ooxx,xxoo,完了,那再把java jre/jdk的东西,写回来,放到/etc/environment下吧。。。

哎。。。真折腾。

所以,就是说,这个jre和jdk在linux下的这个环境变量。

干脆就不要写到/etc/environment去好了。

写到/etc/profile和~/.bashrc(限当前用户)中,文件的末尾好了。
-
回复