Reinstall-kernels command not found

When I got the second to last step I see:

error: config file /etc/pacman.conf, line 1: All directives must belong to a section.

is this any issue?

Here is the pacman.conf in question

--2023-08-20 01:53:38--  https://raw.githubusercontent.com/endeavouros-team/EndeavourOS-ISO/main/airootfs
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-08-20 01:53:38 ERROR 404: Not Found.

There was an error in the command.

I updated it above.

I’m getting the same error as above

This is the pacman.conf now, after the updated command

--2023-08-20 02:07:15--  https://raw.githubusercontent.com/endeavouros-team/EndeavourOS-ISO/main/airootfs/etc/pacman.conf
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8001::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2955 (2.9K) [text/plain]
Saving to: 'pacman.conf.1'

     0K ..                                                    100% 18.0M=0s

2023-08-20 02:07:15 (18.0 MB/s) - 'pacman.conf.1' saved [2955/2955]

Should I remove my current pacman.conf? Looks like it’s saving it as a different name.

Either remove it or just mv the file you downloaded over it.

I’m now getting

error: config file /etc/pacman.d/endeavouros-mirrorlist could not be read: No such file or directory

after running

pacman -Syu dracut kernel-install-for-dracut

ls of pacman.d shows only mirrorlist and gnupg

I just copied the folder to the expected name and tried re running the command.

I’ll update with results.

Dang, I was hoping that would work.

I got

error: failed retrieving file 'endeavouros.db' ... The requested URL returned error: 404

from all mirrors, actually it doesn’t say ALL mirrors. Maybe it just indicates the ones that failed.

and

error: failed to synchronize all databases (failed to retrieve some files)

at the end

wget https://mirror.moson.org/endeavouros/repo/endeavouros/x86_64/endeavouros-keyring-20230523-1-any.pkg.tar.zst
wget https://mirror.moson.org/endeavouros/repo/endeavouros/x86_64/endeavouros-mirrorlist-23.8-1-any.pkg.tar.zst
sudo pacman -U ./endeavouros-keyring-20230523-1-any.pkg.tar.zst
sudo pacman -U ./endeavouros-mirrorlist-23.8-1-any.pkg.tar.zst
sudo pacman -Syu dracut kernel-install-for-dracut
sudo pacman -S linux linux-headers

I don’t understand. Running the wget is saying it’s saving but when I run pacman it says it can’t find or read the package.

Oops. Let me fix that.

Try the commands now.

Thank you, that worked.

I ran the rest of the commands.

dracut: *** Creating image file '/efi/1b83a315d8414a2d8aeb173da11c8301/6.4.11-arch2-1/initrd' ***
dracut: Using auto-determined compression method 'gzip'
dracut: *** Creating initramfs image file '/efi/1b83a315d8414a2d8aeb173da11c8301/6.4.11-arch2-1/initrd' done ***
/usr/bin/env: 'python3': No such file or directory
/usr/lib/kernel/install.d/60-ukify.install failed with exit status 127.
Running in a chroot, skipping cmdline generation
[root@EndeavourOS /]# 

Is this anything to be worried about?

This seems wrong.

Try this:

sudo pacman -S python
sudo reinstall-kernels

Thanks, the commands have been run successfully.

1 Like

Try rebooting now

When I reboot it goes through but stops at

A start job is running for /dev/gpt-auto-root (x min / 1min 30s)

and times out.

Timed out waiting for device /dev/gpt-auto-root.
[DEPEND] Dependency failed for Root Partition.
[DEPEND] Dependency failed for Initrd Root File System.
[DEPEND] Dependency failed for Mountpoints Configured in the Real Root.
[DEPEND] Dependency failed for Initrd Root Device.
[DEPEND] Dependency failed for File System Check on /dev/gpt-auto-root.

it then proceeds to enter emergency mode.

Can I see the output of cat /efi/loader/entries/* and the contents of /et/fstab

cat output

[root@EndeavourOS /]# cat /efi/loader/entries/*
title      Arch Linux
version    6.1.46-1-lts-fallback
machine-id 1b83a315d8414a2d8aeb173da11c8301
sort-key   arch-6.1.46-1-lts-fallback
options    archisobasedir=arch archisolabel=EOS_202305 cow_spacesize=10G copytoram=n nvidia nvidia-drm.modeset=1 nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 nvme_load=yes module_blacklist=pcspkr systemd.machine_id=1b83a315d8414a2d8aeb173da11c8301
linux      /1b83a315d8414a2d8aeb173da11c8301/6.1.46-1-lts/linux
initrd     /1b83a315d8414a2d8aeb173da11c8301/6.1.46-1-lts/initrd-fallback
title      Arch Linux
version    6.1.46-1-lts
machine-id 1b83a315d8414a2d8aeb173da11c8301
sort-key   arch-6.1.46-1-lts
options    archisobasedir=arch archisolabel=EOS_202305 cow_spacesize=10G copytoram=n nvidia nvidia-drm.modeset=1 nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 nvme_load=yes module_blacklist=pcspkr systemd.machine_id=1b83a315d8414a2d8aeb173da11c8301
linux      /1b83a315d8414a2d8aeb173da11c8301/6.1.46-1-lts/linux
initrd     /1b83a315d8414a2d8aeb173da11c8301/6.1.46-1-lts/initrd
title      Arch Linux
version    6.4.11-arch2-1-fallback
machine-id 1b83a315d8414a2d8aeb173da11c8301
sort-key   arch-6.4.11-arch2-1-fallback
options    archisobasedir=arch archisolabel=EOS_202305 cow_spacesize=10G copytoram=n nvidia nvidia-drm.modeset=1 nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 nvme_load=yes module_blacklist=pcspkr systemd.machine_id=1b83a315d8414a2d8aeb173da11c8301
linux      /1b83a315d8414a2d8aeb173da11c8301/6.4.11-arch2-1/linux
initrd     /1b83a315d8414a2d8aeb173da11c8301/6.4.11-arch2-1/initrd-fallback
title      Arch Linux
version    6.4.11-arch2-1
machine-id 1b83a315d8414a2d8aeb173da11c8301
sort-key   arch-6.4.11-arch2-1
options    archisobasedir=arch archisolabel=EOS_202305 cow_spacesize=10G copytoram=n nvidia nvidia-drm.modeset=1 nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 nvme_load=yes module_blacklist=pcspkr systemd.machine_id=1b83a315d8414a2d8aeb173da11c8301
linux      /1b83a315d8414a2d8aeb173da11c8301/6.4.11-arch2-1/linux
initrd     /1b83a315d8414a2d8aeb173da11c8301/6.4.11-arch2-1/initrd
[root@EndeavourOS /]#   

/etc/fstab

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>

Your system is definitely not running EndeavourOS. That being said, we might as well continue at this point.

What does lsblk -o name,type,fstype,size,uuid output.