← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #77252]: how to install .sh files and .bin files and how to add dwnloaded packages to synaptic packet manager and how to install the added packages?

 

Question #77252 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/77252

    Status: Open => Answered

actionparsnip proposed the following answer:
bismay@bismay:~/games/supertuxkart-0.5-linuxi486$ chmod +x ./install.sh
chmod: cannot access `./install.sh': No such file or directory

Your pwd is not the same as the file you are trying to modify. You can't
just run a command on a file if the file is not there.

E.g. If you have the file on your desktop (path = ~/desktop) and the location the terminal is in is ~ and you run:
chmod +x ./install.sh
it will fail, as the file is not in ~. You can either run:
chmod +x ~/Desktop/install.sh
or
cd Desktop; chmod +x ./install.sh

This may be different for your system as the file may not be on the
desktop. This is just an example to highlight paths and directorys.

You can show the location of the prompt by running

pwd

you can then use the command:

cd

to enter directorys (as I showed earlier with: cd Desktop), and:

cd ..

(notice the space) to move up a directory. This is synonymouse with
command prompt in Windows.

Now to clear the other errors you can run:

sudo apt-get --purge autoremove

which will remove this bit:

The following packages were automatically installed and are no longer required:
<packages here>

If you want to use apt-get then you CANNOT have any other package app
open (like synaptic or updates). These will lock the packages as only
ONE app is allowed to access the packages at any one time. Close the
apps and try the command again. It will work.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.