Command "pkg install lighttpd" not working.

Status
Not open for further replies.

rldoose

Dabbler
Joined
Apr 16, 2016
Messages
17
In a freshly installed Jail I'm running:

jls
jexec {Jail ID} tcsh

pkg update && pkg upgrade -y

# Build ownCloud from scratch
# When Prompted: *DISABLE* MYSQL, and ENABLE SQLITE.
portsnap fetch extract
cd /usr/ports/www/owncloud
make config
make -DBATCH install clean

# Install ligthtpd & clean up
pkg install lighttpd

But "pkg install lighttpd" is giving me:
"pkg: No packages available to install matching 'lighttpd' have been found in the repositories"

This worked for me just a few days ago, and I have no idea what I'm doing wrong or what has changed....

Any advise or guidance would be much appreciated!
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Has anything changed at all? Have you changed your FreeNAS version? etc?
 

rldoose

Dabbler
Joined
Apr 16, 2016
Messages
17
No, I completely fresh installed from my original flash drive..... It won't auto-upgrade during install will it?
 

rldoose

Dabbler
Joined
Apr 16, 2016
Messages
17
DrKK, I can build/install from ports, but I get errors when I duplicate your original config..... As you said in your tutorial, "installing a web server is not trivial". Don't know if what I built is the same a what I would get with "pkg install lighttpd"
 

rldoose

Dabbler
Joined
Apr 16, 2016
Messages
17
DrKK, Sorry, must not have hit post.... My version of FreeNAS has not changed as I reinstalled fresh from my original USB drive. I did install a 128 GB SSD to use strictly for Jail storage, but that should not effect the availability of a pkg.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
No, you get the version on your install media, and there is no live update at install time.

Do you have any trouble installing something else, like nano? pkg install nano

Also, what happens if you say:
Code:
pkg install www/lighttpd
specifying that it comes from the www tree?

If none of this works, then we'll have to diagnose if you have a network error, or pkg config error.
 
D

dlavigne

Guest
Sounds like the package is temporarily unavailable from the package repository. This occasionally happens.
 

rldoose

Dabbler
Joined
Apr 16, 2016
Messages
17
Well, this gets stranger and stranger. Still no luck with lighttpd with or without the www. Tried nano and got something totally different:
pkg: wrong architecture: freebsd:9:x86:64 instead of FreeBSD:10:amd64
pkg: repository FreeBSD contains packages with wrong ABI: freebsd:9:x86:64

Any idea what THAT is all about? Looks like I'm somehow setup for the wrong architecture....
 

rldoose

Dabbler
Joined
Apr 16, 2016
Messages
17
Thank you pirateghost! That fixed pkg, now I try again with the rest. Point taken on search..... In my defense, as a noob, it is hard to differentiate root cause from symptom.... And I'm still at a loss as to why what worked before broke with a fresh install from the same media. But, one possible explanation is that I initially messed around with the owncloud plugin which installs a jail template right? Would that have installed the correct template where doing it on my own would have introduced the bug?

Another question, I did not apply any updates since I knew that it worked with my original install. Do I dare apply updates? What is the best practice for updating? Do you apply them automatically, or don't mess with what works until it doesn't?
 
Status
Not open for further replies.
Top