LinuxQuestions.org
Help answer threads with 0 replies.
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 10-28-2008, 10:17 AM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Debian - Aptitude -


Guys,
how do i solve this:
Code:
# aptitude install dictionaries-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  dictionaries-common
The following partially installed packages will be configured:
  iamerican ispell wamerican
0 packages upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 0B/250kB of archives. After unpacking 763kB will be used.
Writing extended state information... Done
Preconfiguring packages ...
Info: dictionaries-common/default-ispell is already set to
      [american (American English)]. Preserving it.
Info: dictionaries-common/default-wordlist is already set to
      [american (American English)]. Preserving it.
(Reading database ... 114020 files and directories currently installed.)
Unpacking dictionaries-common (from .../dictionaries-common_0.70.10_all.deb) ...
No alternatives for ispell-dictionary.hash.
dpkg: error processing /var/cache/apt/archives/dictionaries-common_0.70.10_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/dictionaries-common_0.70.10_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of wamerican:
 wamerican depends on dictionaries-common (>= 0.20); however:
  Package dictionaries-common is not installed.
dpkg: error processing wamerican (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of iamerican:
 iamerican depends on dictionaries-common (>= 0.20); however:
  Package dictionaries-common is not installed.
dpkg: error processing iamerican (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ispell:
 ispell depends on dictionaries-common (>= 0.20); however:
  Package dictionaries-common is not installed.
 ispell depends on iamerican | ispell-dictionary; however:
  Package iamerican is not configured yet.
  Package ispell-dictionary is not installed.
  Package ibrazilian which provides ispell-dictionary is not installed.
  Package iamerican which provides ispell-dictionary is not configured yet.
  Package ibritish which provides ispell-dictionary is not installed.
dpkg: error processing ispell (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 wamerican
 iamerican
 ispell
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

And somebody here at work left /etc/apt/sources.list like this:
Code:
deb http://ftp.debian.org/ stable main contrib non-free
deb-src http://ftp.debian.org/debian/ etch main contrib non-free

deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free
Should i leave it stable or etch (or they are the same)?
 
Old 10-28-2008, 10:54 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
Should i leave it stable or etch (or they are the same)?
They're the same, but I would change the lines to exactly match.

Try...
# aptitude update
# aptitude install -f
 
Old 10-28-2008, 01:02 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,808
Blog Entries: 58

Rep: Reputation: Disabled
Don't know about the Aptitude problem, but as for the sources.list: Stable will mean Lenny in the near(?) future, Etch will remain Etch.
 
Old 10-28-2008, 04:47 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Quote:
error processing /var/cache/apt/archives/dictionaries-common_0.70.10_all.deb (--unpack):
subprocess pre-installation script returned error exit status 1
I would delete this file from the apt package cache, update, and try again.. it looks like the file may be corrupt or incomplete..
exit status 1 indicates a failure


rm /var/cache/apt/archives/dictionaries-common_0.70.10_all.deb
aptitude update
aptitude install dictionaries-common



it should download that file fresh and try again.

Last edited by farslayer; 10-28-2008 at 04:49 PM.
 
Old 10-29-2008, 01:18 PM   #5
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
hi guys,
i tried it all, but nothing worked. still the same problem...

I didn't mention that my default language pt_BR. For this output that was posted I executed LANG=en

Last edited by brgsousa; 10-29-2008 at 01:33 PM.
 
Old 10-29-2008, 02:28 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Try ...
# dpkg --configure -a
 
Old 10-29-2008, 03:23 PM   #7
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15

Code:
# LANG=en
# dpkg --configure -a
dpkg: dependency problems prevent configuration of wamerican:
 wamerican depends on dictionaries-common (>= 0.20); however:
  Package dictionaries-common is not installed.
dpkg: error processing wamerican (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of iamerican:
 iamerican depends on dictionaries-common (>= 0.20); however:
  Package dictionaries-common is not installed.
dpkg: error processing iamerican (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ispell:
 ispell depends on dictionaries-common (>= 0.20); however:
  Package dictionaries-common is not installed.
dpkg: error processing ispell (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ibrazilian:
 ibrazilian depends on dictionaries-common (>= 0.20); however:
  Package dictionaries-common is not installed.
 ibrazilian depends on ispell; however:
  Package ispell is not configured yet.
dpkg: error processing ibrazilian (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 wamerican
 iamerican
 ispell
 ibrazilian
 
Old 10-29-2008, 03:53 PM   #8
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
OK. You have an unusual problem. Usually such problems are related to Debian releases having been mixed at some point. I suspect that your problem is related to an attempted installation of OpenOffice.org

dictionaries-common has an interesting dependency list (at least in Sid). Observe...
Code:
debian64:~# apt-cache depends dictionaries-common
dictionaries-common
  Depends: perl-base
 |Depends: debconf
  Depends: <debconf-2.0>
    cdebconf
    debconf
  Depends: libtext-iconv-perl
  Suggests: ispell
  Suggests: emacsen-common
  Suggests: jed-extra
  Conflicts: iamerican
  Conflicts: ibrazilian
  Conflicts: ibritish
  Conflicts: ibulgarian
  Conflicts: icatalan
  Conflicts: iczech
  Conflicts: idanish
  Conflicts: idutch
  Conflicts: iesperanto
  Conflicts: ifaroese
  Conflicts: ifinnish
  Conflicts: ifinnish-large
  Conflicts: ifinnish-small
  Conflicts: ifrench
  Conflicts: ifrench-gut
  Conflicts: <igerman>
  Conflicts: ihungarian
  Conflicts: iitalian
  Conflicts: ingerman
  Conflicts: inorwegian
  Conflicts: ipolish
  Conflicts: iportuguese
  Conflicts: irussian
  Conflicts: ispanish
  Conflicts: ispell
  Conflicts: <ispell-ga>
  Conflicts: iswedish
  Conflicts: miscfiles
  Conflicts: <openoffice.org-updatedicts>
  Conflicts: wbritish
  Conflicts: wbulgarian
  Conflicts: wcatalan
  Conflicts: wdanish
  Conflicts: wdutch
  Conflicts: <wenglish>
  Conflicts: wfaroese
  Conflicts: wfinnish
  Conflicts: wfrench
  Conflicts: <wgerman>
  Conflicts: witalian
  Conflicts: wngerman
  Conflicts: wnorwegian
  Conflicts: wpolish
  Conflicts: wspanish
  Conflicts: wswedish
  Replaces: <openoffice.org-updatedicts>
    dictionaries-common
You mentioned that "someone else" left your sources with mixed Etch/Stable lines. I wonder what else they did in your sources.list that is no longer visible. The first thing I'd like to see is the output of ...
$ apt-cache policy openoffice.org

Assuming that doesn't raise any red flags, this is what I would try, but at this point we are really shooting in the dark. (The first command is simply to reinforce aptitude as the package manager of record. That's what you should be using exclusively.)

# aptitude keep-all
# aptitude update
# aptitude remove wamerican iamerican ispell ibrazilian
# aptitude purge wamerican iamerican ispell ibrazilian
# aptitude install dictionaries-common

...or you may need to use the even more powerful...
# dpkg -P wamerican iamerican ispell ibrazilian

If new conflicting apps arise, keep remove/purging them and retry.

Another tactic would be ...
# aptitude remove openoffice.org

... then reinstall it.

Last edited by rickh; 10-29-2008 at 03:55 PM.
 
Old 10-29-2008, 04:18 PM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Previous post took care of this...

removed redundant
 
Old 11-05-2008, 12:06 PM   #10
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
openoffice.org is not installed. Btw, there is no Window Manager like Gnome or KDE installed.
aptitude remove wamerican iamerican ispell ibrazilian gave me errors too:
Code:
# aptitude remove wamerican iamerican ispell ibrazilian
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  iamerican ibrazilian wamerican
0 packages upgraded, 0 newly installed, 3 to remove and 21 not upgraded.
Need to get 0B of archives. After unpacking 4371kB will be freed.
Writing extended state information... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "pt_BR:pt:pt_PT",
        LC_ALL = (unset),
        LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 113966 files and directories currently installed.)
Removing iamerican ...
/var/lib/dpkg/info/iamerican.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
dpkg: error processing iamerican (--remove):
 subprocess post-removal script returned error exit status 1
Removing ibrazilian ...
/var/lib/dpkg/info/ibrazilian.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
dpkg: error processing ibrazilian (--remove):
 subprocess post-removal script returned error exit status 1
Removing wamerican ...
/var/lib/dpkg/info/wamerican.postrm: line 6: /usr/sbin/remove-default-wordlist: No such file or directory
dpkg: error processing wamerican (--remove):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 iamerican
 ibrazilian
 wamerican
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
 
Old 11-05-2008, 12:40 PM   #11
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
...or you may need to use the even more powerful...
# dpkg -P wamerican iamerican ispell ibrazilian
...................
 
Old 11-05-2008, 06:09 PM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,616
Blog Entries: 1

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
# dpkg --purge --foce-all dictionaries-common
# apt-get install dictionaries-common

Seems to solve most issues for me. At least those issues not related to bad packages.

As far as sources.list, I tend to use dselect to update that when I have issues. apt-get update and friends don't seem to merge multiple sources by themselves. Especially when swapping between distro revisions. dselect generally cleans that up and grabs certain deps not otherwise gotten.

If it's a bad package / download, you might try removing the .deb from the archives and redownloading / installing.

rm /var/cache/apt/archives/dictionaries-common_0.70.10_all.deb

apt-get install dictionaries-common

HTH
 
Old 11-06-2008, 09:17 AM   #13
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
I want to remove all these packages: ispell dictionaries-common wamerican ibrazilian iamerican. But i am not sure if any other packages depends on these. How can I check it out?

Code:
# aptitude show ispell | grep State
State: not installed
# aptitude show dictionaries-common | grep State
State: not installed
# aptitude show ibrazilian | grep State
State: partially installed
# aptitude show iamerican | grep State
State: partially installed
# aptitude show wamerican | grep State
State: partially installed
# dpkg -P wamerican ibrazilian iamerican
(Reading database ... 113965 files and directories currently installed.)
Removing wamerican ...
/var/lib/dpkg/info/wamerican.postrm: line 6: /usr/sbin/remove-default-wordlist: No such file or directory
dpkg: error processing wamerican (--purge):
 subprocess post-removal script returned error exit status 1
Removing ibrazilian ...
/var/lib/dpkg/info/ibrazilian.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
dpkg: error processing ibrazilian (--purge):
 subprocess post-removal script returned error exit status 1
Removing iamerican ...
/var/lib/dpkg/info/iamerican.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
dpkg: error processing iamerican (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 wamerican
 ibrazilian
 iamerican
# dpkg -P --force-all  wamerican ibrazilian iamerican
(Reading database ... 113965 files and directories currently installed.)
Removing wamerican ...
/var/lib/dpkg/info/wamerican.postrm: line 6: /usr/sbin/remove-default-wordlist: No such file or directory
dpkg: error processing wamerican (--purge):
 subprocess post-removal script returned error exit status 1
Removing ibrazilian ...
/var/lib/dpkg/info/ibrazilian.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
dpkg: error processing ibrazilian (--purge):
 subprocess post-removal script returned error exit status 1
Removing iamerican ...
/var/lib/dpkg/info/iamerican.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
dpkg: error processing iamerican (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 wamerican
 ibrazilian
 iamerican
 
Old 11-10-2008, 01:03 PM   #14
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
SOLVED.
I don't know if what I did was the best way but it worked

I commented these lines:
Code:
/var/lib/dpkg/info/iamerican.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
/var/lib/dpkg/info/ibrazilian.postrm: line 6: /usr/sbin/remove-default-ispell: No such file or directory
/var/lib/dpkg/info/wamerican.postrm: line 6: /usr/sbin/remove-default-wordlist: No such file or directory
wamerican, iamerican and iamerican removal depends on ispell binaries. so I commented these binaries calls coz they weren't necessary since ispell wasn't installed.

thanks for your help
 
  


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
aptitude- list/grab package for another debian release aquaboot Debian 4 06-06-2008 07:30 PM
aptitude can't connect to repositories, Debian Etch Person_1873 Linux - Software 3 12-26-2007 05:33 AM
Debian 3.1 Aptitude - HELP arunkk Debian 5 01-22-2006 04:44 PM
Debian apps install with dselect,tasksel or aptitude always crash. SpItoS Debian 4 06-18-2004 08:36 AM
Debian aptitude - apt-get problem mikek147 Linux - Distributions 1 09-15-2002 08:11 AM

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

All times are GMT -5. The time now is 09:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration