LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I canīt install because I donīt have permission!.... (https://www.linuxquestions.org/questions/linux-newbie-8/i-can%B4t-install-because-i-don%B4t-have-permission-755716/)

tekipepi 09-16-2009 03:08 PM

I canīt install because I donīt have permission!....
 
Iīm trying to install a program in my laptop.
Im using Linux Debian.
Everytime I try to install it it says itīs looking for permission and īAre you Root?ī

How do I get permission for me to install my programs? Please help...

EricTRA 09-16-2009 03:15 PM

Hello and Welcome to LinuxQuestions,

What program are you trying to install? How are you installing it? Using apt-get, synaptic, from source? Are you logged in as root as the install asks? Or as a normal user. Have you tried using
Code:

sudo <yourinstallationcommand>
Kind regards,

Eric

repo 09-16-2009 03:16 PM

Welcome to LQ
What are you trying to install?
Use su to become root.
In a terminal type
Code:

su
give the root password


tekipepi 09-16-2009 03:21 PM

Im trying to install a program named gaych.
Itīs a tar.bz2 type of document...

Problem is I canīt install it because it says permission not accepted then are you root.
This is what comes out
Quote:

/home/user/My Documents> apt-get install
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Iīm running on debian and I just got this laptop really recently. I donīt really know how to run it yet...

EricTRA 09-16-2009 03:25 PM

What is the command you used to install it? Did you unpack it in a terminal or in the file manager?

Please post the command you used and the result.

Kind regards,

Eric

tekipepi 09-16-2009 03:27 PM

Quote:

Originally Posted by EricTRA (Post 3685753)
Hello and Welcome to LinuxQuestions,

What program are you trying to install? How are you installing it? Using apt-get, synaptic, from source? Are you logged in as root as the install asks? Or as a normal user. Have you tried using
Code:

sudo <yourinstallationcommand>
Kind regards,

Eric

Im trying to install it using apt-get. Iīm only a normal user cause I donīt know how to log in as root...

tekipepi 09-16-2009 03:28 PM

Quote:

Originally Posted by EricTRA (Post 3685770)
What is the command you used to install it? Did you unpack it in a terminal or in the file manager?

Please post the command you used and the result.

Kind regards,

Eric

Im unpacked it in the file manager.
Iīm trying apt-get to install

repo 09-16-2009 03:30 PM

To install tar.bz2 file:
replace foo with the name from the file

open a terminal
type
Code:

bunzip2 foo.tar.bz2
tar -xvf foo.tar
cd foo

read the readme files
in general
Code:

./configure
make
su
give the root password
make install


EricTRA 09-16-2009 03:32 PM

Quote:

Originally Posted by EricTRA (Post 3685770)
What is the command you used to install it? Did you unpack it in a terminal or in the file manager?

Please post the command you used and the result.

Kind regards,

Eric

Oops, missed some info you posted.

apt-get is the command you use to install a package from the repository. Since you stated you have the tar.bz2 file, this is not the way to install it.

You'll first have to unzip the package, probably compile it and make + make install it.
Code:

tar xzvf <thefilename.tar.gz2>
try that command in a console first and post the output. If no errors are encountered you should have a directory with the name of the package, I assume. If that is the case, check if you have a file named configure in there.

Kind regards,

Eric

tekipepi 09-16-2009 03:36 PM

Eric This is what I got

Quote:

> tar xzvf <gyach-enhanced_pyvoice-binary-1.0.7-i586.tar.bz2>
bash: syntax error near unexpected token `newline'

tekipepi 09-16-2009 03:42 PM

@repo
What do U mean I change the file name with foo.tar.bz2?

This is the filename of the thing I want to unzip
gyach-enhanced_pyvoice-binary-1.0.7-i586.tar.bz2

How do i do what youīre trying to make me do?

EricTRA 09-16-2009 03:43 PM

Sorry, my mistake. Use the commands as specified by repo since it's a bz2 compressed file, not a gz file. My apologies, getting time to get horizontal and give the brain some rest I guess.

The commands as posted by repo should work though.

Kind regards,

Eric

repo 09-16-2009 03:43 PM

then use
gyach-enhanced_pyvoice-binary-1.0.7-i586.tar.bz2
instead of foo.tar.bz2

tekipepi 09-16-2009 03:47 PM

it says thereīs no such file in the directory.
Do you think it has something to with me saving the zipped file in file manager?

repo 09-16-2009 03:49 PM

in the terminal, you first need to cd to where the file is located.
If the file is on the desktop
Code:

cd Desktop


All times are GMT -5. The time now is 11:57 AM.