从 FreeBDS ftp 站点安装 flashplugin 时出现“文件不可用(例如,文件未找到,无法访问)”

从 FreeBDS ftp 站点安装 flashplugin 时出现“文件不可用(例如,文件未找到,无法访问)”

我尝试使用本教程:

https://www.freebsd.org/doc/handbook/desktop-browsers.html

但是这部分出现错误:

/usr/ports/www/linux-f10-flashplugin11 # make install clean
...
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/flashplugin/11.2r202.327/install_flash_player_11_linux.i386.tar.gz: File unavailable (eg, file not found, no access)
=> Could not fetch it - please try to retrieve this
=> Port manually into /usr/ports/distfiles/flashplugin/11.2r202.327 and try again.
*** Error code 1

Stop.
make [1]: stopped in /usr/ports/www/linux-f10-flashplugin11
*** Error code 1

Stop.
make: stopped in /usr/ports/www/linux-f10-flashplugin11

文件 /etc/portsnap.conf 的内容

# $FreeBSD: release/10.0.0/etc/portsnap.conf 255878 2013-09-26 10:33:15Z cperciva $

# Default directory where compressed snapshots are stored.
# WORKDIR=/var/db/portsnap

# Default location of the ports tree (target for "update" and "extract").
# PORTSDIR=/usr/ports

# Server or server pool from which to fetch updates.  You can change
# this to point at a specific server if you want, but in most cases
# using a "nearby" server won't provide a measurable improvement in
# performance.
SERVERNAME=portsnap.FreeBSD.org

# Trusted keyprint.  Changing this is a Bad Idea unless you've received
# a PGP-signed email from <[email protected]> telling you to
# change it and explaining why.
KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330

# Example of ignoring parts of the ports tree.  If you know that you
# absolutely will not need certain parts of the tree, this will save
# some bandwidth and disk space.  See the manual page for more details.
#
# WARNING: Working with an incomplete ports tree is not supported and
# can cause problems due to missing dependencies.  If you have REFUSE
# directives and experience problems, remove them and update your tree
# before asking for help on the mailing lists.
#
# REFUSE arabic chinese french german hebrew hungarian japanese
# REFUSE korean polish portuguese russian ukrainian vietnamese

# List of INDEX files to build and the DESCRIBE file to use for each
INDEX INDEX-8 DESCRIBE.8
INDEX INDEX-9 DESCRIBE.9
INDEX INDEX-10 DESCRIBE.10

答案1

当您前往 时ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/,您将看到 README.txt 文件:

我们的 distfiles 缓存已移至:

http://distcache.FreeBSD.org/ports-distfiles/

可以按名称从那里获取 distfiles,如使用它的相应端口中指定的那样。

因此,只需更新/更改您正在使用的端口即可。

相关内容