以下是一个升级脚本,我也不知道怎么来的,看看,可能有帮助:
#!/bin/sh
echo "Updating repositories list
"
sudo apt-get update
echo "
Making sure libstdc++5 and the old Firefox are installed
"
sudo apt-get -y install firefox libstdc++5
echo "
Backing up old Firefox preferences
"
cp -R ~/.mozilla ~/.mozilla_backup
echo "
Changing to home directory
"
cd
echo "
Downloading Firefox from the Mozilla site
"
wget -c
http://ftp-mozilla.netscape.com/pub/moz ... 0.3.tar.gz
echo "
Unzipping the .tar.gz file
"
sudo tar -C /opt -x -z -v -f firefox-1.5.0.3.tar.gz
echo "
Removing the unzipped .tar.gz
"
rm firefox-1.5.0.3.tar.gz
echo "
Linking plugins
"
cd /opt/firefox/plugins/
sudo ln -s /usr/lib/mozilla-firefox/plugins/* .
echo "
Linking launcher to new Firefox
"
sudo dpkg-divert --divert /usr/bin/firefox.ubuntu --rename /usr/bin/firefox
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
sudo dpkg-divert --divert /usr/bin/mozilla-firefox.ubuntu --rename /usr/bin/mozilla-firefox
sudo ln -s /opt/firefox/firefox /usr/bin/mozilla-firefox
echo "
The new Firefox is installed."
如果还有问题,看我的博客:
http://blog.sina.com.cn/u/1217515047
有关这个问题的文章地址为:
http://blog.sina.com.cn/u/4891ce27010003ka(附效果图)