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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-28-2008, 09:17 AM
|
#1
|
Member
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185
Rep:
|
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)?
|
|
|
10-28-2008, 09:54 AM
|
#2
|
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:
|
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
|
|
|
10-28-2008, 12:02 PM
|
#3
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep: 
|
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.
|
|
|
10-28-2008, 03:47 PM
|
#4
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
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 03:49 PM.
|
|
|
10-29-2008, 12:18 PM
|
#5
|
Member
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185
Original Poster
Rep:
|
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 12:33 PM.
|
|
|
10-29-2008, 01:28 PM
|
#6
|
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:
|
Try ...
# dpkg --configure -a
|
|
|
10-29-2008, 02:23 PM
|
#7
|
Member
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185
Original Poster
Rep:
|
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
|
|
|
10-29-2008, 02:53 PM
|
#8
|
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:
|
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 02:55 PM.
|
|
|
10-29-2008, 03:18 PM
|
#9
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
Previous post took care of this...
removed redundant
|
|
|
11-05-2008, 11:06 AM
|
#10
|
Member
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185
Original Poster
Rep:
|
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
|
|
|
11-05-2008, 11:40 AM
|
#11
|
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:
|
Quote:
...or you may need to use the even more powerful...
# dpkg -P wamerican iamerican ispell ibrazilian
|
...................
|
|
|
11-05-2008, 05:09 PM
|
#12
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
# 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
|
|
|
11-06-2008, 08:17 AM
|
#13
|
Member
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185
Original Poster
Rep:
|
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
|
|
|
11-10-2008, 12:03 PM
|
#14
|
Member
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185
Original Poster
Rep:
|
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 
|
|
|
All times are GMT -5. The time now is 01:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|