Cannot update through package or get upgrade
-
Not specifically related to upgrading, but wasn't sure where to put this.
So whenever I try to run
pkg update -d
It repeats like this for most of the repositories (These are the last few lines)
* Hostname pkg00-atx.netgate.com was found in DNS cache * Trying 208.123.73.207:443... * Connected to pkg00-atx.netgate.com (208.123.73.207) port 443 (#11) * ALPN: offers http/1.1 * CAfile: none * CApath: /etc/ssl/certs/ * SSL certificate problem: self signed certificate in certificate chain * Closing connection 11 pkg: An error occured while fetching package Unable to update repository pfSense Error updating repositories!
I also cant update pfsense, as it says unable to check for updates. The error happened when i tried to add in the regular freeBSD repositories, but still happenes after i disabled it.
-
@Sadsa
Read the other thread (half inch away) : Unable to check for updates from dashboard and consider doing what is suggested over there.edit :
The error happened when i tried to add in the regular freeBSD repositories, but still happenes after i disabled it.
pfSense looks like FreeBSD, pfSense smells like FreeBSD.
But as said (warned), there where you found how to 'use the FreeBSD official repositories' ; here, don't. Or use a VM. Or a space device.
It's can be fun if you have a lot of spare time, really want to mess up, or if you want to find a good reason to reinstall.
The beauty is : it is possible to install packages from official repository. As long as it doesn't pull in dependencies that wipe current pfSense versions, thus nuking the system.No more suggestions from me : save your config. Re install.
-
@Gertjan Thanks, I looked for a thread but couldnt find one. I think the pkg bootstrap -f has fixed it :), sorry for posting so quick, should have checked more thoroughly
Edit:
So if i try to add the freeBSD repositories then it tries to update pkg, which then breaks it until i run pkg bootstrap -f again.I just needed to run a python program, but that needed a library i had to compile, which meant i had to install gcc, which is what im trying to do now.
-
@Sadsa said in Cannot update through package or get upgrade:
which meant i had to install gcc, which is what im trying to do now
gcc is part of a rather big build tools chain.
It's probably easier to install a FreeBSD 'as close as possible' to the pfSense FreeBSD kernel, and then add the build tools and stuf you need, compile, link (static link, I guess, as it will make a mostly independent program/library) and copy the result over to your pfSense.
pfSense is not a development device, it's a firewall ;)