Fixing FreeBSD Stale Package Dependency

Today I reinstalled my laptop with FreeBSD 6.0. I proceeded to install all of the software I needed using FreeBSD packages. After I finished I ran portversion to see if anything was out-of-date.

orr:/root# portversion -v -l "<"
[Updating the pkgdb in /var/db/pkg ... - 125 packages found (-0 +97) ...
done]
Stale dependency: gtksee-0.5.6 --> bzip-0.21 -- manually run 'pkgdb -F' to fix, or specify -O to force.

That doesn't look good. There is a problem with the package database (pkgdb) that needs to be fixed. Apparently gtksee is looking for bzip, but bzip is not installed. I checked the archivers/bzip FreshPorts page and notice there are patent problems with the program. In fact, they recommend using bzip2.

I next install bzip2 as a package, and then I run pkgdb to fix the package database.

orr:/root# pkgdb -F
---> Checking the package registry database
[Updating the pkgdb in /var/db/pkg ... - 126 packages found (-0 +1) . done]
Stale dependency: gtksee-0.5.6 -> bzip-0.21 (archivers/bzip):
bzip2-1.0.3_1 (score:26%) ? ([y]es/[n]o/[a]ll) [no] y
Fixed. (-> bzip2-1.0.3_1)

That's it. The pkgdb is now internally consistent.

Comments

Anonymous said…
Can you post the contents of /var/db/pkg?
I'm going to build a new FreeBSD laptop next week and haven't had time to create a list of packages to install.
This comment has been removed by a blog administrator.
Here's pkg_info:

