LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2015, 09:39 AM   #1
horizn
Member
 
Registered: Jan 2015
Location: UK and Poland
Distribution: Slackware + Debian + Ubuntu
Posts: 170

Rep: Reputation: Disabled
Poroblem with uninstalled Perl


Hi,
I've uninstalled Perl and now I am trying to install it one more time, unfortunately I get:

# aptitude install perl
The following packages will be REMOVED:
bzip2{u}
The following partially installed packages will be configured:
man-db
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 160 kB will be freed.
Do you want to continue? [Y/n/?] y
debconf: Perl may be unconfigured (Can't locate strict.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /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 2.
BEGIN failed--compilation aborted at (eval 1) line 2.
) -- aborting
(Reading database ... 43983 files and directories currently installed.)
Removing bzip2 ...
Setting up man-db (2.5.7-8) ...
Can't locate strict.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/debconf/frontend line 5.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 5.
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up man-db (2.5.7-8) ...
Can't locate strict.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/debconf/frontend line 5.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 5.
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
man-db

it seems that system is in never ending loop.
 
Old 11-12-2015, 02:10 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
I need more information. What linux distribution are you running? Is this problem on a desktop, workstation or on a server?
 
Old 11-12-2015, 02:27 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
In general it is not a good idea to remove perl from a linux box, I guess. If you need a different version of perl for a particular purpose you can install a second version, i. e. to /usr/local/yourPerl
If your distribution has a recovery mode try to use that to reinstall the original perl.
 
Old 11-12-2015, 03:11 AM   #4
horizn
Member
 
Registered: Jan 2015
Location: UK and Poland
Distribution: Slackware + Debian + Ubuntu
Posts: 170

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by xode View Post
I need more information. What linux distribution are you running? Is this problem on a desktop, workstation or on a server?
Debian Squeeze.
 
Old 11-12-2015, 03:11 AM   #5
horizn
Member
 
Registered: Jan 2015
Location: UK and Poland
Distribution: Slackware + Debian + Ubuntu
Posts: 170

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by j-ray View Post
In general it is not a good idea to remove perl from a linux box, I guess. If you need a different version of perl for a particular purpose you can install a second version, i. e. to /usr/local/yourPerl
If your distribution has a recovery mode try to use that to reinstall the original perl.
Not in Debian. I've made this many times in Slackware without any problems.
 
Old 11-12-2015, 09:26 AM   #6
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Still knowing little, I get the impression that your problems are caused by suddenly missing package dependencies and that, when you originally uninstalled perl, you broke many other programs on your system. It simply might be best to hook the hard drive from that computer up to another computer as a slave, retrieve your data and do a complete reinstall from scratch on that computer. In the future, you might want to get a GUI front end for the package manager for your debian squeeze so that you can see exactly what you are getting into before you actually start doing anything. My understanding is that debian uses apt for its package management.
 
Old 11-12-2015, 09:50 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
As usual, https://wiki.debian.org/PerlFAQ
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to be sure grub2 is uninstalled enrico_dvchp Ubuntu 3 02-02-2013 01:19 PM
uninstalled php sqon Linux - Newbie 9 01-21-2011 09:16 AM
FC4 internet configure wizard poroblem biblpshnman Fedora 1 10-02-2005 03:56 PM
uninstalled Mandrake10 Haggis56 Linux - Newbie 2 01-12-2005 07:30 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration