Chinaunix首页 | 论坛 | 博客
  • 博客访问: 80907
  • 博文数量: 29
  • 博客积分: 388
  • 博客等级: 一等列兵
  • 技术积分: 197
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-28 16:34
文章分类

全部博文(29)

文章存档

2013年(1)

2012年(28)

我的朋友

分类:

2012-06-11 21:31:54

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!

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