You are not logged in.
Pages: 1
I tried to install arch using official guide.
After command:
pacstrap /mnt base base-devel
I used:
arch-chroot /mnt
When I tried to install some program, bash said:"command not found"
I tried to install pacman by myself:
pacstrap /mnt pacman
But output of this command was:
==> Creating install root at /mnt
==> Installing packages to /mnt
error: failed to initialize alpm library
(database is incorrect version: /mnt/var/lib/pacman/)
try running pacman-db-upgrade
==> ERROR: Failed to install packages to new root
And pacman-db-upgarde didn't helped without arch-chroot. When I used it after arch-chroot, command-db-upgrade: command not found.
Offline
pacstrap does install pacman, but you tried to run pacman from within the chroot ?
I'm not 100% sure, but think that's not supposed to work unless the installed system is completely configured.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
Before of that I tried to install arch on vitual box machine. This method works
On virtual box machine I have not the same problem
Offline
Now, I understand that not only pacman wasn't installed. I have no text editor on system, even sed wasn't installed.
Before of that I can't execute locale-gen
Offline
What is the content of /mnt/var/lib/pacman/local/ALPM_DB_VERSION
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Now, I understand that not only pacman wasn't installed. I have no text editor on system, even sed wasn't installed.
Before of that I can't execute locale-gen
Clearly the initial pacstrap command failed. But without knowing what errors it produced there's little that could be done here.
Perhaps the pacman.log from the new system (/mnt/var/log/pacman.log) would help if that exists (the initial pacstrap command logs to this file even if pacman never gets installed).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Content of /mnt/var/lib/pacman/local/ALPM_DB_VERSION is [ 'square' #(in white background)
Offline
Content of /mnt/var/log/pdman.log is many random symbols
Offline
This seems like more than just a failed pacstrap command, this sound like the drive you tried to install Arch on is failing. Check it's health with smartctl.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Can you post that pacman log to a file sharing site?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I have no programs to share files and can't install it because of my problem
Offline
I think problem is corrupted usb-flash. I tried to install arch on it
Offline
You have curl, you can install nopaste or similar tools in the live environment. But I agree it's likely a bad drive - especially if it was a usb flash drive. I just wanted to get to the bottom of what "random symbols" meant.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Something probably went wrong in the installation process. Did you see pacman, vi, etc. in the list of programs that will be installed on /mnt ?
Offline
# mount /dev/sdaX /mnt
# pacstrap /mnt base
# arch-chroot /mnt
(arch-root) # pacman-db-upgrade
Thanks for sharing.
Offline
Pages: 1