Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Apr 2011 00:09:36 GMT
From:      Jesse <jessefrgsmith@yahoo.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156286: apt port tries to pull from incorrect URL
Message-ID:  <201104090009.p3909a8R009150@red.freebsd.org>
Resent-Message-ID: <201104090010.p390AAC8099640@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156286
>Category:       ports
>Synopsis:       apt port tries to pull from incorrect URL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 09 00:10:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jesse
>Release:        8.1-release
>Organization:
RM
>Environment:
freebsd-6648 8.1-RELEASE
>Description:
After installing the sysutils/apt port, running the command

apt-get update

results in errors because apt-get is trying to pull from the invalid "binary-freebsd-i386" architecture. For example, apt-get will attempt to download from

http://ftp.debian.org/dists/squeeze/main/binary-freebsd-i386/Packages.gz

The above is an invalid URL and should instead read

http://ftp.debian.org/debian/dists/squeeze/main/binary-kfreebsd-i386/Packages.gz

Note the leading "k" in "binary-kfreebsd-i386".

>How-To-Repeat:
1. Install the sysutils/apt port (pkg_add -r apt)
2. Create the required directories
mkdir -p /var/db/apt/state/lists/partial
mkdir -p /var/db/apt/cache/archives/partial
mkdir -p /var/db/dpkg
touch /var/db/dpkg/status

3. Run the apt-get update command
/usr/local/bin/apt-get update


>Fix:
The apt program should be patched to draw from Debian's "binary-kfreebsd-i386" repositories. Or, if possible, patched to import the system's arch from a configuration file.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104090009.p3909a8R009150>