Pamac Cannot Update. Error Setting Certificate

curl -O https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
chmod +x pacman-static
sudo ./pacman-static -Syu

(at least to begin with)

# 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

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

???

Did you try to do that all as one command?

curl -O https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
chmod +x pacman-static
sudo ./pacman-static -Syu

I issued them one by one.

In your post it shows mangled curl output after ‘chmod’ is listed.

Whereas … it should be download, mark executable, run.
Having ‘mark executable’ placed before the output of ‘download’ makes it appear incorrect.

Certainly the download was a failure either way.

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

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

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.

Copy/paste the address in your browsers address bar - it should get it.

Got this file ca-certificates-20220905-1-any.pkg.tar.zst but don’t seem to be able to do anything with it. Any help?

Copy/paste what address?

This one? Maybe? :face_with_peeking_eye:

You can also just click on the huge green address in your post above.

Thanks. Please explain what I am to do with the link you provided.

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.

Executed the file ‘pacman-static’.

Returned:

# ./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)

Btw, Line 20 in pacman.conf:

SyncFirst    = manjaro-system archlinux-keyring manjaro-keyring

Did you actually read what he said to run? Also please read how to post output text: [HowTo] Post command output and file content as formatted text

I thought I did. Made pacman-static executable and ran it. Posted the result above.

Thanks for pointing me to read how to post output text.

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

The ‘pacman -U’ command was actually issued within the ‘Downloads’ folder where the said file resides.

And after making the ‘pacman-static’ file executable, I did not know what options to include. I have no idea, my ignorance.

What options besides:

./pacman-static

Read the 4th post.