$ xfe
/usr/local/lib/libpng16.so.16: version PNG16_0 required by /usr/local/lib/libFOX-1.6.so.0 not defined
$ firefox
XPCOMGlueLoad error for file /usr/local/lib/firefox/libxul.so:
/usr/local/lib/libpng16.so.16: version PNG16_0 required by /usr/local/lib/firefox/libxul.so not defined
Couldn't load XPCOM.
error while running function
stack traceback:
[C]: in function 'load_image'
/usr/share/awesome/lib/gears/surface.lua:39: in function </usr/share/awesome/lib/gears/surface.lua:24>
(tail call): ?
(tail call): ?
/usr/share/awesome/lib/gears/wallpaper.lua:128: in function 'maximized'
/etc/xdg/awesome/rc.lua:76: in main chunk
error: /usr/share/awesome/lib/gears/surface.lua:39: Couldn't recognize the image file format for file '/usr/share/awesome/themes/default/background.png'
E: awesome: main:535: couldn't find any rc file
$ pkg info | grep png
png-1.6.20 Library for manipulating PNG images
pkg install
, pkg updated many different packages (>100MB), including 'firefox', that makes me wonder: since 'awesome' has nothing to do with firefox. The error received seems to indicate that awesome couldn't open .png files, although 'PNG' is installed. I don't believe it's an issue with awesome, but PNG library somehow couldn't link png file.Well, pkg(8) only "takes orders" from the packages, regarding dependencies, and records changes to your system. It's more a "messenger", than a "dictator"''. It's the packages responsibility to report any dependencies. I can say this with relative certainty, as I am currently Maintainer for about 100 ports. My guess, is that x11-wm/awesome required a png rendering library, and either installed it, installed an older version, or depended on something that depended on something, that depen... you get the picture. There's clearly a versioning issue. Another possibility is that one, or some of the programs that got upgraded were running at the time of the upgrade. This is always a bad choice. Because the programs are still living in memory, so there will ultimately be symbol collision, and all hell breaks loose. A reboot or closing, and re-opening the affected programs, usually clears things up. One final thought, is that ldd(1) wasn't run. Which means the libraries are not registered, and won't be found when the affected programs are run.i never install pkg through ports on this machine (thinkpad laptop), only through 'pkg'.
This issue, the way I see it, is that 'pkg' has problem at checking and updating dependency. In this case, when I installed 'awesome wm' (<1MB) through 'pkg install', pkg updated many different packages (>100MB), including 'firefox', that makes me wonder: since 'awesome' has nothing to do with firefox. The error received seems to indicate that awesome couldn't open .png files, although 'PNG' is installed. I don't believe it's an issue with awesome, but PNG library somehow couldn't link png file.
# pkg update
# pkg upgrade
pkg update
so that any new packages you install come from the same pkg repo. Or, switch to using the quarterly pkg repo instead of the latest one. # pkg update
# pkg upgrade
My understanding is 'pkg' in FreeBSD is equivalent to ... 'pacman' in Archlinux ... But still what's the point of pkg if I had to upgrade whole system to install a package?
on my FreeBSD 10.1
Are there any way to freeze the FreeBSD repo on my box
Is FreeBSD also considered on a rolling-release?
Are there any way to freeze the FreeBSD repo on my box rather than being forced to update them all the time? I'd prefer to have a stable system than a cutting edge but somewhat broken system. Newest aren't the greatest sometimes - as an example, the new 'xfe' on my box is rather buggy comparing with previous stable version.
I have a vanilla FreeBSD10.1 installation on my thinkpad laptop and haven't done much pkg installations since then.
My understanding is 'pkg' in FreeBSD is equivalent to 'apt' in Debian, or 'pacman' in Archlinux. Isn't 'pkg' supposed to keep track of dependencies when install a package? It seems to me that FreeBSD's 'pkg' does more bad than good for installing pkgs correctly. I've already learnt to issue:
# pkg update
# pkg upgrade
to fix a broken system. But still what's the point of pkg if I had to upgrade whole system to install a package? And above commands still didn't fix 'awesome' problem, I still couldn't use it due to error mentioned.
aptitude update
and just use aptitude install
to add new software, everything works well. aptitude update
on a regular basis, but only ever use aptitude install
to install new software, eventually you will run into issues and will be forced to upgrade all installed packages (via aptitude safe-ugprade
). aptitude update
on a regular basis, and use aptitude safe-upgrade
to upgrade everything all at once, before running aptitude install
to install new software, then everything works well. pkg update
(or use a remote repo that never/rarely changes) and just use pkg install
to add new software, everything works well. pkg update
on a regular basis, but only ever use pkg install
to install new software, eventually you will run into issues and will be forced to upgrade all installed packages (via pkg upgrade
). pkg update
on a regular basis, and use pkg upgrade
to upgrade everything all at once, before running pkg install
to install new software, then everything works well.REPO_AUTOUPDATE: boolean
When true, automatically check for and download updates to
/var/db/pkg/repo.sqlite when running one of: pkg fetch, pkg
install, pkg rquery, pkg search, pkg upgrade, or pkg version
-R. Default: YES.