You are not logged in.

#1 2021-11-16 12:00:12

Alberto-Trujillo
Member
From: Poole, Dorset, UK
Registered: 2017-02-21
Posts: 26

[SOLVED] Install or repair?

Hi everyone,
Medium level user but a bit rusty.

I have a computer with Arch installed, but I haven't used it for 3 years.

Yesterday when I wanted to update, it wouldn't let me, due to a conflict with a package that I ended up uninstalling; now Arch doesn't want to boot.

Do you recommend a clean install or try to repair?

Regards,
Alberto

Last edited by Alberto-Trujillo (2021-11-27 15:23:41)


"I believe I never knew what the word 'round' meant until I saw the Earth from space."
(Aleksei Leonov)

Offline

#2 2021-11-16 12:24:36

tapajos
Member
Registered: 2021-11-14
Posts: 7

Re: [SOLVED] Install or repair?

I most definitely wouldn't blindly reinstall, as if you had nothing installed. I would boot with archiso, mount your device, pacstrap into your installation and reinstall the package you uninstalled.

Offline

#3 2021-11-16 15:17:01

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 5,905
Website

Re: [SOLVED] Install or repair?

You can use the Arch Linux Archive to upgrade the system in steps, paying careful attention to the news articles to ensure that any required intervention is performed correctly. But I think reinstalling will be easier and quicker.


There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.

— C.A.R. Hoare, The 1980 ACM Turing Award Lecture

Offline

#4 2021-11-16 16:07:06

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

Re: [SOLVED] Install or repair?

Alberto-Trujillo wrote:

... a package that I ended up uninstalling

And what package was that?

Alberto-Trujillo wrote:

... now Arch doesn't want to boot.

Did you ask it nicely?

Without real information no one could possibly give you an informed answer.  If you want to reinstall, and if you have a separate home partition, then you could reinstall while leaving the home partition untouched which should make getting back to roughly your intended current state much easier.


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

Offline

#5 2021-11-16 16:29:03

Alberto-Trujillo
Member
From: Poole, Dorset, UK
Registered: 2017-02-21
Posts: 26

Re: [SOLVED] Install or repair?

First of all I want to thank you for your responses.
I think the packet conflict is because the system has been unattended for years.
The reason why I have not given more details of the package that I uninstalled is because I cannot reload the system and I do not know how to boot with archiso.
Finally say that I do have a separate home partition.
Thanks again and have a nice day.


"I believe I never knew what the word 'round' meant until I saw the Earth from space."
(Aleksei Leonov)

Offline

#6 2021-11-16 16:39:52

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

Re: [SOLVED] Install or repair?

Alberto-Trujillo wrote:

... I do not know how to boot with archiso.

Then how would you even reinstall?


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

Offline

#7 2021-11-16 21:08:51

Alberto-Trujillo
Member
From: Poole, Dorset, UK
Registered: 2017-02-21
Posts: 26

Re: [SOLVED] Install or repair?

Trilby wrote:
Alberto-Trujillo wrote:

... I do not know how to boot with archiso.

Then how would you even reinstall?

Sorry if I didn't express myself well (English is not my first language); what i meant is that once i load the os from usb, i don't know how to go to hd and install the package i delete.


"I believe I never knew what the word 'round' meant until I saw the Earth from space."
(Aleksei Leonov)

Offline

#8 2021-11-16 21:14:40

Alberto-Trujillo
Member
From: Poole, Dorset, UK
Registered: 2017-02-21
Posts: 26

Re: [SOLVED] Install or repair?

This is what appears on the screen when I turn on the computer.

