I have been unable to update software for a while, now 523 updates waiting.
I have tried “pacman -Syu” but could not get through because of “error setting certificate file: /etc/ssl/certs/ca-certificates.crt”, modified pacman.conf, added mirrors, etc.
Found out that my ca-certificates.crt is empty.
Downloaded the ca-certificates-20220905-1-any.pkg.tar.zst (2KiB) to try to manually update but extracting it got only three files .BUILDINFO,
.MTREE, and .PKGINFO.
Didn’t know what else to do and now asking for guidance to further my seeking solution to this problem.
# curl -O https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
chmod +x pacman-static
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:02:10 --:--:-- 0
curl: (28) Failed to connect to pkgbuild.com port 443 after 130155 ms: Couldn't connect to server
chmod: cannot access 'pacman-static': No such file or directory
# sudo ./pacman-static -Syu
bash: ./pacman-static: No such file or directory
I suspect pacman cannot access the internet because ca.certificates.crt is not functional in my system. That is why I am trying to manually install one, if possible…or try anything else.
# curl -O https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (77) error setting certificate file: /etc/ssl/certs/ca-certificates.crt
# chmod +x pacman-static
chmod: cannot access 'pacman-static': No such file or directory
# sudo ./pacman-static -Syu
sudo: ./pacman-static: command not found
Yes it appears you cannot download, at least using curl .
Well, the link is there.
If you can get it somehow … the rest of the instructions to enable and use it stand.
That link comes from the curl command you could not run for some reason.
Paste in browser address bar and it will fetch that program (pacman-static)
you then make it executable and run it.
The plan apparently was to use this instead of the regular pacman.
I don’t quite know why.
don’t unpack it if you want to install it.
to install it: sudo pacman -U ca-certificates-20220905-1-any.pkg.tar.zst
(you need to give the PATH to where the file actually is)
As it has been a certificates issue, I was not able to have pacman access the internet, hence the following returned:
[Downloads]# pacman -U ca-certificates-20220905-1-any.pkg.tar.zst
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (2) ca-certificates-mozilla-3.96.1-1 ca-certificates-20220905-1
Total Download Size: 0.36 MiB
Total Installed Size: 0.98 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
ca-certificates-mozilla-3.96.1-1-x86_64.pkg.tar.zst failed to download
error: failed retrieving file 'ca-certificates-mozilla-3.96.1-1-x86_64.pkg.tar.zst' from mirror.is.co.za : error setting certificate file: /etc/ssl/certs/ca-certificates.crt
error: failed retrieving file 'ca-certificates-mozilla-3.96.1-1-x86_64.pkg.tar.zst' from mirror.i3d.net : error setting certificate file: /etc/ssl/certs/ca-certificates.crt
error: failed retrieving file 'ca-certificates-mozilla-3.96.1-1-x86_64.pkg.tar.zst' from mirror.smith.geek.nz : Could not resolve host: mirror.smith.geek.nz
warning: too many errors from mirror.smith.geek.nz, skipping for the remainder of this transaction
error: failed retrieving file 'ca-certificates-mozilla-3.96.1-1-x86_64.pkg.tar.zst' from archmirror1.octyl.net : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
# ./pacman-static
warning: config file /etc/pacman.conf, line 20: directive 'SyncFirst' in section 'options' not recognized.
error: no operation specified (use -h for help)
You did not give the PATH to your file, the one you already have.
Only you know where it is on your computer - likely in the ~/Downloads folder.
There is no way for me to know …
Because you did not give the PATH to your file, pacman tries to download it again - and fails.
You should probably refresh your mirror list.
That by itself may already solve your problem.
You have to tell pacman (pacman-static, in this case) what you want it to do.
just pacman
or pacman-static
without any options
won’t do anything