You are not logged in.

#1 2023-12-29 18:37:09

QueenVakarian
Member
Registered: 2019-09-18
Posts: 19

[SOLVED] Pacstrap -K is invalid

I'm attempting to reinstall from the newest iso.

When I attempt to use pacstrap to install my kernel I'm getting the

ERROR: pacstrap: invalid option -- 'K'

In the man pages it says that option implies -G, but I don't know how to populate the empty keyring once the system is installed if I can't create it in the first place.


Side note: I'm using my phone and am without a PC, apologies if formatting or words are wonky.

Last edited by QueenVakarian (2023-12-29 19:30:29)

Offline

#2 2023-12-29 18:55:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: [SOLVED] Pacstrap -K is invalid

Given that you're using your phone I gather you retyped the error message rather than copied it directly.  Given that, can you confirm that you are trying to run the command with a capital -K not a lowercase -k?  The latter will report an error very much like what you quoted.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2023-12-29 19:00:29

QueenVakarian
Member
Registered: 2019-09-18
Posts: 19

Re: [SOLVED] Pacstrap -K is invalid

Yup. Its capital K that is failing. Ive even verified it now to make sure. Even -h says its invalid.

Offline

#4 2023-12-29 19:08:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: [SOLVED] Pacstrap -K is invalid

Then how about the following:

type pacstrap
pacman -Qo /bin/pacstrap
pacman -Qkk arch-install-scripts

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2023-12-29 19:14:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Pacstrap -K is invalid

Also check `uname -a`. I'm betting you don't have the newest ISO.

Offline

#6 2023-12-29 19:17:29

QueenVakarian
Member
Registered: 2019-09-18
Posts: 19

Re: [SOLVED] Pacstrap -K is invalid

pacstrap is /usr/bin/pacstrap

warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
/use/bin/pacstrap is owned by arch-install-scripts 24-2


warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
arch-install-scripts: 19 total files, 0 altered files

Last edited by QueenVakarian (2023-12-29 19:21:54)

Offline

#7 2023-12-29 19:19:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Pacstrap -K is invalid

The simple fact that you have 'community' proves this isn't the latest ISO.

Offline

#8 2023-12-29 19:20:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: [SOLVED] Pacstrap -K is invalid

As does the version of arch-install-scripts which would be from around 2 years ago.  The iso images have the date in the filename if I recall correctly, you can also confirm the checksum matches the current iso checksum.  If both of those are good, it would seem that the "dd" may have failed.  Did you sync the data to the flash drive (and / or wait for a "umount" command to finish) before removing the flash drive?

Last edited by Trilby (2023-12-29 19:23:39)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2023-12-29 19:22:52

QueenVakarian
Member
Registered: 2019-09-18
Posts: 19

Re: [SOLVED] Pacstrap -K is invalid

You're right! How does that happen? This was from the website. I used dd to write the iso to my flash drive over top of the old one.

The new one was labeled from December and everything. Signature checked passed. Everything green lit

Edit: Not sure what happened to cause the new iso to not be applied. Thank you for helping me sort that.

Marked as solved.

Last edited by QueenVakarian (2023-12-29 19:37:19)

Offline

Board footer

Powered by FluxBB