Chinaunix首页 | 论坛 | 博客
  • 博客访问: 904422
  • 博文数量: 73
  • 博客积分: 2689
  • 博客等级: 少校
  • 技术积分: 897
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-07 19:39
个人简介

一个有目标,为自己的未来努力奋斗的人

文章分类
文章存档

2015年(9)

2014年(2)

2013年(6)

2012年(11)

2011年(33)

2010年(12)

分类: LINUX

2010-11-23 16:08:43

Sometimes, we always meet errors when install packages. Some errors like this:

debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 1) line 4.


we can find there are something wrong about 'Perl' or 'debconf'. In fact, when we try to reconfigured

dpkg-reconfigure perl


for perl, we can not do anything more but keep it intact. 
   On the other hand, if we try to do something about debconf, we can find this is a most effective wayCode like this:

Code:
dpkg --remove --force-depends debconf
dpkg --purge --force-depends debconf


After execute this two commands above, we should do the next work bellow:

Code:
apt-get -f install


Now it was good. I think our system was ready to get into the good stage. At last, you can install any packges you like.^_^

The situation above is an example for me to tell you the way to resolve the problem. Bellow is the solution:

When you meet the errors like this, first you can try this two commands bellow:

Code:
dpkg --remove --force-depends xxxx
dpkg --purge --force-depends xxxx


xxxx indicate the package which with some error (dpkg returned).

Next, you can try this command:

Code:
apt-get -f install


In this way, most of times we can resolve this problem.

Good luck!

阅读(1562) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~