[solved] Pakfire addons not available after install 192

DOWNLOAD ERROR: The downloaded file (2.29-aarch64/lists/server-list.db) wasn't verified by IPFire.org. Sorry - Exiting...

Network an DNS connections seem work normally.

[root@ipfire ~]# pakfire update --force
server-list.db       100.00% |=============================>|    2.11 KB
DOWNLOAD ERROR: The downloaded file (2.29-aarch64/lists/server-list.db) wasn't verified by IPFire.org. Sorry - Exiting...
TIME INFO: Time Server 194.50.19.204 has +0.006133 sec offset to localtime.
[root@ipfire ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=15.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=14.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=118 time=14.3 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=118 time=14.0 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=118 time=14.1 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=118 time=14.3 ms
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 14.040/14.337/15.000/0.317 ms
[root@ipfire ~]# nslookup heise.de
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   heise.de
Address: 193.99.144.80
Name:   heise.de
Address: 2a02:2e0:3fe:1001:302::

What can Ido?

The time difference is not enough to be causing a problem with pakfire working.
The most likely issue is that the DNS is not working as required.

On your WUI DNS page is your DNS showing a green Working at the top left hand side and if you press the Check DNS Servers button do all your DNS servers show up as a green OK?

1 Like

Got it, trustdb.gpg should not have a length of 0. Copied the file from the old stick and now it is fine.

[root@ipfire .gnupg]# ls -la
total 16
drwx------ 2 root root 4096 Mar 16 20:30 .
drwxr-xr-x 3 root root 4096 Feb 20 03:34 ..
-rw------- 1 root root 3444 Feb 20 03:57 pubring.gpg
-rw------- 1 root root 1161 Feb 20 03:34 pubring.gpg~
-rw------- 1 root root    0 Feb 20 03:34 secring.gpg
-rw------- 1 root root    0 Feb 20 03:34 trustdb.gpg
[root@ipfire .gnupg]# ls -la
total 20
drwx------ 2 root root 4096 Mar 16 20:30 .
drwxr-xr-x 3 root root 4096 Feb 20 03:34 ..
-rw------- 1 root root 3444 Feb 20 03:57 pubring.gpg
-rw------- 1 root root 1161 Feb 20 03:34 pubring.gpg~
-rw------- 1 root root    0 Feb 20 03:34 secring.gpg
-rw------- 1 root root 1200 Mar 16 20:12 trustdb.gpg
[root@ipfire .gnupg]# pakfire update --force
server-list.db       100.00% |=============================>|    2.05 KB
packages_list.db     100.00% |=============================>|    4.56 KB
core-list.db         100.00% |=============================>|   903.00 B
[root@ipfire .gnupg]#

How did you end up with an empty trustdb.gpg.

None of my 4 systems have ended up with that.

Is there any indication in the Core Update logs of the trustdb.gpg file being replaced with an empty file?

/var/log/pakfire/update-core-upgrade-192.log

1 Like

Gentlemen,

I’m jumping in from my own thread

Here is my directory after core 192 installed from scratch and restore frorm backup 190, both on rpi 4b.
Installed from scratch because update 190 → 192 walked through but crashed at reboot & fsck.

[root@ipfire .gnupg]# ls -la
total 16
drwx------ 2 root root 4096 Mar 16 21:15 .
drwxr-xr-x 3 root root 4096 Feb 20 03:34 …
-rw------- 1 root root 3444 Mar 15 11:02 pubring.gpg
-rw------- 1 root root 1161 Feb 20 03:34 pubring.gpg~
-rw------- 1 root root 0 Feb 20 03:34 secring.gpg
-rw------- 1 root root 0 Feb 20 03:34 trustdb.gpg
[root@ipfire .gnupg]#

These files cannot be found on github or did I miss something?
I’m going to have a look in older backups tomorrow in the evening…

I did a new installation from 192 img.gz on a pi4 on a 2nd stick, today. /var/log/pakfire/is empty, no logs at the moment.

I crashed from 190 → 191. If there is no other quick solution, send me a message and I’ll send you the file with mail.

I did a fresh install of CU192 yesterday and it has the trustdb.gpg with a date and time from when the install was done.

Screenshot_2025-03-17_09-49-19

What I struggle with in your quoted list

is that the date is from Feb 20 2025, except for the pubring.gpg which has a date of Mar 15.

On my main production IPFire system, which was installed back in 2023, when my hardware died, then all the files have the same date of Jun 26 2023. So the pubring.gpg has not been altered in any way despite having every CU implemented between then and now.

I am struggling to figure out what has happened on your system and have been totally unable to reproduce it.

Restoring from previous versions will also not change these files as they are not in the backup.

I believe they are created as part of the pakfire updating lists etc process but I am not sure of that but they are present after the installation and don’t get changed again in any upgrade or restore process.

The pubring.gpg contains the two public keys that are in the git repo.

https://git.ipfire.org/?p=ipfire-2.x.git;a=tree;f=src/pakfire;h=78ea2e949fa4fde45b0480aa5e7a6b3053489627;hb=refs/heads/next

Here is the content from the pubring.gpg from the system I installed yesterday
Screenshot_2025-03-17_10-03-06

and here from the one installed back in June 2023
Screenshot_2025-03-17_10-04-04

So the contents will be the same whatever the age but the date shouldn’t change again after being initially installed.

1 Like

the .gpg dir seems not present inside img.gz, it seems be created atter update during boot. My older versions have a timstamp from 9th feb, but the content seems similar…

1 Like

but do you also have the trustdb.gpg as an empty file as @firecherry has had.

Are both of your problems showing the same symptoms?

The only time anything has changed with what is created in the .gnupg directory was back in CU167 when the old 2007 IPFire key was deleted and the 2022 IPFire key was introduced.

This change was managed as part of the update.sh script for CU167.

https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=config/rootfiles/oldcore/167/update.sh;hb=9ea9c5354824324fd31be12873c2eb7287d39fea#l371

No, the trustdb from 9th feb was from 190 and has content. Maybe it was recreated during the update to 190. The update to 191 had crashed my system so I did a new setup with 192 and a new stick and I was able to copy the file.

Reading up about the trustdb.gpg file it looks like it is initially created as part of the first importing of the keys that IPFire uses. It doesn’t get updated again until something changes, like an old key gets deleted and/or a new one gets created and imported.

The import of the 2018 and 2022 IPFire keys is done via the pakfire initscript that is run when IPFire is first installed and then at every reboot.

https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=src/initscripts/system/pakfire;hb=9ea9c5354824324fd31be12873c2eb7287d39fea#l30

However, after the first update of the trustdb.gpg file all further imports are of the same keys so no change to the trustdb would be needed.

That’s the bit I don’t understand, as you are saying that you do a fresh install of CU192 and the trustdb.gpg file has a size of 0, after you have finished installation.

I have not been able to reproduce that.

The only other difference I see in our installations is that you are doing an aarch64 installation, whereas mine is a x86_64 one.

Someone else who has arm systems needs to try and do a fresh install of aarch64 and see if they end up with an empty trustdb.gpg file or not.

EDIT:
I had found out that since version 7.1.0 VirtualBox can run arm and macos virtual systems so I thought I would be able to test this out but the IPFire aarch64 iso is not seen as bootable by VirtualBox. I suspect this might be due to IPFire’s arm using uboot.

So still need someone else with an arm system that they can test out with a fresh install of CU192 to see what they find with the trustdb.gpg file.

1 Like

Gentlemen,

pakfire is not in trouble with to much differences of time.

pakfires empty trustdb.gpg in Core 192 for rpi can be fixed with the hints from this older thread:

In the next days I will go on with broken n2n…

Hint: roadwarrior blocks for 24 hours if you try to login too many times…

Good night.

2 Likes