LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 03-29-2017, 07:05 PM   #1
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Rep: Reputation: Disabled
FreeBSD - Unable to install package manager


i just installed FreeBSD. I wanted to install Xfce so I needed to install the package manager. I typed "pkg" and was asked to install the package manager since I didn't have it. I typed "y" install it, I was instead presented with this error: https://www.dropbox.com/s/88l6en4dz2...G0152.jpg?dl=0

Update - Here's screenshot of the full screen: https://ibb.co/btB5ov

Last edited by 18yu9wdef; 03-30-2017 at 12:16 PM.
 
Old 03-29-2017, 07:54 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Can't see your image, it may require javascript. Anyhow, package management is functionality provided by base system, I am wondering what package manager you are talking about. Or just dive into ports tree and do make install clean.
 
Old 03-29-2017, 08:22 PM   #3
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Can't see your image, it may require javascript. Anyhow, package management is functionality provided by base system, I am wondering what package manager you are talking about. Or just dive into ports tree and do make install clean.
Oops, just edited the link: https://www.dropbox.com/s/88l6en4dz2...G0152.jpg?dl=0

I'm not sure how would I make a clean install. I did try some command that involves "make install clean", but I get the same error.
 
Old 03-29-2017, 08:27 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Start here. Sorry, I'm not there watching over your shoulder.
 
Old 03-29-2017, 08:39 PM   #5
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Start here. Sorry, I'm not there watching over your shoulder.
I can't use pkg though, that's where the error is.
 
Old 03-29-2017, 08:48 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Why can't you use pkg? What happens when you try to use it?

It works fine for me, though there was a bit of a learning curve.
 
Old 03-29-2017, 08:53 PM   #7
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Why can't you use pkg? What happens when you try to use it?

It works fine for me, though there was a bit of a learning curve.
Well if I type "pkg", it will ask to install the package management tool since I don't have to it yet. I type "y" fetch and install the package management tool but I get an error saying that there was an error fetching it and a pre-built version could not be found on my system.

I've already tried to ping 8.8.8.8 and it seems to be connected to the internet... probably.
 
Old 03-29-2017, 09:11 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You are getting fetching error. So did you make sure your networking is set up properly?
 
Old 03-29-2017, 09:16 PM   #9
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
You are getting fetching error. So did you make sure your networking is set up properly?
Well I've tried pinging and I got something back, but I'm not so sure if that means my network is setup properly.
 
Old 03-29-2017, 09:16 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Have you looked at the link Emerson provided? It gives instructions how to use pkg or ports to install packages (I prefer pkg).

I'm not sure that FreeBSD has a GUI package manager. I've experimented with FreeBSD quite a bit and not encountered such a thing. The closest thing I could find about such a thing in a websearch was this.

Last edited by frankbell; 03-29-2017 at 09:33 PM.
 
Old 03-29-2017, 09:22 PM   #11
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Have you looked at the link Emerson provided? It gives instructions how to use pkg or ports to install packages (I prefer pkg).

I'm not sure that FreeBSD has a GUI package manager. I've experimented with it quite a bit and not encountered such a thing. The closest thing I could find about such a thing in a websearch was this.
Yes, I've looked through the handbook, but I can't use bootstrap commands.
 
Old 03-30-2017, 08:18 AM   #12
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
From your photo of the console output, it doesn't seem like pkg was run as root. If you're using the default Bourne shell and have not modified the prompt, then a $ denotes a normal user account.

Some of the output is off the screen, so hard to tell without seeing the whole error.

But login as root, or su to root and try again.
 
Old 03-30-2017, 12:14 PM   #13
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cynwulf View Post
From your photo of the console output, it doesn't seem like pkg was run as root. If you're using the default Bourne shell and have not modified the prompt, then a $ denotes a normal user account.

Some of the output is off the screen, so hard to tell without seeing the whole error.

But login as root, or su to root and try again.
Alright, so I've just tried to login as root via "su -" or at least what this says: https://www.cyberciti.biz/tips/freeb...s-to-user.html

I get an error however and I'm not sure what it means. Here's a full picture of the situation: https://ibb.co/mAAbva

Last edited by 18yu9wdef; 03-30-2017 at 12:17 PM.
 
Old 03-30-2017, 12:36 PM   #14
18yu9wdef
Member
 
Registered: Nov 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 18yu9wdef View Post
Alright, so I've just tried to login as root via "su -" or at least what this says: https://www.cyberciti.biz/tips/freeb...s-to-user.html

I get an error however and I'm not sure what it means. Here's a full picture of the situation: https://ibb.co/mAAbva
Edit: Alright so I just logged in as root, but I still get the same error.
 
  


Reply



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
Unable to Install any application using synaptic package manager. yasaswisrikanth Linux - Software 2 12-09-2010 03:08 AM
Unable to Install any application using synaptic package manager. yasaswisrikanth Linux Mint 1 12-08-2010 07:43 PM
synaptic package manager appears to install downloaded APP' but unable to launch it . davefrank Linux - Desktop 4 12-04-2010 12:44 PM
Unable to load package manager suresh060979 Fedora 3 08-31-2007 01:47 AM
FreeBSD Package Manager rsbecker007 *BSD 6 04-25-2002 03:29 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:04 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