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
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 way. Code 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:
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:
In this way, most of times we can resolve this problem.
Good luck!
阅读(1562) | 评论(0) | 转发(1) |