You are not logged in.

#1 2025-09-11 07:07:46

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

[SOLVED] extra.db failed to download

I try to install Arch Linux KDE on a Lenovo F0CK000LFR with this install script:

fdisk /dev/sda<<<'n


133119
n


968373959
n


976762567
n


1953525134
w'
mkfs.fat /dev/sda1
mkfs.ext4 /dev/sda2 -E root_perms 777
mkswap /dev/sda3
mkfs.ext4 /dev/sda4 -E root_perms 777
mount /dev/sda2 /mnt
mount --mkdir /dev/sda1 /mnt/efi
mkdir /mnt/efi/efi
mkdir /mnt/efi/efi/boot
mkdir /mnt/etc
mkdir /mnt/etc/mkinitcpio.d
echo -e ALL_kver=/boot/vmlinuz-linux'\'nPRESETS=default'\'ndefault_uki=/efi/efi/boot/bootx64.efi>/mnt/etc/mkinitcpio.d/linux.preset
echo HOOKS='('base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems resume fsck')'>/mnt/etc/mkinitcpio.conf
mkdir /mnt/etc/kernel
echo root=/dev/disk/by-id/ata-WDC_WD10JPVX-08JC3T6_WD-WXU1AA6PDZNT-part2 resume=/dev/disk/by-id/ata-WDC_WD10JPVX-08JC3T6_WD-WXU1AA6PDZNT-part3 rw>/mnt/etc/kernel/cmdline
sed -i '92s/#//
93s/#//' /etc/pacman.conf
pacstrap -K /mnt base linux f2fs-tools dosfstools ntfs-3g man-db nano sudo linux-firmware-amdgpu plasma-meta kde-applications-meta
arch-chroot /mnt bash -c "rm /var/cache/pacman/pkg/*
systemctl enable NetworkManager sddm
ln -s /usr/share/zoneinfo/UTC /etc/localtime
hwclock -w
echo -e /dev/disk/by-id/ata-WDC_WD10JPVX-08JC3T6_WD-WXU1AA6PDZNT-part1 /efi'\'n/dev/disk/by-id/ata-WDC_WD10JPVX-08JC3T6_WD-WXU1AA6PDZNT-part3 none swap>/etc/fstab
sed -i 15,17d /usr/lib/tmpfiles.d/var.conf
rm /var/log/wtmp /var/log/btmp /var/log/lastlog
useradd -m a
sed -i '1s/x//
'$'s/x//' /etc/passwd
sed -i '122d
136s/# //' /etc/sudoers
sed -i '92s/#//
93s/#//' /etc/pacman.conf
echo unset HISTFILE>>/etc/bash.bashrc"

but it fails with among other this message:
extra.db failed to download

A photo:
https://drive.google.com/file/d/14sKg5j … 8jnLzGXj09

Last edited by jebez (2025-09-12 23:23:11)

Offline

#2 2025-09-11 13:22:25

zaid1
Member
Registered: 2025-09-11
Posts: 3

Re: [SOLVED] extra.db failed to download

The errors you are getting with extra.db failed to download and Failure writing output to destination are not really caused by your script but by network or mirror problems. It looks like the live environment cannot download package databases from the mirrors you are using, either because the mirrors are down, slow, or there is a network problem. You should first check that your internet works by running ping -c 3 archlinux.org. For wired connection you can start dhcpcd by dhcpcd and for wifi use iwctl then inside list devices device list scan station <device> scan and connect station <device> connect <SSID.

Another common reason is bad mirrors. Some of the mirrors in your log are failing completely. You can update them with reflector by running reflector --country YOUR_COUNTRY --latest 5 --sort rate --save /etc/pacman.d/mirrorlist and then test them with pacman -Syy. If these download successfully then you can re-run pacstrap with your packages. If it still fails try changing to a different country or a more reliable mirror manually.

Also a note about your script, creating /mnt/etc and editing mkinitcpio and pacman configs manually is unusual and can cause problems. Multi-line arch-chroot commands sometimes break if quotes are wrong, and fdisk scripting with fdisk /dev/sda<<<'n ... w' is risky. It is usually better to simplify the script, make sure network and mirrors work first, and then run pacstrap cleanly. Once network and mirrors are good, the install should succeed.

Offline

#3 2025-09-11 14:23:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

https://mirror.osbeck.com/archlinux/ext … 4/extra.db is fine and core and multilib worked.
What kerrnel is this 6.16.{2,3,4} had a major bug in the network stack, https://bbs.archlinux.org/viewtopic.php?id=307847

Offline

#4 2025-09-12 06:28:44

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

Well can you just tell me what to do?

Offline

#5 2025-09-12 06:48:36

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [SOLVED] extra.db failed to download

Does it work if you boot with linux-lts instead?


Jin, Jîyan, Azadî

Offline

#6 2025-09-12 06:58:49

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

The lts kernels were affected as well, 6.16.1 or 6.16.5 would not be.
If you're running into this there's nothing you "can do" - thus "major bug"

