[arch-general] PKGBUILD - clamav 0.103.4 - source .tar.gz downloads fine, .tar.gz.sig is 403? (same with Arch package)

Ralf Mardorf silver.bullet at zoho.com
Sat Nov 20 10:28:26 UTC 2021


On Sat, 20 Nov 2021 02:11:33 -0600, David C. Rankin wrote:
>Holy Cow!

[rocketmouse at archlinux ~]$ apt moo
                 (__) 
                 (oo) 
           /------\/ 
          / |    ||   
         *  /\---/\ 
            ~~   ~~   
..."Have you mooed today?"...

> Is there any standard "short-url" conversion magic that can be used
> when this sort of thing crops up? At least from my network, I can't
> even use the current Arch clamav source to build due to this problem.

To my knowledge there isn't. You can install apt and try to run
"apt moo" with root privileges at full moon 42 times.

IIRC a long time ago I made /etc/resolv.conf a file again to access
the Internet when using systemd-nspawn without the  -b, --boot  option.

I don't know if this is related to the issue or if something else is
the culprit. Seemingly something else does cause this issue.

After "enabling" /run/systemd/resolve/stub-resolv.conf, I tried wget and
curl with different options still to no avail, before running dhcpd.
Then I run dhcpd and after that makepkg.

After this test I stopped systemd-networkd.service and
systemd-resolved.service and replaced the link by a resolv.conf file
again ;). systemd-networkd.service is probably not required to use
systemd-resolved.service.

I don't know how to get rid of this issue.

1. ####

[rocketmouse at archlinux etc]$ /bin/ls -ltr resolv*
-rw-r--r-- 1 root root 255 Dec 30  2020 resolvconf.conf
-rw-r--r-- 1 root root  65 Nov 11 10:14 resolv.conf.pacnew
-rw-r--r-- 1 root root 701 Nov 16 15:35 resolv.conf.bak
-rw-r--r-- 1 root root  94 Nov 16 15:44 resolv.conf
[rocketmouse at archlinux etc]$ sudo mv resolv.conf resolv.conf-2021-11-20
[rocketmouse at archlinux etc]$ sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
[rocketmouse at archlinux tmp]$ cd /tmp/
[rocketmouse at archlinux tmp]$ sudo nano /etc/systemd/network/20-wired.network
[rocketmouse at archlinux tmp]$ cat /etc/systemd/network/20-wired.network [Match]
Name=enp1s0

[Network]
DHCP=yes
[rocketmouse at archlinux tmp]$ systemctl status systemd-networkd.service
[rocketmouse at archlinux tmp]$ sudo systemctl start systemd-resolved.service




2. ####

[rocketmouse at archlinux tmp]$ sudo dhcpcd -x $(basename $(ls -d /sys/class/net/enp?s0)) dhcpcd not running
[rocketmouse at archlinux tmp]$ sudo dhcpcd $(basename $(ls -d /sys/class/net/enp?s0)) sending commands to dhcpcd process
[rocketmouse at archlinux extra-x86_64]$ /bin/ls -ltr /etc/resolv* /run/systemd/resolve/
-rw-r--r-- 1 root root 255 Dec 30  2020 /etc/resolvconf.conf
-rw-r--r-- 1 root root  65 Nov 11 10:14 /etc/resolv.conf.pacnew
-rw-r--r-- 1 root root 701 Nov 16 15:35 /etc/resolv.conf.bak
-rw-r--r-- 1 root root  94 Nov 16 15:44 /etc/resolv.conf-2021-11-20
lrwxrwxrwx 1 root root  37 Nov 20 09:47 /etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf

/run/systemd/resolve/:
total 8
-rw-r--r-- 1 systemd-resolve systemd-resolve 920 Nov 20 10:08 stub-resolv.conf
-rw-r--r-- 1 systemd-resolve systemd-resolve 981 Nov 20 10:08 resolv.conf
srw-rw-rw- 1 systemd-resolve systemd-resolve   0 Nov 20 10:08 io.systemd.Resolve
[rocketmouse at archlinux extra-x86_64]$ diff PKGBUILD PKGBUILD.bak 7,8c7,8
< pkgname=clamav-lts
< pkgver=0.103.4
---
> pkgname=clamav
> pkgver=0.104.1
23c23
<
source=(https://www.clamav.net/downloads/production/${pkgname%-lts}-${pkgver}.tar.gz{,.sig}
---
> source=(https://www.clamav.net/downloads/production/${pkgname}-${pkgver}.tar.gz{,.sig}
27c27
< sha512sums=('SKIP'
---
> sha512sums=('2cd4f73de73a2bbc002e1aa85326ea30cce0073fc1a2d5d7d220465217a84eb97fac759010ae0af54d2f0ed725112a51a65a486491fa52388cd7652d7b5cfa5a'
29,31c29,31
<             'SKIP'
<             'SKIP'
<             'SKIP')
---
>             '9cb168c1c16bb43c99900d7ef34456e3f3b593d4d1943c875a0306bc86fd3872cb78e9e1413dcba93579e01b96d466c9eea1975e24190193663b7986c4525d48'
>             'c5443634399bd87fe0d0192518538ffdb7296a8437b5b0160a0fbd58696b01285de3237e3feb552c0095c49e576832dec2e2b2107eef2be42424ed7edd13cd19'
>             'b984836f6c34d97b90d81fa5d17361a2e3f8c0cc709e3350a4d25cf088dc04f7bf2504359980c8be489c96b1b8798c60e6da533069d3378d49d4f50f929a2c90')
[rocketmouse at archlinux extra-x86_64]$ makepkg -s
==> Making package: clamav-lts 0.103.4-1 (Sat 20 Nov 2021 10:39:07 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading clamav-0.103.4.tar.gz...
[snip]
--:--:--     0 curl: (22) The requested URL returned error: 403
==> ERROR: Failure while downloading
https://www.clamav.net/downloads/production/clamav-0.103.4.tar.gz.sig
Aborting...




3. ####

[rocketmouse at archlinux etc]$ sudo systemctl stop systemd-networkd.service; sudo systemctl stop systemd-resolved.service
[rocketmouse at archlinux etc]$ sudo mv -i resolv.conf resolv.conf.dangling_link && sudo mv -i resolv.conf-2021-11-20 resolv.conf

And just in case I rebooted :D.


More information about the arch-general mailing list