LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   FreeBSD - Unable to install package manager (https://www.linuxquestions.org/questions/%2Absd-17/freebsd-unable-to-install-package-manager-4175602811/)

18yu9wdef 03-29-2017 07:05 PM

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

Emerson 03-29-2017 07:54 PM

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.

18yu9wdef 03-29-2017 08:22 PM

Quote:

Originally Posted by Emerson (Post 5690113)
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.

Emerson 03-29-2017 08:27 PM

Start here. Sorry, I'm not there watching over your shoulder.

18yu9wdef 03-29-2017 08:39 PM

Quote:

Originally Posted by Emerson (Post 5690125)
Start here. Sorry, I'm not there watching over your shoulder.

I can't use pkg though, that's where the error is.

frankbell 03-29-2017 08:48 PM

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.

18yu9wdef 03-29-2017 08:53 PM

Quote:

Originally Posted by frankbell (Post 5690133)
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.

Emerson 03-29-2017 09:11 PM

You are getting fetching error. So did you make sure your networking is set up properly?

18yu9wdef 03-29-2017 09:16 PM

Quote:

Originally Posted by Emerson (Post 5690142)
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.

frankbell 03-29-2017 09:16 PM

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.

18yu9wdef 03-29-2017 09:22 PM

Quote:

Originally Posted by frankbell (Post 5690144)
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.

cynwulf 03-30-2017 08:18 AM

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.

18yu9wdef 03-30-2017 12:14 PM

Quote:

Originally Posted by cynwulf (Post 5690279)
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

18yu9wdef 03-30-2017 12:36 PM

Quote:

Originally Posted by 18yu9wdef (Post 5690388)
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.


All times are GMT -5. The time now is 11:03 PM.