You are not logged in.

#1 2024-05-16 23:07:04

noahdaboat
Member
Registered: 2024-05-16
Posts: 6

Arch won't boot after partial upgrade

Hi all,
I recently attempted to update my computer after ~2 months of no update (dumb choice I know), and now I cannot get it to boot.

When I was doing my initial update, there were several conflicts and the update didn't go through, which first broke pacman. I started using pacman-static in an attempt to remove and re-download the broken/missing packages, but this only made things worse.

I restarted my computer and now I had two 'failed' errors.

Following this, I booted into an ISO off a USB, and I ran mkinitcpio, which made the boot errors go away, but the computer still won't boot.

I tried to run -S linux, but I get: "Error connecting: Could not connect: No such file or directory"

Any guidance/advice would be appreciated.

Thank you.

Last edited by noahdaboat (2024-05-16 23:11:04)

Offline

#2 2024-05-17 01:19:39

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

Re: Arch won't boot after partial upgrade

That sounds like a quagmire.  I would seriously consider reinstalling.
Otherwise, you should set up a chroot and use that as a foundation from which to fix things.

https://wiki.archlinux.org/title/Chroot


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

#3 2024-05-17 03:53:59

noahdaboat
Member
Registered: 2024-05-16
Posts: 6

Re: Arch won't boot after partial upgrade

It's seeming like I might have to reinstall.
I did actually mount my drive and used arch-chroot to try and resolve some conflicts/missing packages, but there's so many issues haha.

Offline

#4 2024-05-17 05:41:31

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Arch won't boot after partial upgrade

Since almost nothing in the installation process touches files not owned by packages, you can safely delete around your own files. I'd make a backup of /etc in case you have changed anything interesting. I'd also be careful with discarding /var, as some programs store their data there. If you have the free space, you could move everything on your root partition to something like /oldroot and merge back what's missing later. I'd say if you manage to get a list of explicitly installed packages on your current setup, you've mostly won.

Offline

#5 2024-05-17 07:02:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Arch won't boot after partial upgrade

Boot the install iso, mount the partitions of the installed system into /mnt and optionally /mnt/boot if you've a boot partition (you can leave your /home alone),  do NOT chroot into the system, make sure you've an internet connection and run

LC_ALL=C pacman -root /mnt -Qkk  | grep -v ', 0 altered files' > /tmp/howbadisit.txt
cat /tmp/howbadisit.txt | curl -F 'file=@-' 0x0.st

