You are not logged in.

#1 2023-06-28 12:19:04

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 409
Website

[SOLVED] error when installing linux kernel inside arch-chroot

I am getting these errors when installing linux kernel in arch-chroot

 pacman -S linux

Result:

[root@Manjaro /]# pacman -S linux
warning: linux-6.3.9.arch1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-6.3.9.arch1-1

Total Installed Size:  146.85 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                  [----------------------------------------------] 100%
(1/1) checking package integrity                                                [----------------------------------------------] 100%
(1/1) loading package files                                                     [----------------------------------------------] 100%
(1/1) checking for file conflicts                                               [----------------------------------------------] 100%
(1/1) checking available disk space                                             [----------------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling linux                                                        [----------------------------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
/usr/share/libalpm/scripts/mkinitcpio: line 29: declare: `fallback _image': invalid variable name for name reference
/usr/share/libalpm/scripts/mkinitcpio: line 29: declare: `fallback _uki': invalid variable name for name reference
/usr/share/libalpm/scripts/mkinitcpio: line 29: declare: `fallback _kver': invalid variable name for name reference
error: command failed to execute correctly

Last edited by MAYBL8 (2023-06-29 01:39:09)

Offline

#2 2023-06-28 14:58:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,245

Re: [SOLVED] error when installing linux kernel inside arch-chroot

You have a broken preset definition from trying to setup UKI in /etc/mkinitcpio.d/

Online

#3 2023-06-28 15:03:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,652

Re: [SOLVED] error when installing linux kernel inside arch-chroot

If you are installing Arch Linux, you have the wrong install media,

[root@Manjaro /]

Closing and dust binning.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2023-06-28 21:25:04

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 409
Website

Re: [SOLVED] error when installing linux kernel inside arch-chroot

I had a legitimate problem and was asking for help.
I got an answer here that didn't help me fix the problem.
I guess I wasn't smart enough to understand the answer.

Anyway I figured out the problem myself and was going to post the answer but the post wasn't there for me to do it.

Thanks

Offline

#5 2023-06-28 21:25:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,652

Re: [SOLVED] error when installing linux kernel inside arch-chroot

Because it was a Manjaro question.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2023-06-28 21:27:58

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 409
Website

Re: [SOLVED] error when installing linux kernel inside arch-chroot

It actually wasn’t a Manjaro question.
I was using Manjaro to arch-chroot into the Arch linux system because it was broke.

Offline

#7 2023-06-28 23:57:44

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

Re: [SOLVED] error when installing linux kernel inside arch-chroot

Maybe you intended to, but you were not.  You showed output from a pacman command run on a manjaro system.  EDIT: I did indeed base this conclusion on the PS1 as I was pretty sure it changed in a chroot, but according to the next post this may not be the case.

Last edited by Trilby (2023-06-29 01:33:42)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2023-06-29 00:01:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] error when installing linux kernel inside arch-chroot

Not necessarily, PS1 stays the same when you chroot, so it would still say manjaro even inside.

Offline

#9 2023-06-29 00:03:10

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 409
Website

Re: [SOLVED] error when installing linux kernel inside arch-chroot

I had to boot to a system that was working so I could arch-chroot into the broken arch system.
I had a working Manjaro so I used that.

Was that the wrong way to do it?

Offline

#10 2023-06-29 01:20:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,652

Re: [SOLVED] error when installing linux kernel inside arch-chroot

The real problem is when you chroot into the system, you are still using the kernel from the boot media.  We have no idea how that kernel has been configured.  We can guess, but that it is not our purview.

I'll make you a deal.  Download the Arch iso, build install media and boot from it to work from.  If you do that, I will revive your original thread and merge this thread into it.  We can start again from there.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#11 2023-06-29 01:25:25

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 409
Website

Re: [SOLVED] error when installing linux kernel inside arch-chroot

Thank you for working with me on this.
That is probably why I had issues fixing the problem.
It turned out there was a .pacsave or some name like that file . When I deleted it the problem was solved.

I will create the flash drive from arch.
I have created a script for that .
Thanks

Offline

#12 2023-06-29 01:31:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,652

Re: [SOLVED] error when installing linux kernel inside arch-chroot

Re-opened original thread and merged in discussion of why it had been closed.  The reasons for having attempted to use a non-Arch kernel seem reasonable.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#13 2023-06-29 01:32:02

NuSkool
Member
Registered: 2015-03-23
Posts: 293

Re: [SOLVED] error when installing linux kernel inside arch-chroot

EDIT: I did indeed base this conclusion on the PS1 as I was pretty it changed in a chroot, but according to the next post this may not be the case.

IIRC, The PS1 switching in arch-chroot, from base system to chrooted system has changed at some point. Seems to me PS1 used to change to the chrooted system, but I'm unsure of when or even 100% sure PS1 behavior did change. Perhaps someone can clarify this?

I can confirm that as of a few days ago, PS1 remains showing the system running arch-chroot, after chrooting into a different system.

OP to your last question, I'm responding as someone who's used Arch for well over a decade. No and who cares anyway. You had to chroot into your system and you did what you had to with what you had available. If you're working on an Arch system, and don't agree with how this forum reacted, you'd be far from the first one to prefer finding an alternative support channel. Seems this forum is well known for, lets just say, over reacting a bit in the enforcement department.

Trilby's #1 fan!

EDIT: I see additional post's made while I was working on this one. Glad to see things worked out!

Last edited by NuSkool (2023-06-29 01:33:35)


Scripts I Use                                                 :  https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo    : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics

Offline

#14 2023-06-29 01:38:30

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 409
Website

Re: [SOLVED] error when installing linux kernel inside arch-chroot

I will mark this as solved.
I like the support here. I’m not leaving.
I am learning arch and have grown to appreciate it.
I appreciate your patience with me and others trying to learn.
Thanks
Dan

Offline

Board footer

Powered by FluxBB