都是dash惹的祸

Posted in Bsd, Linux, MacosX, Unix, bash, dash, shell by Kafeifei on the 03月 6th, 2007

困扰我一个春天的问题!
Ubuntu
某天下了一个nerolinux,然后安装
安装失败,提示某脚本出错,看上去是语法错误
出错嘛就删除了哦
结果删除失败,提示同样的错误
导致使用apt-get任何时候都提示这个错误
几经搞整以后造成“新立得”无法正常运行
准备好光盘准备重装了
同时继续寻找希望,搜编google没有正解
其中错误包括:

dpkg (子进程):无法执行新的 post-removal script: No such file or directory
dpkg: 作下列清理工作时发生错误:
子进程·post-removal script·返回了错误号·2
在处理时有错误发生:
-------------------------------------
软件包nerolinux 需要重新安装,但是我无法找到相应的安装文件。

仔细看了一下错误文件
/var/lib/dpkg/info/nerolinux.xxx
打开一看,语法好像不太寻常,我看到了 function 字样
再看头部 #!/bin/sh
改为 #!/bin/bash 后解决问题
ls -l /bin/sh 这个东西是链接到 dash 而不是 bash的
自从ubuntu 6.10 开始就是这样,很让人头痛,很多脚本运行有问题
见过有人为了装一个软件先把 bash->sh 装完了再 dash->sh 回去

妈B的,不改回去了,也没见哪个脚本运行不正常的!
最后,不知道这个dash是啥东东,本来想大骂一顿的,不过…… 还是算了……

» Filed Under Bsd, Linux, MacosX, Unix, bash, dash, shell

Comments

6 Responses to “都是dash惹的祸”

  1. fmfsaisai on 03月 6th, 2007 10:24 pm

    标题党。。。。
    这篇写的有意思

  2. Dash on 03月 7th, 2007 10:38 am

  3. xdanger on 03月 12th, 2007 3:34 pm

    Debian bash ...

  4. 阿辛 on 03月 13th, 2007 11:09 am

    这个强悍了,看的我想来留个名。

  5. Wahoo on 10月 7th, 2007 8:08 am

    Thank you for sharing!

  6. site on 11月 5th, 2007 2:36 am

    greatings...

    wonderful post...

Leave a Reply