& Starting version 244.2-1-arch
deu/sda2: recovering journal
deu/sda2: clean, 201985/1638400 files, 2852244/6553600 blocks
sbin init: usr/lib/libc.so.6: version
"GLIBC_2.33° not found (required by usr/lib/libmount.so.1)
sbin init: usr/lib/libc.so.6: version
*GLIBC_2.33' not found (required by usr/lib/libblkid.so.1)
1.6191241 Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
4.619135] CPU: • PID: 1 Conm: init Not tainted 5.5.2-arch1-1 #1
4.619141] Harduare nane: System manufacturer System Product Mame/P5KPL-AM, BIOS 0603
4.619148] Call Trace:
08/20/2010
4.619161] dump_stack+0x66/0x90
4.619168] panic+0x112/exZeB
4.619175] do_exit.cold+Oxa7/Oxc1
4.619182]
4.6191921
x64 _sys_exit _group+0x14/0x20
4.619199] do_syscall_64+0x4e/0x150
4.619205]
entry_SYSCALL_64_after_huframe+0x44/Oxa9
4.619212] RIP: 0033:0x7170c140c83e
4.619218] Code: 89 la 41 bB e7 00 00 00 be 3c 00 00 00 eb 14 or 11 44 00 00 89 d7 89 fO of 05 48 3
4.619229] RSP:002b:00007ffedb5+Bf9B EFLAGS: 00000ZOZ ORIG_RAX: 00000000000000e7
4.619236] RAX: [fffffffffffffda RBX: 0000000000000000 RCX: 00007170c140cB3e
4.6192421RDX: 0000000000000001 RSI: 000000000000003 RDI:0000000000000001
4.6192481 RB: 0000000000000000 ROB: 00000000000000e7 R09: 000000000963c1B
4.6192541 R10: 00007170c140daB0 R11: 0000000000000zZ R12: 0000000000000000
4.619260] R13: 00007ffedb519070 R14: 0000000000000000 R15: 00007170c141c120
4.6192751 Kernel Offset: ®x35e00000 from Oxffffffff81000000 (relocation range: Oxffffffff80000000-
4.619285]
-[ end Kernel panic
- not syncing: Attempted to kill initt exitcode=0x00000100 ].


"I believe I never knew what the word 'round' meant until I saw the Earth from space."
(Aleksei Leonov)

Offline

#9 2021-11-16 23:04:50

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

Re: [SOLVED] Install or repair?

Alberto-Trujillo wrote:

what i meant is that once i load the os from usb, i don't know how to go to hd and install the package i delete.

There are several ways to do this - but first we should gather information.  This is easier anyways.

Once you load the os from the usb, mount your root partition with something like the following:

mount /dev/sda2 /mnt

You man need to replace the 2 in "sda2" with another number for your root partition, but I  think from the output you provided that'd be it.  Many common / simple partitioning schemes would have the root partition in position 2, so this is most likely.

Once mounted, you can retrieve the pacman.log from /mnt/var/log/pacman.log and upload it to a file sharing site:

curl -F 'f:1=<-' ix.io < /mnt/var/log/pacman.log

This will give you a short url in return.  Post that url here.

However, it looks like you may have removed glibc.  If that's the case, fixing it would take several steps: you'd need to first get an appropriately old glibc from the arch linux archive mirror, install that with pacman's "-r" flag to install to the mounted partition at /mnt, then chroot (with arch-chroot), and then walk through several updates with the arch linux archive and addressing any manual interventions from the news along the way.

This would be an excellent learning experience - if you were ready for it.  But your questions and answers suggest you are not.  It may be hard for members here to walk you through the full solution.  But that does not mean reinstalling arch linux would be wise: why use arch at all?  You should get some experience with a more "user-friendly" distro first.  Debian may be good for you.


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

Offline

#10 2021-11-17 10:44:02

Alberto-Trujillo
Member
From: Poole, Dorset, UK
Registered: 2017-02-21
Posts: 26

Re: [SOLVED] Install or repair?

Thank you very much Trilby,
I don't want to bother with my questions.
I really like Archi and I am willing to learn.
You have already put me in the right direction. Now I have to get down to work and document myself well; If I am very stuck I will ask.
Thanks ?


"I believe I never knew what the word 'round' meant until I saw the Earth from space."
(Aleksei Leonov)

Offline

#11 2021-11-27 15:22:44

Alberto-Trujillo
Member
From: Poole, Dorset, UK
Registered: 2017-02-21
Posts: 26

Re: [SOLVED] Install or repair?

Hi everyone again,

Sorry for leaving the topic open for so long; actually right now I'm about to mark it as [SOLVED].

I am sorry to say that I was not able to restore my system to the previous state (I suppose my level of knowledge is very poor).
I have reinstalled Arch, and I currently have the system almost as it was before. Although I have invested a lot of time, I suppose it has helped me to learn many things.

I appreciate the help you have offered me, we continue to see each other.

Have a great day! Regards,
Alberto


"I believe I never knew what the word 'round' meant until I saw the Earth from space."
(Aleksei Leonov)

Offline

Board footer

Powered by FluxBB