I wanted to install a quite old package in my ubuntu computer using the .sh file I downloaded from their website. So, I tried typing in terminal:
and I got:
/bin/sh: 0: Can’t open ./package_name.sh
Briliant! Since you are here, you are probably looking for a fix.
The problem stems from the fact that Ubuntu uses dash as the default shell and your script is written with another shell in mind. The most usual is bash (sh).
So type in a terminal window:
sudo bash ./package_name.sh
This will force ubuntu to run the script using bash.
In a previous post, I shared some terminal commands in order to install firefox 4 in ubuntu.
The problem is that when the stable version was out and I tried to update my current installation the version remained “pre xxx” and the title bar said “Minefield”.
So, I figured out how to get rid of it and install the latest and stable version…
Download the latest stable version from the official downlad page:
in tar.bz2 format.
Open a terminal window and go to the downloaded file directory.
for example: cd ~/downloads/
Then extract the archive: tar xjf firefox-4.0.tar.bz2
Remove the previous firefox installation:
sudo rm -r /opt/firefox
(don’t worry if this step fails)
Move the extracted firefox folder:
sudo mv firefox /opt/firefox
“Backup” the old Firefox launcher:
sudo mv /usr/bin/firefox /usr/bin/firefox-old
Create a symbolic link pointing to the new firefox installation:
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
The icons/shortcuts usually don’t need update, but if they do point them to “firefox”.
Open firefox and go to the “About” selection under the “Help” menu, to check the running version.
I have just installed the new firefox 4 on ubuntu and here is a quick guide to do so.
Open a new terminal window and copy-paste the following:}
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update (this might take some time)
sudo apt-get install firefox-4.0
And you are ready to use firefox 4.
In my computer, I had to update manually some shortcuts, but this is not needed normally.
Bonus: You can test your new browser’s performance with Acid3. It scores really high, but to be honest the main reason I keep using firefox is the plugins.