Offline

#7 2025-09-12 07:06:04

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

https://archlinux.org/packages/core/x86_64/linux/ is bugged? Wait the new version? When?

Offline

#8 2025-09-12 07:56:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

6.16.5 would NOT be affected by the known network bug, but wdk what kernel you're currently booting.
Check "uname -a" on your installation attempt.

Offline

#9 2025-09-12 08:05:48

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

Not you read my install script?
pacstrap -K /mnt base linux ... so it's https://archlinux.org/packages/core/x86_64/linux/ .

Offline

#10 2025-09-12 08:09:20

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

The relevant kernel is the one that *boots*, not the one you're trying and failing to download roll

Offline

#11 2025-09-12 08:20:18

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

It's the latest archlinux-2025.09.01-x86_64.iso .

uname -r
6.16.4-arch1-1

Should I try https://archlinux.org/releng/netboot/ ? But https://bbs.archlinux.org/viewtopic.php?id=302688 ...

Last edited by jebez (2025-09-12 08:24:56)

Offline

#12 2025-09-12 08:23:03

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

No, you'd try an older image w/ a kernel < 6.16.2 or wait for the october release.

Offline

#13 2025-09-12 08:40:02

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

I booted https://archlinux.org/static/netboot/ipxe-arch.efi , it offers the 3 latest months (july august september), wait october omg...
So what is the latest month, archlinux-2025.*.01-x86_64.iso that would works?

Last edited by jebez (2025-09-12 08:44:43)

Offline

#14 2025-09-12 13:18:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

https://gitlab.archlinux.org/archlinux/ … mmits/main
6.16.2 was packaged Aug 20, 2025 so everything before that will not have that but.
Whether it will work, we'll see - the reason for the perceived behavior is so far speculative.

Offline

#15 2025-09-12 14:44:07

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

https://archlinux.org/releng/releases/2025.08.01/
archlinux-2025.08.01-x86_64.iso
same issue.

This Lenovo F0CK000LFR has only 4 GB of RAM, not enough maybe?

Offline

#16 2025-09-12 14:48:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

No, the problem is the network, not your RAM.
Is there a VPN or PiHole or stuff like that involved? Weak WIFI?
Only extra.db fails?
Does https://wiki.archlinux.org/title/Tethering work?

Offline

#17 2025-09-12 15:00:38

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

Only Ethernet.
Yes.
Tethering? By USB? Why?

Internet works, e.g.

ping archlinux.org

Last edited by jebez (2025-09-12 15:03:48)

Offline

#18 2025-09-12 15:04:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

ping has a minuscule package size and you're apparently only failing on downloading an 8MB file.
Using your phone as external ethernet device should side-step pot. driver errors, we'll have to check what's wrong w/ your network stack and that will ideally involve uploading the journal after the failure (to the internet…)

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#19 2025-09-12 15:31:26

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

Offline

#20 2025-09-12 15:41:20

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

There's no obvious error but that's 6.16.4-arch1-1

Offline

#21 2025-09-12 16:15:14

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

Yes I reput archlinux-2025.09.01-x86_64.iso on the USB key, since same issue with archlinux-2025.08.01-x86_64.iso .

Googling "arch linux requirements" & https://wiki.archlinux.org/title/Main_page , Search "requirements" I not officially found, sure 4 GB of RAM is possible? archlinux-2025.09.01-x86_64.iso weighs 1.4 GiB...
As the install script there's swap on /dev/sda3, I inserted

...
mkswap /dev/sda3
swapon /dev/sda3
...

but still the issue, can the .iso use swap?

Last edited by jebez (2025-09-12 16:18:47)

Offline

#22 2025-09-12 19:04:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

It's not your RAM.
From the iso (use the 08.01 one) try to

curl -vL 'https://mirror.osbeck.com/archlinux/extra/os/x86_64/extra.db' > /dev/null 2> /tmp/curl.log # this is gonna take a moment
cat /tmp/curl.log | curl -F 'file=@-' 0x0.st

And: test the behavior w/ a tethering device.
Also I'm not sure whether you've answered to

Is there a VPN or PiHole or stuff like that involved?

Notably VPNs will get you into MTU issues.

Offline

#23 2025-09-12 23:22:48

jebez
Member
From: France
Registered: 2025-01-15
Posts: 165

Re: [SOLVED] extra.db failed to download

Nevermind I found!
In the install script remove

-E root_perms 777

by instead

...
mount /dev/sda2 /mnt
chmod 777 /mnt
...

-E root_perms 777 seems bugged, should I create a bug report? Also with mkfs.f2fs & mkfs.fat there isn't such option...

Offline

#24 2025-09-13 06:34:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,096

Re: [SOLVED] extra.db failed to download

The root partition should™ be 755 itfp, but that doesn't explain the errors in your OPs picture at all.

Offline

Board footer

Powered by FluxBB