Cann't install any pakages emacs

Asked by Arun K Rajeevan

my computer not connect internet,i can't install emacs for ubuntu 7.10.Help me!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu emacs22 Edit question
Assignee:
No assignee Edit question
Solved by:
Koen
Solved:
Last query:
Last reply:
Revision history for this message
Best Koen (koen-beek) said :
#1

Hi Arun,

  there seems to be a problem with the postrm scripts from several packages

   can you include that output of

   cat /var/lib/dpkg/info/cvs-doc.postrm /var/lib/dpkg/info/emacs-auctex.postrm /var/lib/dpkg/info/emacs-info.postrm /var/lib/dpkg/info/wwwoffle.postrm /var/lib/dpkg/info/xmorph.postrm

Revision history for this message
Koen (koen-beek) said :
#2

Hi Arun,

  there seems to be a problem with the postrm scripts from several packages

   can you include that output of

   cat /var/lib/dpkg/info/cvs-doc.postrm /var/lib/dpkg/info/emacs-auctex.postrm /var/lib/dpkg/info/emacs-info.postrm /var/lib/dpkg/info/wwwoffle.postrm /var/lib/dpkg/info/xmorph.postrm

Revision history for this message
Arun K Rajeevan (kra3) said :
#3

 cat /var/lib/dpkg/info/cvs-doc.postrm /var/lib/dpkg/info/emacs-auctex.postrm /var/lib/dpkg/info/emacs-info.postrm /var/lib/dpkg/info/wwwoffle.postrm /var/lib/dpkg/info/xmorph.postrm

I canged all of them to *.old

now problem solved.
If you want to know the includings

===============================================================

#!/bin/sh

 ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/cvs.info.gz)
 NUM_ARGS=${#ALL_ARGS[@]}
 if test -x sbin/install-info ; then
    if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then
  sbin/install-info --quiet --delete "${ALL_ARGS[@]}"
    fi ;
 fi ;
 ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/cvsclient.info.gz)
 NUM_ARGS=${#ALL_ARGS[@]}
 if test -x sbin/install-info ; then
    if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then
  sbin/install-info --quiet --delete "${ALL_ARGS[@]}"
    fi ;
 fi ;#!/bin/sh
for f in auctex.info preview-latex.info; do

 ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/$f.gz)
 NUM_ARGS=${#ALL_ARGS[@]}
 if test -x sbin/install-info ; then
    if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then
  sbin/install-info --quiet --delete "${ALL_ARGS[@]}"
    fi ;
 fi ;done#!/bin/sh
for f in ada-mode autotype ccmode cl dired-x ebrowse ediff efaq emacs eshell eudc forms gnus idlwave info message mh-e pcl-cvs reftex sc speedbar vip viper widget woman; do

 ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/$f.gz)
 NUM_ARGS=${#ALL_ARGS[@]}
 if test -x sbin/install-info ; then
    if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then
  sbin/install-info --quiet --delete "${ALL_ARGS[@]}"
    fi ;
 fi ;done#!/bin/sh

 test -n "$FIRST_ARG" || FIRST_ARG=$1
 if test "$FIRST_ARG" -ge 1 ; then
    test -f /etc/sysconfig/services && . /etc/sysconfig/services
           if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then
              for service in wwwoffle ; do
                 /etc/init.d/$service try-restart > /dev/null || :
              done
           fi
        fi

 sbin/insserv etc/init.d#!/bin/sh
/sbin/ldconfig

 ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/xmorph.info.gz)
 NUM_ARGS=${#ALL_ARGS[@]}
 if test -x sbin/install-info ; then
    if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then
  sbin/install-info --quiet --delete "${ALL_ARGS[@]}"
    fi ;
 fi ;

============================================================

I am also like to here from you about the problem.

I also edited one more file.I didn't remeber it.
In which there are discription of all packages I alredy insstalled.
Inwhich these 5 ar marked as conflicted pakages.
I removed those sections.
Becouse I am sure that I removed them all by dpkg --purge <pakage>

Anyway Thankyou verymuch.

Revision history for this message
Koen (koen-beek) said :
#4

Hi Arun,

  I think the problem is that the scripts from these packages expect /bin/sh to be bash compatible
  in ubuntu /bin/sh however links to dash which has some difference behavior to bash

  the first line in these postrm script which are like 'ALL_ARGS=(--info-dir=/usr/share/info /usr/share/info/$f.gz)' seem to fail on dash but work ok on bash

  you can see a (very long) discussion about similar issues in this ubuntu bug https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463

  basically if a script really needs bash functionality it should ask for it and not assume that /bin/sh = bash as normally it should only be POSIX compliant, however a lot of other unix distributions use(d) bash for sh

    Koen