Cannot install pakcages in fresch installation FreeBSD 15.1-RELEASE-dvd1

Replication instructions​

Setup and start of the Virtual Machine​

Setup of the VM in which it will be replicated:
  1. Download FreeBSD-15.1-RELEASE-amd64-dvd1.iso and the checksum file CHECKSUM.SHA512-FreeBSD-15.1-RELEASE-amd64.
  2. Check the checksum with sha512sum --ignore-missing -c CHECKSUM.SHA512-FreeBSD-15.1-RELEASE-amd64.
  3. Mount FreeBSD-15.1-RELEASE-amd64-dvd1.iso at some mountpoint of your preference.
  4. Run cp -ar $AMYP $SWP , where $AMYP is the mountpoint where FreeBSD-15.1-RELEASE-amd64-dvd1.iso was mounted and $SWP is a writable place where you can work.
  5. Now run
    Code:
    cat >> $SWP/$(dirname $AMYP )/boot/loader.conf <<EOF
    boot_multicons="YES"
    boot_serial="YES"
    comconsole_speed="115200"
    console="comconsole,vidconsole"
    EOF
    which should configure the console as in Chapter 30. Serial Communications 0.6.3. Setting a Faster Serial Port Speed.
  6. Finally build the new disk with
    Code:
    CUSTOM_ISO_TITLE=$(isoinfo -d -i ${ISO_DIR}/${ISO} | grep "Volume id" | awk '{print $3}')
    sudo mkisofs -J -R -no-emul-boot -V "${CUSTOM_ISO_TITLE}" -p "Joyent" -b boot/cdboot -o FreeBSD-15.1-RELEASE-SERIAL-amd64-dvd1.iso.iso $SWP/$(dirname $AMYP )
  7. At last: start the VM, press enter or wait to start of the install wizard.
    Code:
    virt-install --connect qemu:///system -n replication_base --description "Replication Base" \
        --os-variant=freebsd15.0 \
        --ram=512 --vcpus=1 \
        --graphics vnc --console pty \
        --disk path=/var/lib/libvirt/images/rb.qcow2,bus=virtio,format=qcow2,size=10 \
        --cdrom "$(pwd)/FreeBSD-15.1-RELEASE-SERIAL-amd64-dvd1.iso.iso" \
        --network network:default

Installation of FreeBSD​

Now is turn to install FreeBSD in the Virtual Machine, thus Following Handbook Chapter 2. Installing FreeBSD.
  1. Now we enter the Virtual Machine installation console with virsh --connect qemu:///system console replication_base.
  2. Following 2.4.1. FreeBSD Boot Loader Menu is trivial and needs no commentary.
  3. Given that we are in a console continuing with the default keymap is the proper choice for 2.5.1. Selecting the Keymap Menu.
  4. Set hostname to " example" on 2.5.2. Setting the Hostname.
  5. On 2.5.3. Selecting Installation Type select Distributions Sets.
  6. On 2.5.4. Selecting Components to Install only select lib32.
  7. On 2.6. Allocating Disk Space select Auto (ZFS).
  8. On 2.6.4. Guided Partitioning Using Root-on-ZFS set Swap Size to 0 and then "proceed with Installation".
  9. On Figure 21. ZFS Pool Type, select stripe.
  10. On Figure 22. Disk Selection select vtbd0 with space and the continue with enter.
  11. On Figure 28. Last Chance select YES.
  12. On 2.8.1. Setting the root Password skip.
  13. On 2.8.2. Configuring Network Interfaces select manual, Yes for configuration of IPv4, Yes for DHCP of the IPv4, No for IPv6.
  14. On Figure 45. DNS Configuration just go with OK.
  15. On 2.8.3. Setting the Time Zone select 0 UTC, and then confirm on Figure 50. Confirm Time Zone.
  16. Now skip Figure 51. Select Date and Figure 52. Select Time.
  17. Enable all services on 2.8.4. Enabling Services.
  18. Enable all except hide_uids, hide_gids, and random_pids on 2.8.5. Enabling Hardening Security Options.
  19. On 2.8.6. Add Users select No.
  20. On 2.8.7. Final Configuration select finish.
  21. On Figure 59. Manual Configuration select Yes.
  22. Login as root (there is no password, so only press enter).
  23. Now add
    Code:
    boot_multicons="YES"
    boot_serial="YES"
    comconsole_speed="115200"
    console="comconsole,vidconsole"
    to /mnt/boot/loader.conf as recommened by Chapter 30. Serial Communications 0.6.3. Setting a Faster Serial Port Speed.
  24. Finally run poweroff.
Now FreeBSD should be already installed in the Virtual Machine, and reconnecting with the console should give access to the system.

First Start and Configuration​

  1. Before finally starting with the replication, go to /etc/resolv.conf and uncomment the nameserver, as otherwise you will be getting Transient resolver failure errors.
  2. Run pkg for installing pkg, and accept with y the installation prompt.
  3. Run pkg update for updating the package list.

Finally the problem​

Try to install vim (editors/vim) with pkg install vim and get the error:
Code:
pkg: No packages available to install matching 'vim' have been found in the repositories
 
Can you post the output from pkg repos?
Here is:
Code:
FreeBSD-ports: { 
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-ports-kmods: { 
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_1",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-base: { 
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_1",
    enabled         : no,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkgbase-15"
  }
 
Alright, that looks to be in order. editors/vim is available in both quarterly and latest repositories, I double-checked, so I'm not sure why it's not finding it on your side.

Can you force the catalog update? Maybe that will help; pkg update -f

It's strange pkg(8) had no problems bootstrapping itself (came from the same repository), and the catalog update worked too (which is also fetched from that repository). So it apparently has no problems accessing the repository. Have you tried to install something else, something smallish, pkg install tmux for example. Also try pkg search vim, that should list of a whole bunch of vim(-related) packages.
 
Back
Top