adns-1.1 Easy to use, asynchronous-capable DNS client library and ut
argus-2.0.6 A generic IP network transaction auditing tool
argus-clients-2.0.6 Client programs for the argus IP network transaction auditi
aspell-0.60.4_1 Spelling checker with better suggestion logic than ispell
aterm-1.0.0_1 A color vt102 terminal emulator with transparency support
atk-1.10.3 A GNOME accessibility toolkit (ATK)
barnyard-0.2.0 An output system for Snort
bash-3.0.16_1 The GNU Project's Bourne Again SHell
bitstream-vera-1.10_2 Bitstream Vera TrueType font collection
bsd-airtools-0.3 BSD Wireless Scanning Tools
bvi-1.3.1 A vi-like binary file (hex)editor
bzip2-1.0.3_1 A block-sorting file compressor
cairo-1.0.2_1 Vector graphics library with cross-device output support
cdrtools-2.01_1 CD/CD-R[W] and ISO-9660 image creation and extraction tools
cmdwatch-0.2.0 Watches the output from a command at specified intervals
desktop-file-utils-0.10_3 A couple of command line utilities for working with desktop
dsniff-2.3_1 Various sniffing utilities for penetration testing
dvd+rw-tools-5.21.4.10.8 DVD burning software
enigmail-thunderbird-0.93.0_1 A GnuPG extension for the Thunderbird mail client
ethereal-0.10.14 A powerful network analyzer/capture tool
expat-1.95.8_3 XML 1.0 parser written in C
firefox-1.5_5,1 Web browser based on the browser portion of Mozilla
flow-tools-0.68_1 Suite of tools and library to work with netflow data
flowgrep-0.8a TCP stream/UDP/IP payload 'grep' utility
fluxbox-devel-0.9.14 A small and fast window manager based on BlackBox
fontconfig-2.3.2,1 An XML-based font configuration API for X Windows
fprobe-1.1 Tool that collects network traffic data
freebsd-update-1.6_2 Fetches and installs binary updates to FreeBSD
freetype2-2.1.10_2 A free and portable TrueType font rendering engine
gaim-1.5.0_1 Multi-protocol instant messaging client
gaim-encryption-2.38_3 Provides transparent RSA encryption as a Gaim plugin
gettext-0.14.5 GNU gettext package
ghostscript-gnu-7.07_14 GNU Postscript interpreter
glib-1.2.10_11 Some useful routines of C programming (previous stable vers
glib-2.8.5 Some useful routines of C programming (current stable versi
gnomehier-2.0_7 A utility port that creates the GNOME directory tree
gnupg-1.4.2_1 The GNU Privacy Guard
gsfonts-8.11_2 Fonts used by GNU Ghostscript (or X)
gtk-1.2.10_13 Gimp Toolkit for X11 GUI (previous stable version)
gtk-2.8.9 Gimp Toolkit for X11 GUI (current stable version)
gtksee-0.5.6 Image viewer
gtkspell2-2.0.11_1 A GTK+ 2 spell checking component
hicolor-icon-theme-0.5 A high-color icon theme shell from the FreeDesktop project
imake-6.8.2 Imake and other utilities from X.Org
ipcad-3.7 IP accounting daemon with Cisco-like RSH and NetFlow export
irssi-0.8.10 A modular IRC client with many features
itcl-3.2.1_1 [incr Tcl] (A.K.A. "itcl")
itk-3.2.1_1 [incr Tk] (A.K.A. "itk")
iwidgets-4.0.1 Iwidgets - [incr Widgets]
jpeg-6b_3 IJG's jpeg compression utilities
libIDL-0.8.6_1 A library for creating trees of CORBA Interface Definition
libXft-2.1.7 A client-sided font API for X applications
libafterimage-1.07 Generic imaging library originally designed for AfterStep
libao-0.8.5 Portable audio output library
libaudiofile-0.2.6 A sound library for SGI audio file
libiconv-1.9.2_1 A character set conversion library
libltdl-1.5.22 System independent dlopen wrapper
libnetdude-0.6 A library for manipulating libpcap/tcpdump trace files
libpcapnav-0.5 A libpcap wrapper library
libungif-4.1.4 Tools and library routines for working with GIF images
libxml2-2.6.22 XML parser library for GNOME
lynx-2.8.5_2 A non-graphical, text-based World-Wide Web client
metasploit-2.5 Exploit-Framework for Penetration-Testing
mysql-client-5.0.17 Multithreaded SQL database (client)
mysql-server-5.0.17 Multithreaded SQL database (server)
mysqltcl-3.01 TCL module for accessing MySQL databases based on msqltcl
nasm-0.98.39,1 General-purpose multi-platform x86 assembler
nedit-5.5 An X11/Motif GUI text editor for programs and plain text fi
net-snmp-5.2.2 An extendable SNMP implementation
netdude-0.4.5 NETwork DUmp data Displayer and Editor for tcpdump tracefil
ngrep-1.44 Network grep
nmap-3.95 Port scanning utility for large networks
nspr-4.6_2 A platform-neutral API for system level and libc like funct
nss-3.10 Libraries to support development of security-enabled applic
open-motif-2.2.3_2 Motif X11 Toolkit (industry standard GUI (IEEE 1295))
p0f-2.0.3_1 Passive OS fingerprinting tool
p5-Net-SSLeay-1.30 Perl5 interface to SSL
p5-ReadLine-Gnu-1.14 Perl 5 module that allows Term::ReadLine to use GNU readlin
pango-1.10.2 An open-source framework for the layout and rendering of i1
pcre-6.4 Perl Compatible Regular Expressions library
perl-5.8.7_2 Practical Extraction and Report Language
pkg_cutleaves-20051228 Interactive script for deinstalling 'leaf' packages
pkg_tree-1.1_1 Get a 'graphical' tree-overview of installed packages
pkgconfig-0.20 A utility to retrieve information about installed libraries
png-1.2.8_2 Library for manipulating PNG images
popt-1.7 A getopt(3) like library with a number of enhancements, fro
portaudit-0.5.10 Checks installed ports against a list of security vulnerabi
portupgrade-2.0.1,1 FreeBSD ports/packages administration and management tool s
py24-pynids-0.5_1 Python interface to libnids
python-2.4.2 An interpreted object-oriented programming language
rdesktop-1.4.1 RDP client for Windows NT/2000/2003 Terminal Server
ruby-1.8.2_5,1 An object-oriented interpreted scripting language
ruby18-bdb1-0.2.2 Ruby interface to Berkeley DB revision 1.8x with full featu
sancp-1.6.1_1 A network connection profiler
screen-4.0.2_1 A multi-screen window manager
shared-mime-info-0.16_2 A MIME type database from the FreeDesktop project
snort-2.4.3_1 Lightweight network intrusion detection system
srm-1.2.8 Secure rm, a utility which destroys file contents before un
startup-notification-0.8_1 Library that supports startup notification spec from freede
sudo-1.6.8.12_1 Allow others to run commands as root
t1lib-5.1.0,1 A Type 1 Rasterizer Library for UNIX/X11
tcl-8.4.11,1 Tool Command Language
tclX-8.3.5_2 Extended TCL
tcllib-1.7_1 A collection of utility modules for Tcl
tcltls-1.5.0 SSL extensions for TCL; dynamicly loadable
tcpdstat-0.9 A tool for generating statistics from tcpdump (libpcap) fil
tcpflow-0.21_1 A tool for capturing data transmitted as part of TCP connec
tcpreplay-2.3.5 A tool to replay saved packet capture files
thunderbird-1.0.7_6 Mozilla Thunderbird is standalone mail and news that stands
tiff-3.7.4 Tools and library routines for working with TIFF images
tk-8.4.11,2 Graphical toolkit for TCL
trafshow-5.2.1_1,1 Full screen visualization of network traffic
unrar-3.54,3 Extract, view & test RAR archives
unzip-5.52_2 List, test and extract compressed files in a ZIP archive
vnc-4.1.1 Display X and Win32 desktops on remote X/Win32/Java display
xorg-clients-6.8.2_1 X client programs and related files from X.Org
xorg-documents-6.8.2 Documentation of X11 protocol and libraries from X.Org
xorg-fonts-100dpi-6.8.2 X.Org 100dpi bitmap fonts
xorg-fonts-75dpi-6.8.2 X.Org 75dpi bitmap fonts
xorg-fonts-encodings-6.8.2 X.Org font encoding files
xorg-fonts-miscbitmaps-6.8.2 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-6.8.2 X.Org TrueType fonts
xorg-libraries-6.8.2 X11 libraries and headers from X.Org
xorg-manpages-6.8.2 X.Org library manual pages
xorg-server-6.8.2_7 X.Org X server and related programs
xpdf-3.01_2 Display PDF files, and convert them to other formats
xterm-206_1 Terminal emulator for the X Window System
xv-3.10a_5 An X11 program that displays images of various formats
zip-2.31 Create/update ZIP files compatible with pkzip
Anonymous said…
This comment has been removed by a blog administrator.

Popular posts from this blog

Zeek in Action Videos

MITRE ATT&CK Tactics Are Not Tactics

New Book! The Best of TaoSecurity Blog, Volume 4