Skip to content
The Chat Archive
gpt-3.5-turbo-0301· OpenAI WildChat-4.8M (AI2)

root@truenas[~]# pkg install -y cifs-utils Updating local repository catalogue... pkg:…

  1. User

    root@truenas[~]# pkg install -y cifs-utils Updating local repository catalogue... pkg: file:///usr/ports/packages/meta.txz: No such file or directory repository local has no meta file, using default settings pkg: file:///usr/ports/packages/packagesite.pkg: No such file or directory pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory Unable to update repository local Error updating repositories!

  2. Assistant

    This error is related to the package manager (pkg) being unable to locate the necessary files to update the local repository.

    One possible solution is to check if the local repository is properly configured and contains the required files. You can try running the following command to update the repository list:

    pkg update -f
    

    If the issue persists, it may be necessary to recreate the local repository or try using a different repository mirror.

  3. User

    Опять не получилось root@truenas[~]# pkg update -f Updating local repository catalogue... pkg: file:///usr/ports/packages/meta.txz: No such file or directory repository local has no meta file, using default settings pkg: file:///usr/ports/packages/packagesite.pkg: No such file or directory pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory Unable to update repository local Error updating repositories!

  4. Assistant

    It seems like the local repository on the system may be corrupted or not properly configured.

    You can try recreating the local repository by deleting its meta files and running pkg update -f again. Follow these steps:

    1. Run the following commands to delete the repository files:
    rm /var/db/pkg/repo-local.sqlite
    rm /var/db/pkg/repo-local.sqlite-shm
    rm /var/db/pkg/repo-local.sqlite-wal
    
    1. Create a new directory for the repository and copy the installed packages into it:
    mkdir -p /usr/local/pkgs/repo-local
    pkg repo /usr/local/pkgs/repo-local/
    
    1. Update the repository list using the command:
    pkg update -f
    

    If the above steps don't work, try changing the repository from local to a different one. You can use the command:

    pkg set -o repositories: {
      FreeBSD: { enabled: no },
      local: { url: "file:///usr/local/pkgs/repo-local", enabled: yes }
    }
    

    This sets the local repository to use the new directory created earlier.

    Once you have made these changes, try running pkg update -f again and then attempt to install the cifs-utils package.