pkg_add -r not working

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

pkg_add -r not working

Postby harishankar » 05 May 2010, 06:53

I have installed FreeBSD 8.0-Release and the following error is what I get when I try to install a package through pkg_add:

Code: Select all
harishankar# pkg_add -r firefox
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.0-release/Latest/firefox.tbz: No route to host
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.0-release/Latest/firefox.tbz' by URL


I am able to connect to the internet and otherwise browse the web, but pkg_add always has trouble resolving the server. Is there any further configuration required? The handbook says something about setting the PACKAGESITE environment variable, but surely it should be able to fetch from the default server?
User avatar
harishankar
Member
 
Posts: 128
Joined: 29 Jun 2009, 08:00

Postby sverreh » 05 May 2010, 08:19

There probably is no package called just firefox. Try this command from /usr/ports and see what you get:

Code: Select all
 make search name=firefox display=name,path,info keylim=1


Then pick the one you want from the list.

Or, you can use your browser and go to ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.0-release/Latest/ and see which packages are available for firefox.
User avatar
sverreh
Member
 
Posts: 124
Joined: 16 Nov 2008, 20:09
Location: Norway

Postby riku » 05 May 2010, 08:26

Code: Select all
pkg_add -rv firefox3
User avatar
riku
Junior Member
 
Posts: 14
Joined: 06 Apr 2010, 09:05

Postby graudeejs » 05 May 2010, 08:34

harishankar wrote:
Code: Select all
harishankar# pkg_add -r firefox
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.0-release/Latest/firefox.tbz: [red]No route to host[/red]
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.0-release/Latest/firefox.tbz' by URL



your network is not configured properly
you need to add
Code: Select all
defaultrouter="123.123.132.123"

to your [FILE]/etc/rc.conf[/FILE]
where 123.123.123.123 is your default router address

if this doesn't fix the problem, the you probably have more network related problems
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby harishankar » 05 May 2010, 09:12

Hi, everybody, I found the issue.

I (probably) had to set the FTP to passive mode FTP_PASSIVE_MODE=YES. Also I was having intermittent trouble with my internet connection earlier so I'm not sure which was causing the issue.

I installed he firefox35 package fine and it works now. Adding a whole lot of apps now as I speak. :D
User avatar
harishankar
Member
 
Posts: 128
Joined: 29 Jun 2009, 08:00


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: free-and-bsd, grehan@, strandbal and 2 guests