You are not logged in.
I am getting these errors when installing linux kernel in arch-chroot
pacman -S linuxResult:
[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 correctlyLast edited by MAYBL8 (2023-06-29 01:39:09)
Offline
You have a broken preset definition from trying to setup UKI in /etc/mkinitcpio.d/
Offline
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
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
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
It actually wasn’t a Manjaro question.
I was using Manjaro to arch-chroot into the Arch linux system because it was broke.
Offline
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
Not necessarily, PS1 stays the same when you chroot, so it would still say manjaro even inside.
Offline
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
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
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
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
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
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