<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>我的备忘录 &#187; dash</title>
	<atom:link href="http://www.nimab.org/tags/dash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nimab.org</link>
	<description>穷困潦倒</description>
	<lastBuildDate>Mon, 29 Aug 2011 02:53:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>都是dash惹的祸</title>
		<link>http://www.nimab.org/2007/03/06/18.html</link>
		<comments>http://www.nimab.org/2007/03/06/18.html#comments</comments>
		<pubDate>Tue, 06 Mar 2007 10:10:04 +0000</pubDate>
		<dc:creator>Kafeifei</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Bsd]]></category>
		<category><![CDATA[dash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacosX]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.nimab.org/2007/03/06/18.html</guid>
		<description><![CDATA[困扰我一个春天的问题！ 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是啥东东，本来想大骂一顿的，不过…… [...]]]></description>
			<content:encoded><![CDATA[<p>困扰我一个春天的问题！<br />
Ubuntu<br />
某天下了一个nerolinux，然后安装<br />
安装失败，提示某脚本出错，看上去是语法错误<br />
出错嘛就删除了哦<br />
结果删除失败，提示同样的错误<br />
导致使用apt-get任何时候都提示这个错误<br />
几经搞整以后造成“新立得”无法正常运行<br />
准备好光盘准备重装了<br />
同时继续寻找希望，搜编google没有正解<br />
其中错误包括：</p>
<blockquote><p>
dpkg (子进程)：无法执行新的 post-removal script: No such file or directory<br />
dpkg: 作下列清理工作时发生错误:<br />
子进程·post-removal script·返回了错误号·2<br />
在处理时有错误发生：<br />
-------------------------------------<br />
软件包nerolinux 需要重新安装，但是我无法找到相应的安装文件。
</p></blockquote>
<p>仔细看了一下错误文件<br />
/var/lib/dpkg/info/nerolinux.xxx<br />
打开一看，语法好像不太寻常，我看到了 function 字样<br />
再看头部 #!/bin/sh<br />
改为 #!/bin/bash 后解决问题<br />
ls -l /bin/sh 这个东西是链接到 dash 而不是 bash的<br />
自从ubuntu 6.10 开始就是这样，很让人头痛，很多脚本运行有问题<br />
见过有人为了装一个软件先把 bash->sh 装完了再 dash->sh 回去</p>
<p>妈B的，不改回去了，也没见哪个脚本运行不正常的！<br />
最后，不知道这个dash是啥东东，本来想大骂一顿的，不过…… 还是算了……</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nimab.org/2007/03/06/18.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

