cd6c [Solved] pkg_add -r not working - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

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

Reply
 
Thread Tools Display Modes
  #1  
Old May 5th, 2010, 07:53
harishankar's Avatar
harishankar harishankar is offline
Member
 
Join Date: Jun 2009
Posts: 128
Thanks: 6
Thanked 2 Times in 2 Posts
Default pkg_add -r not working

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:
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?
Reply With Quote
  #2  
Old May 5th, 2010, 09:19
sverreh's Avatar
sverreh sverreh is offline
Member
 
Join Date: Nov 2008
Location: Norway
Posts: 124
Thanks: 25
Thanked 14 Times in 13 Posts
Default

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

Code:
 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/po...elease/Latest/ and see which packages are available for firefox.

Last edited by sverreh; May 5th, 2010 at 09:27. Reason: added ftp info.
Reply With Quote
  #3  
Old May 5th, 2010, 09:26
riku's Avatar
riku riku is offline
Junior Member
 
Join Date: Apr 2010
Posts: 14
Thanks: 2
Thanked 1 Time in 1 Post
Default

Code:
pkg_add -rv firefox3
__________________
http://twitter.com/freebsd_tips
Reply With Quote
  #4  
Old May 5th, 2010, 09:34
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,530
Thanks: 424
Thanked 613 Times in 479 Posts
Default

Quote:
Originally Posted by harishankar View Post
Code:
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
your network is not configured properly
you need to add
Code:
defaultrouter="123.123.132.123"
to your /etc/rc.conf
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
Reply With Quote
  #5  
Old May 5th, 2010, 10:12
harishankar's Avatar
harishankar harishankar is offline
Member
 
Join Date: Jun 2009
Posts: 128
Thanks: 6
Thanked 2 Times in 2 Posts
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] pkg_add -r not working inside brand-new jail w7tek Installation and Maintenance of FreeBSD Ports or Packages 3 March 4th, 2010 02:16
Center speaker not working - was working last install??? caesius Multimedia 13 February 9th, 2010 11:15
pkg_add -r fails z662 Firewalls 27 January 14th, 2010 14:45
[Solved] pkg_add not working dpalme Installation and Maintenance of FreeBSD Ports or Packages 2 November 7th, 2009 03:20
pkg_add config? FreeBIE Installation and Maintenance of FreeBSD Ports or Packages 4 April 7th, 2009 11:51


All times are GMT +1. The time now is 10:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0