This morning I'm trying to install RoR on my Ubuntu 10.04 and I followed some tutorial do some cmds like:
apt-get update apt-get upgrade
and then , I can't not install any software anymore.
when I type
apt-get -f install
Preparing to replace bridge-utils 1.4-5ubuntu2 (using .../bridge-utils_1.5-2ubuntu1.1_i386.deb) ... /var/lib/dpkg/tmp.ci/preinst: 6: dpkg-maintscript-helper: not found dpkg: error processing /var/cache/apt/archives/bridge-utils_1.5-2ubuntu1.1_i386.deb (--unpack): subprocess new pre-installation script returned error exit status 127 E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get install csh
I don't know what should I do , I google whole day all the solutions don't work.
Like the following:
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old //现将info文件夹更名
sudo mkdir /var/lib/dpkg/info //再新建一个新的info文件夹
sudo apt-get update,
apt-get -f install //不用解释了吧
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old //执行完上一步操作后会在新的info文件夹下生成一些文件，现将这些文件全部移到info_old文件夹下
sudo rm -rf /var/lib/dpkg/info //把自己新建的info文件夹删掉
sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info //把以前的info文件夹重新改回名字