• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/

July 21, 2013 by Sharad Chhetri 1 Comment

Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim.tbz

This was my first encounter with problem while working in freebsd after doing fresh install.I was trying to install vim in freebsd by using the command pkg_add -r vim
I got this below given Error:

Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/vim.tbz' by URL
pkg_add: 1 package addition(s) failed

If we read the above given Error message,”File unavailable (e.g., file not found, no access)” . The error itself says there is problem in site or site path.

So I checked it by opening the web browser and found the given below Page Not found error

freebsd
freebsd

To fix this issue I set the environment variable

The correct URL I am using for repo is ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/.

freebsd# echo $SHELL
/bin/csh
(Because it is C shell, I am using command setenv , if it is bash then we have to use export command)


setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/

echo $PACKAGESITE

Now install the package


pkg_add -r -v vim

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. WordPress error “Unable to create new image”
  2. linux release renew dhcp assigned ip address
  3. How to find CentOS Linux release version on CentOS 7 series
  4. How to install libxml2 and libxslt packages on CentOS 6.5
  5. How to set DHCP offered ip address to particular ethernet in freebsd
  6. How to install vim in freebsd
  7. check_memory unable to read output Nagios nrpe
  8. PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0
  9. Unable to complete install:’unsupported configuration hda-duplex not supported in this Qemu binary’
  10. Allow root ssh login in FreeBSD 9.0

Filed Under: BSD troubleshooting, Linux Tagged With: freebsd

Reader Interactions

Comments

  1. Drey says

    November 26, 2015 at 3:38 pm

    Now this link doesn’t work also. Any fix? FreeBSD9.2

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Forgot root password ,Reset it in Run level 1

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

How to forcefully send mail from mailq in sendmail MTA

How to see line numbers in file through cat command

Do not show line haveing particular keyword by grep command

This kernel requires an x86-64 CPU but only detected an i686 CPU

Change the default port number of ssh server

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy