*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just installed FreeBSD, and it ended up being a minimal command line system only. Its not all bad, kind of gave me a crash course in BSD. I managed to get X and KDE installed. However, pretty much anything else using the command
Code:
pkg_add -r <package_name>
doesn't work.
It points to the correct ftp site, so I go there in my browser, and the files are all there, but it doesn't see them or download them. Obviously, some things I have been able to install "manually", but programs such as pidgin, with a million and a half dependencies, would take me a lifetime to sort out.
I guess the more technical explanation is: the program is looking for the package "pidgin.tbz" in ftp://site/8.0/latest/, and the file is there, but it cannot find it.
Do I need to update the ports list? Change something somewhere? My Linux knowledge is what got me this far but from here I am unsure what to do.
Silly question, but the ftp site is an official FreeBSD mirror, or something you set up?
What is the output of "echo $PACKAGEROOT" and "echo $PACKAGESITE"?
Quote:
Originally Posted by pkg_add(1)
The environment variable PACKAGEROOT specifies an alternate location for
pkg_add to fetch from. The fetch URL is built using this environment
variable and the automatic directory logic that pkg_add uses when the -r
option is invoked. An example setting would be "ftp://ftp3.FreeBSD.org".
The environment variable PACKAGESITE specifies an alternate location for
pkg_add to fetch from. This variable subverts the automatic directory
logic that pkg_add uses when the -r option is invoked. Thus it should be
a complete URL to the remote package file(s).
Also, there's a distinct difference between packages and ports in the BSD world. Packages consist of precompiled software, ports consist of source code distributions of software.
"echo $PACKAGEROOT" and "echo $PACKAGESITE" don't return anything at all. Here is what I see when trying to install pidgin via a remote source.
Quote:
$ sudo pkg_add -r pidgin
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/po...st/pidgin.tbz: Can't open data connection
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.0-release/Latest/pidgin.tbz' by URL
To answer your other question, I'm new to the whole concept of ports, and it worked for me to install X and KDE, as well as a window manager. Thus said, I didn't feel it was necessary to change what seemed to be working. Unfortunately, its not really working now.
I hate to "bump" this thread but I'm trying to get a fully functioning BSD system set up, with a basic desktop + security focus, and programs are no longer installing how they should. I didn't change anything to any port files but it no longer can locate, download, and install my programs.
I had to go to the FreeBSD forums for help since no one here seemed to know what to do. I solved my problem but there are two things you need to check if you have the same issue.
1. whether or not you need to use passive or active ftp mode for package retrieval and installation. your firewall can determine this.
2. "sudo" in FreeBSD does not grant you the same rights as it does in Linux. using "sudo pkg_add -r <package>" will not work because you don't actually have enough rights to do it. First you need to do a "sudo su -" then try to install your package.
Hope this helps anyone else with the same problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.