LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2020, 10:43 PM   #1
meedo7
LQ Newbie
 
Registered: May 2020
Posts: 1

Rep: Reputation: Disabled
Unhappy I cannot seem to download files. Terminal always says file not found even though it exists


Hi all, I'm a total beginner with linux distros and I booted Zenwalk from a flash drive today and have tried downloading and installing the latest version of firefox. I managed to download the .txz file but whenever it comes to installing it from the terminal or pkgtool, it says "Cannot install mozilla-firefox-66.0-x86_64-190319.txz: file not found"
This happens if and when I use the "installpkg" command or even the "#upgradepkg -install-new...."

Anybody know a fix?
Thank you
 
Old 05-11-2020, 11:38 PM   #2
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
Quote:
Originally Posted by meedo7 View Post
I managed to download the .txz file
But to which directory?
I long forgot what the standard location was in firefox, but in my system all downloads go to some "tmp" directory, not even under my home. I configured that a long time ago.
Under "preferences you can see or change that location, or set it to "ask" so that you will asked every time where to download it to.
It is the "browser.download.dir" in your prefs.js file (in your firefox profile).
 
Old 05-12-2020, 01:59 AM   #3
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 527

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by meedo7 View Post
Hi all, I'm a total beginner with linux distros and I booted Zenwalk from a flash drive today and have tried downloading and installing the latest version of firefox. I managed to download the .txz file but whenever it comes to installing it from the terminal or pkgtool, it says "Cannot install mozilla-firefox-66.0-x86_64-190319.txz: file not found"
This happens if and when I use the "installpkg" command or even the "#upgradepkg -install-new...."

Anybody know a fix?
Thank you
1. To find out where it was downloaded, launch the command in a console
and from your home directory:
Code:
find * -type f -name mozilla-firefox-66.0-x86_64-190319.txz
2. Copy the path displayed and, as root, launch the 'installpkg' command
by feeding it the path found above
Code:
# installpkg path_found_above/mozilla-firefox-66.0-x86_64-190319.txz
 
Old 05-12-2020, 04:43 AM   #4
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
Quote:
Originally Posted by vonbiber View Post
from your home directory:
It doesn't have to be in/under your home dir, /tmp and /var/tmp are possible too.
 
Old 05-12-2020, 08:40 AM   #5
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
If you use Firefox files will be downloaded to ~/Downloads so do
Code:
cd ~/Downloads
and then run installpkg.
 
Old 05-12-2020, 09:25 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0 on Lenovo Thinkpad W520
Posts: 10,684

Rep: Reputation: Disabled
As root, type:
Code:
updatedb
I twill take some time to complete. Then to know where is the file you downloaded, type:
Code:
locate mozilla-firefox-66.0-x86_64-190319.txz
Then to learn how to find files, type as regular user:
Code:
info finding files
And to know how to use info, type:
Code:
info info
Or for a shorter introduction
Code:
man info
And to get information about the man application, type one of these commands:
Code:
man man
info man

Last edited by Didier Spaier; 05-12-2020 at 09:34 AM.
 
Old 05-12-2020, 02:53 PM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
Quote:
Originally Posted by Didier Spaier View Post
As root, type:
Code:
updatedb
I twill take some time to complete. Then to know where is the file you downloaded, type:
Code:
locate mozilla-firefox-66.0-x86_64-190319.txz
Then to learn how to find files, type as regular user:
Although updating the locate database never is bad, for this one case a simple 'find' command would be faster, as already proposed in this thread.
 
Old 05-12-2020, 03:41 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638
Quote:
Originally Posted by ehartman View Post
Although updating the locate database never is bad, for this one case a simple 'find' command would be faster, as already proposed in this thread.
...if it's located within the location find is set to search (which, the file is likely in the home directory). However, if the file is outside of the location specified (or they're searching the whole filesystem), it might be faster to update the locate database and use that.

I also know that OP is using zenwalk, and I don't know if it has a cron entry to run updatedb like Slackware does, but if it does and OP kept the computer turned on and the database has already been updated (since it runs by default at 4am), locate would be extremely fast.
 
Old 05-12-2020, 06:18 PM   #9
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by bassmadrigal View Post
...if it's located within the location find is set to search (which, the file is likely in the home directory). However, if the file is outside of the location specified (or they're searching the whole filesystem), it might be faster to update the locate database and use that.
locate does not search in the whole filesystem neither, see /etc/updatedb.conf.
 
1 members found this post helpful.
Old 05-12-2020, 06:37 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638Reputation: 6638
Quote:
Originally Posted by average_user View Post
locate does not search in the whole filesystem neither, see /etc/updatedb.conf.
I never realized it didn't search /tmp/ by default, but I guess that makes sense. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Not able to execute file, though file exists abhisheks77 Linux - Newbie 2 04-30-2014 10:54 PM
Brothers printer does not print even though it is recognized and says it is printing mcguire@1943 Linux - Hardware 13 04-26-2014 10:32 PM
[SOLVED] Apache slow at start and not running even though it says it's started!!! YassBoss Linux - Server 6 09-06-2009 12:10 PM
vim always says swap file already exists for a particular file leftty Linux - Software 1 09-13-2008 02:53 PM
[./configure] "libtool does not seem to be installed"... Even though it is. ayteebee Linux - Software 5 10-05-2006 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration