Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't seem to be able to install Python 2.7 on my FreeBSD system. Here is some info:

# portsnap update
Ports tree is already up to date.


# uname -r


# cd /usr/ports/lang/python27/
# make
===>  Found saved configuration for python27-2.7.5_1
=> Python-2.7.5.tar.xz doesn't seem to exist in /usr/ports/distfiles/python.
=> Attempting to fetch ftp://ftp.lv.freebsd.org/pub/FreeBSD/distfiles/python/Python-2.7.5.tar.xz
Python-2.7.5.tar.xz                           100% of    9 MB  159 kBps 00m00s
===> Fetching all distfiles required by python27-2.7.5_1 for building
===>  Extracting for python27-2.7.5_1
=> SHA256 Checksum OK for python/Python-2.7.5.tar.xz.
===>   python27-2.7.5_1 depends on file: /usr/local/bin/xz - found
tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
*** Error code 1

Stop in /usr/ports/lang/python27.
*** Error code 1

Stop in /usr/ports/lang/python27.

Any help is highly appreciated.

share|improve this question
up vote 2 down vote accepted

Most likely a symptom of an obsolete release. Version 7 has an older tar package that cannot handle the .xz extension. A work around can be achieved by installing libarchive from ports and then setting libarchives tar to the default tar binary by adding TAR=/usr/local/bin/bsdtar in /etc/make.conf or by symlinking to the bsdtar.

share|improve this answer
Thanks! This solved it for me! – mormaii2 Jul 24 '13 at 19:57
Great! Glad to help :) – Tim Jul 24 '13 at 20:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.