root@truenas[~]# pkg install -y cifs-utils Updating local repository catalogue... pkg:…
- 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!
- 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 -fIf the issue persists, it may be necessary to recreate the local repository or try using a different repository mirror.
- 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!
- 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 -fagain. Follow these steps:- 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- 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/- Update the repository list using the command:
pkg update -fIf the above steps don't work, try changing the repository from
localto 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
localrepository to use the new directory created earlier.Once you have made these changes, try running
pkg update -fagain and then attempt to install thecifs-utilspackage.