and post the link you get in return.
(don't skip the file cache, pacman might run so long that the curl connection times out)

Offline

#6 2024-05-17 07:06:34

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,463

Re: Arch won't boot after partial upgrade

Not strictly related to the actual problem, but for the future you can update in little steps by using the Archlinux archive.

https://wiki.archlinux.org/title/Arch_Linux_Archive


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#7 2024-05-17 18:25:54

noahdaboat
Member
Registered: 2024-05-16
Posts: 6

Re: Arch won't boot after partial upgrade

seth wrote:

Boot the install iso, mount the partitions of the installed system into /mnt and optionally /mnt/boot if you've a boot partition (you can leave your /home alone),  do NOT chroot into the system, make sure you've an internet connection and run

LC_ALL=C pacman -root /mnt -Qkk  | grep -v ', 0 altered files' > /tmp/howbadisit.txt
cat /tmp/howbadisit.txt | curl -F 'file=@-' 0x0.st

and post the link you get in return.
(don't skip the file cache, pacman might run so long that the curl connection times out)

Just a little confused about the pacman -root part, it's trying to set root: oot and dbpath: oot/var/lib/pacman

Offline

#8 2024-05-17 19:05:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Arch won't boot after partial upgrade

Ah, sorry - it's "--root", obviously.

Offline

#9 2024-05-18 00:02:19

noahdaboat
Member
Registered: 2024-05-16
Posts: 6

Re: Arch won't boot after partial upgrade

I was having issues with the site, but here's the output:

backup file: cups: /mnt/etc/cups/printers.conf (Modification time mismatch)
backup file: cups: /mnt/etc/cups/printers.conf (Size mismatch)
backup file: cups: /mnt/etc/cups/printers.conf (SHA256 checksum mismatch)
cups: 946 total files, 2 altered files
backup file: filesystem: /mnt/etc/fstab (Modification time mismatch)
backup file: filesystem: /mnt/etc/fstab (Size mismatch)
backup file: filesystem: /mnt/etc/fstab (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/group (Modification time mismatch)
backup file: filesystem: /mnt/etc/group (Size mismatch)
backup file: filesystem: /mnt/etc/group (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/gshadow (Modification time mismatch)
backup file: filesystem: /mnt/etc/gshadow (Size mismatch)
backup file: filesystem: /mnt/etc/gshadow (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/passwd (Modification time mismatch)
backup file: filesystem: /mnt/etc/passwd (Size mismatch)
backup file: filesystem: /mnt/etc/passwd (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/resolv.conf (Modification time mismatch)
backup file: filesystem: /mnt/etc/resolv.conf (Size mismatch)
backup file: filesystem: /mnt/etc/resolv.conf (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/shadow (Modification time mismatch)
backup file: filesystem: /mnt/etc/shadow (Size mismatch)
backup file: filesystem: /mnt/etc/shadow (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/shells (Modification time mismatch)
backup file: filesystem: /mnt/etc/shells (Size mismatch)
backup file: filesystem: /mnt/etc/shells (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/subgid (Modification time mismatch)
backup file: filesystem: /mnt/etc/subgid (Size mismatch)
backup file: filesystem: /mnt/etc/subgid (SHA256 checksum mismatch)
backup file: filesystem: /mnt/etc/subuid (Modification time mismatch)
backup file: filesystem: /mnt/etc/subuid (Size mismatch)
backup file: filesystem: /mnt/etc/subuid (SHA256 checksum mismatch)
filesystem: 124 total files, 1 altered file
backup file: glibc: /mnt/etc/locale.gen (Modification time mismatch)
backup file: glibc: /mnt/etc/locale.gen (Size mismatch)
backup file: glibc: /mnt/etc/locale.gen (SHA256 checksum mismatch)
intel-ucode: 159 total files, 1 altered file
java-runtime-common: 21 total files, 2 altered files
backup file: kscreenlocker: /mnt/etc/pam.d/kde (Modification time mismatch)
backup file: kscreenlocker: /mnt/etc/pam.d/kde (Size mismatch)
backup file: kscreenlocker: /mnt/etc/pam.d/kde (SHA256 checksum mismatch)
libutempter: 20 total files, 1 altered file
backup file: mkinitcpio: /mnt/etc/mkinitcpio.conf (Modification time mismatch)
backup file: mkinitcpio: /mnt/etc/mkinitcpio.conf (Size mismatch)
backup file: mkinitcpio: /mnt/etc/mkinitcpio.conf (SHA256 checksum mismatch)
backup file: packagekit: /mnt/var/lib/PackageKit/transactions.db (Modification time mismatch)
backup file: packagekit: /mnt/var/lib/PackageKit/transactions.db (Size mismatch)
backup file: packagekit: /mnt/var/lib/PackageKit/transactions.db (SHA256 checksum mismatch)
backup file: pacman: /mnt/etc/pacman.conf (Modification time mismatch)
backup file: pacman: /mnt/etc/pacman.conf (Size mismatch)
backup file: pacman: /mnt/etc/pacman.conf (SHA256 checksum mismatch)
backup file: pacman-mirrorlist: /mnt/etc/pacman.d/mirrorlist (Modification time mismatch)
backup file: pacman-mirrorlist: /mnt/etc/pacman.d/mirrorlist (Size mismatch)
backup file: pacman-mirrorlist: /mnt/etc/pacman.d/mirrorlist (SHA256 checksum mismatch)
pdal: 384 total files, 1 altered file
shadow: 588 total files, 1 altered file
backup file: systemd: /mnt/etc/systemd/timesyncd.conf (Modification time mismatch)
backup file: systemd: /mnt/etc/systemd/timesyncd.conf (Size mismatch)
backup file: systemd: /mnt/etc/systemd/timesyncd.conf (SHA256 checksum mismatch)
systemd: 1451 total files, 1 altered file
vlc: 1085 total files, 1 altered file

Last edited by noahdaboat (2024-05-18 15:35:29)

Offline

#10 2024-05-18 06:01:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Arch won't boot after partial upgrade

Please use [code][/code] tags. Edit your post in this regard.

cups: 946 total files, 2 altered files
filesystem: 124 total files, 1 altered file
intel-ucode: 159 total files, 1 altered file
java-runtime-common: 21 total files, 2 altered files
libutempter: 20 total files, 1 altered file
pdal: 384 total files, 1 altered file
shadow: 588 total files, 1 altered file
systemd: 1451 total files, 1 altered file
vlc: 1085 total files, 1 altered file

looks uncritical.

pacman --root /mnt  --cachedir /mnt/var/cache/pacman/pkg -S linux

Don't forget to mount your boot partition if you're using one.

Offline

#11 2024-05-18 22:48:02

noahdaboat
Member
Registered: 2024-05-16
Posts: 6

Re: Arch won't boot after partial upgrade

The error I'm getting that's been bugging me for a while is:
"Error connecting: Could not connect: No such file or directory"

I've tried but I cannot seem to figure out how to solve this one...

Offline

#12 2024-05-19 06:23:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Arch won't boot after partial upgrade

That error is most likely from package-shit and you can ignore it. It's not relevant to anything you're trying to do here and you should take a look at the warning in https://wiki.archlinux.org/title/Pacman … #Graphical

Please post the entire pacman output

pacman --root /mnt  --cachedir /mnt/var/cache/pacman/pkg -S linux 2>&1 | tee /tmp/pacman.out
cat /tmp/pacman.out curl -F 'file=@-' 0x0.st

Offline

#13 2024-05-19 18:58:32

noahdaboat
Member
Registered: 2024-05-16
Posts: 6

Re: Arch won't boot after partial upgrade

Here's the output

warning: linux-6.8.9.arch1-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-6.8.9.arch1-2

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

:: Proceed with installation? [Y/n] checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
reinstalling linux...
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Updating linux initcpios...
/usr/share/libalpm/scripts/mkinitcpio: line 74: /dev/fd/63: No such file or dir>
error: command failed to execute correctly
(4/4) Refreshing PackageKit...
Error connecting: Could not connect: No such file or directory
error: command failed to execute correctly

Offline

#14 2024-05-19 21:48:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Arch won't boot after partial upgrade

What is the exact context for this?
"/dev/fd/63: No such file or directory" is for a subshell construct and  usually indicates a botched chroot and w/ the command in #12 you're explciitly not supposed to chroot.
If it's not a botched chroot, we need to know whyt the hosting shell doesn't provide /dev/fd - this has previously come up w/ openwrt but should really not be a problem if you're just booting the install iso.

Offline

Board footer

Powered by FluxBB