LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Debian - Aptitude - (https://www.linuxquestions.org/questions/linux-software-2/debian-aptitude-679546/)

brgsousa 10-28-2008 09:17 AM

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)?

rickh 10-28-2008 09:54 AM

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

brianL 10-28-2008 12:02 PM

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.

farslayer 10-28-2008 03:47 PM

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.

brgsousa 10-29-2008 12:18 PM

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

rickh 10-29-2008 01:28 PM

Try ...
# dpkg --configure -a

brgsousa 10-29-2008 02:23 PM

:(
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


rickh 10-29-2008 02:53 PM

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.

farslayer 10-29-2008 03:18 PM

Previous post took care of this...

removed redundant

brgsousa 11-05-2008 11:06 AM

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


rickh 11-05-2008 11:40 AM

Quote:

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

Shadow_7 11-05-2008 05:09 PM

# 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

brgsousa 11-06-2008 08:17 AM

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


brgsousa 11-10-2008 12:03 PM

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 11:49 PM.