[问题]今天(2008.7.4)libnspr4-0d升级出错(已经解决)

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

[问题]今天(2008.7.4)libnspr4-0d升级出错(已经解决)

#1

帖子 actioin » 2008-07-04 22:35

更新管理器的提示如下:
E: /var/cache/apt/archives/libnspr4-0d_4.7.1+1.9-0ubuntu0.8.04.2_i386.deb: 正试图覆盖“/usr/lib/libnspr4.so”,它属于软件包 libnspr4
不知道有遇到同样问题的没有?
上次由 actioin 在 2008-07-10 12:06,总共编辑 1 次。
actioin
帖子: 28
注册时间: 2007-08-17 11:32

已经看到bug报告...

#2

帖子 actioin » 2008-07-05 11:47

google 的速度还真快。找到的同样的问题描述如下:


Public bug reported:

(Reading database ... 229837 files and directories currently installed.)
Preparing to replace libnspr4-0d 4.7.1+1.9-0ubuntu0.8.04.1 (using
.../libnspr4-0d_4.7.1+1.9-0ubuntu0.8.04.2_i386.deb) ...
Unpacking replacement libnspr4-0d ...
dpkg: error processing
/var/cache/apt/archives/libnspr4-0d_4.7.1+1.9-0ubuntu0.8.04.2_i386.deb
(--unpack):
trying to overwrite `/usr/lib/libnspr4.so', which is also in package libnspr4
Errors were encountered while processing:
/var/cache/apt/archives/libnspr4-0d_4.7.1+1.9-0ubuntu0.8.04.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

** Affects: nspr (Ubuntu)
Importance: Undecided
Status: New

可参见:
http://www.mail-archive.com/ubuntu-bugs ... 06659.html
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#3

帖子 kofshower » 2008-07-05 12:16

这个库影响firefox及其相关软件
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
actioin
帖子: 28
注册时间: 2007-08-17 11:32

#4

帖子 actioin » 2008-07-05 23:09

firefox好像没感觉有什么变化。好像对系统没有什么影响,不过要能消除这个问题更好。
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#5

帖子 kofshower » 2008-07-06 5:33

nspr是c-low api firefox底层用这个
ns=netscape
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
actioin
帖子: 28
注册时间: 2007-08-17 11:32

kofshower正解

#6

帖子 actioin » 2008-07-06 17:02

解释是正确的,我找到的比较详细的解释如下:
This library provides platform independent non-GUI operating system facilities including:

* threads,
* thread synchronisation,
* normal file I/O and network I/O,
* interval timing and calendar time,
* basic memory management (malloc and free),
* shared library linking.

Install this package if you wish to develop your own programs using the NetScape Portable Runtime library.
参见:http://packages.ubuntu.com/zh-cn/intrepid/libnspr4-dev

好像这个库非常重要俄,未造成影响的原因可能是apt-get阻止了进一步的安装...不知道对不对。 :D
actioin
帖子: 28
注册时间: 2007-08-17 11:32

解决之道

#7

帖子 actioin » 2008-07-10 12:04

sudo apt-get remove libnspr4
sudo dpkg --install libnspr4-0d_4.7.1+1.9-0ubuntu0.8.04.2_i386.deb
希望对各位有用! :D :D
回复