LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help Me!! Failed to install file! (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-failed-to-install-file-4175601009/)

JStap 03-03-2017 12:31 PM

Help Me!! Failed to install file!
 
I just got a AlienWare steam machine and im trying to download google chrome and adobe flash player from the iceweasel browser. Whenever I try to download somthing I keep getting a message that says, "A package could not be found that allows the action to complete.More information is available in the detailed report."

erik2282 03-03-2017 12:40 PM

Well you wont need Adobe flash player for Chrome, as it uses it's own flash player called Pepper Flash.

Does it not ask you where you want to save the .deb file?

Once you get it downloaded:

Im assuming you're using Debian since you mention Iceweasel. Go to https://www.google.com/chrome/ download the deb file. Then in your terminal, cd to your Downloads or wherever you saved it and do:
Code:

root@myserver:/home/erik/Downloads# dpkg -i google-chrome-stable_current_amd64.deb
if it complains about dependencies, then do:

Code:

root@myserver:/home/erik/Downloads# apt-get install -f

JStap 03-03-2017 12:49 PM

Thanks erik I did what you told me and in the termial it tells me No such file or directory

erik2282 03-03-2017 01:01 PM

ok can you show what you did?
were you able to download the file?
is it now asking you where to save the file?

Go back to your terminal and do the following:

Code:

erik@myserver:~$ cd /home/PutYourUserNameHere/Downloads
erik@myserver:~/Downloads$ ls

Is the deb file in there?

JStap 03-03-2017 01:11 PM

Ok it lets me download the file then I save it to my downloads then when i follow what you said it keeps saying, "No such file or directory". It did the same thing for cd /home/Jeff/Downloads.

erik2282 03-03-2017 01:27 PM

as i said, can you please show what you did. Copy the commands and the output from the terminal and paste it into your next post below.

JStap 03-03-2017 01:32 PM

This is what I did.

desktop@steamos:~$ /home/Jeff/Downloads# dpkg -i google-chrome-stable_current_amd64.deb

bash: /home/Jeff/Downloads#: No such file or directory

erik2282 03-03-2017 01:55 PM

Code:

desktop@steamos:~$
After the prompt you cannot do: /home/Jeff/Downloads# dpkg -i google-chrome-stable_current_amd64.deb
After the prompt there needs to be a command first (dpkg -i) in this case, and has be run as root (promt ending with #) not your user account (prompt ending with $)

Do this
Code:

desktop@steamos:~$ whoami
Hit enter, it will output your username. If the username is desktop then you can use that in your path to where the deb is.

at your prompt do this:

Code:

desktop@steamos:~$ su -
Hit Enter

Its going to ask you for your root password, it will look like this

Code:

desktop@steamos$ su -
Password:

Hit Enter

Then it will look something like this:
Code:

root@steamos:~#
The # at the end of the prompt means you are working as the root user.

then do
Code:

root@steamos:~# cd /home/yourusernamehere/Downloads
root@steamos:/home/yourusername/Downloads# ls

after issuing the ls command you should see the google deb file in there.

Then do:
Code:

root@steamos:/home/yourusername/Downloads# dpkg -i google-chrome-stable_current_amd64.deb

JStap 03-03-2017 02:07 PM

Im running into another problem

desktop@steamos:~$ whoami
desktop
desktop@steamos:~$ su -
Password:
su: Authentication failure
desktop@steamos:~$

szboardstretcher 03-03-2017 02:11 PM

If it is debian based then you would want:

Code:

sudo su -

JStap 03-03-2017 02:19 PM

Well

desktop@steamos:~$ whoami
desktop
desktop@steamos:~$ sudo su -
[sudo] password for desktop:
root@steamos:~# cd /home/Jeff/Downloads
-su: cd: /home/Jeff/Downloads: No such file or directory
root@steamos:~# /home/Jeff/Downloads# ls
-su: /home/Jeff/Downloads#: No such file or directory
root@steamos:~#

szboardstretcher 03-03-2017 02:25 PM

I don't think you are reading the replies to your questions very carefully. Read post #8 and read it carefully.

JStap 03-03-2017 02:33 PM

I read over it again and Im not sure what I did wrong.

Will I have to do this for every download because I'm having the same problem with everything I try to download.

erik2282 03-03-2017 02:35 PM

Quote:

Originally Posted by JStap (Post 5678706)
Well

desktop@steamos:~$ whoami
desktop
desktop@steamos:~$ sudo su -
[sudo] password for desktop:
root@steamos:~# cd /home/Jeff/Downloads
-su: cd: /home/Jeff/Downloads: No such file or directory
root@steamos:~# /home/Jeff/Downloads# ls
-su: /home/Jeff/Downloads#: No such file or directory
root@steamos:~#

The output from whoami says your user account is called "desktop" not "Jeff". You need use:

Code:

root@steamos:~# cd /home/desktop/Downloads
By the way, using desktop as a username can get confusing.

JStap 03-03-2017 02:52 PM

It worked!! Thank you so much.


All times are GMT -5. The time now is 12:07 AM.