LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2012, 03:46 AM   #1
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 18

Rep: Reputation: Disabled
An error at upgrade


Hi every body
when i use upgrade commanad in my Debian Squeez it show's this error:
Code:
root@Debian:~# aptitude upgrade 
The following partially installed packages will be configured:
  man-db 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
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
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
whats the problem?
 
Old 06-25-2012, 10:08 AM   #2
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
hi, you need to update the packages list before doing an upgrade, have you run
Code:
aptitude update
first?

Last edited by VDP76; 06-25-2012 at 10:09 AM.
 
Old 06-25-2012, 12:56 PM   #3
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 18

Original Poster
Rep: Reputation: Disabled
yes i always use update before upgrade
 
Old 06-25-2012, 01:19 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Maybe your situation is the reverse of the person from this post
http://www.linuxquestions.org/questi...ict-pm-318135/
 
Old 06-25-2012, 01:30 PM   #5
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
Quote:
Originally Posted by esfahan2000 View Post
yes i always use update before upgrade
just checking..
have you also tried to do
Code:
aptitude safe-upgrade
!?
 
Old 06-25-2012, 11:13 PM   #6
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 18

Original Poster
Rep: Reputation: Disabled
no it doesnt work ....
 
Old 06-25-2012, 11:32 PM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Maybe you should post your /etc/apt/sources.list & let someone check it out.
 
Old 06-25-2012, 11:34 PM   #8
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 18

Original Poster
Rep: Reputation: Disabled
this is the result:
Code:
# deb cdrom:[Debian GNU/Linux 6.0.2.1 _Squeeze_ - Official i386 DVD Binary-1 20110626-15:45]/ squeeze contrib main

# deb cdrom:[Debian GNU/Linux 6.0.2.1 _Squeeze_ - Official i386 DVD Binary-1 20110626-15:45]/ squeeze contrib main


deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib

# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ squeeze-updates main contrib
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib
deb ftp://ftp.debian.org/debian/ stable non-free contrib main
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
 
Old 06-26-2012, 09:58 AM   #9
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
the sources look fine...and, as you might know, google doesn't help much, there are threads with similar issues but no solution.
I am afraid we have to consider the option of some problem with the hard disk and/or corrupted system...I would suggest to try booting from a live cd and run
Code:
fsck /dev/sda
(or sdX according to your HD naming) or
Code:
fsck -f /dev/sda
to force a full scan.
 
Old 06-26-2012, 10:41 AM   #10
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by VDP76 View Post
the sources look fine...and, as you might know, google doesn't help much, there are threads with similar issues but no solution.
I am afraid we have to consider the option of some problem with the hard disk and/or corrupted system...I would suggest to try booting from a live cd and run
Code:
fsck /dev/sda
(or sdX according to your HD naming) or
Code:
fsck -f /dev/sda
to force a full scan.
thanks for help but
my distro is debian it has no live Cd .
how can i use it live?
 
Old 06-26-2012, 10:49 AM   #11
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
Quote:
Originally Posted by esfahan2000 View Post
thanks for help but
my distro is debian it has no live Cd .
how can i use it live?
there is the Debian Live Project but I think you could do a check disk from any distro's live cd like *buntu or some Debian-based one like #!...
 
Old 06-26-2012, 12:01 PM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If using non-free you should add to the other 4 repos also.
Then aptitude update
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] UPGRADE.TXT error I think zasavage Slackware 3 05-06-2011 08:18 AM
SOLVED: Upgrade error: Sub-process /usr/bin/dpkg returned an error code (1) jlb0057 Debian 3 03-11-2011 08:37 AM
upgrade error EdN Fedora 4 07-12-2009 02:41 AM
error in upgrade debian lutierigb Linux - Software 3 06-20-2006 03:55 PM
Error trying to dist-upgrade or upgrade KDE prophet621 Linux - Newbie 0 09-10-2003 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 AM.

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