You are not logged in.

#1 2022-12-01 18:23:33

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Error connecting: Could not connect: No such file or directory

Hello, recently I killed my arch Linux on accident, somehow. On startup it tells me its un successful mounting /boot, but my issue is different right now.

Im trying to reinstall the linux kernel in the live installatuon media with

 pacman -S linux

, but it's giving me this error:
(by the way, I mounted and chrooted into the drive im having the problem on.)

 Error connecting: Could not connect: No such file or directory
error: command failed to execute correctly

I'd love to post a full log but I have zero clue on how to obtain it, and God knows I wont type it all on my phone here. Any help is appreciated!

Edit: tried yay aur, same problem

Last edited by mrowkiuq (2022-12-01 18:24:43)

Offline

#2 2022-12-01 19:32:00

d.ALT
Member
Registered: 2019-05-10
Posts: 943

Re: Error connecting: Could not connect: No such file or directory

Tell us how you chrooted into.


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-12-02 00:44:30

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: Error connecting: Could not connect: No such file or directory

Also, do you have an internet connection *before* you chroot?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2022-12-02 01:04:26

Trilby
Banned
Registered: 2011-11-29
Posts: 30,330
Website

Re: Error connecting: Could not connect: No such file or directory

Context matters too.  Perhaps you received some / all of those messages at some point in the process, but most of those are messages that would definitely not be generated by pacman.


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

Offline

#5 2022-12-02 12:19:57

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Error connecting: Could not connect: No such file or directory

d.ALT wrote:

Tell us how you chrooted into.

fdisk -l
(find the partition with my root on it, for some reason I decided to have seperare partitions for my /home and /, so I choose the root one, /dev/nvme0n1p2)
mount /dev/nvme0n1p2 /mnt
arch-chroot /mnt

Is there a problem with this?

Offline

#6 2022-12-02 12:22:14

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Error connecting: Could not connect: No such file or directory

cfr wrote:

Also, do you have an internet connection *before* you chroot?

Most likely. I am running on ethernet. I also tried the speed test package in chroot, as I have it installed and it shows I have internet.

Offline

#7 2022-12-02 13:33:58

Trilby
Banned
Registered: 2011-11-29
Posts: 30,330
Website

Re: Error connecting: Could not connect: No such file or directory

If you "have internet" then you can post full logs without having to type them out.  Please do so.


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

Offline

#8 2022-12-02 13:51:51

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Error connecting: Could not connect: No such file or directory

Trilby wrote:

If you "have internet" then you can post full logs without having to type them out.  Please do so.

I'm sorry, how would i do that?

Offline

#9 2022-12-02 13:55:26

Trilby
Banned
Registered: 2011-11-29
Posts: 30,330
Website

Re: Error connecting: Could not connect: No such file or directory


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

Offline

#10 2022-12-02 13:59:27

d.ALT
Member
Registered: 2019-05-10
Posts: 943

Re: Error connecting: Could not connect: No such file or directory

mrowkiuq wrote:
d.ALT wrote:

Tell us how you chrooted into.

fdisk -l
(find the partition with my root on it, for some reason I decided to have seperare partitions for my /home and /, so I choose the root one, /dev/nvme0n1p2)
mount /dev/nvme0n1p2 /mnt
arch-chroot /mnt

Is there a problem with this?

Nope.

But what if you DON'T chroot into and rather directly use ArchISO's Pacman?

###test connection:###
ping 185.222.222.222

###mount your ROOT partition into /mnt###

###mount your HOME partition into /mnt/home###

# pacstrap -DK /mnt base linux linux-firmware

\\\

###IF successful, then go with:###

# arch-chroot /mnt

(chroot)# pacman -Syu

<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#11 2022-12-02 14:07:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,045

Re: Error connecting: Could not connect: No such file or directory

mrowkiuq wrote:
d.ALT wrote:

Tell us how you chrooted into.

fdisk -l
(find the partition with my root on it, for some reason I decided to have seperare partitions for my /home and /, so I choose the root one, /dev/nvme0n1p2)
mount /dev/nvme0n1p2 /mnt
arch-chroot /mnt

Is there a problem with this?

Yes. You mentioned that it's erroring out mounting /boot, so why aren't you mounting that here? Do you also have a separate /var partition? That could explain the error. Mount ALL of the partitions that are part of your system.

Offline

#12 2022-12-02 14:09:19

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Error connecting: Could not connect: No such file or directory

Will try, also will post a log of the pacman in a few minutes for Trilby.

Offline

#13 2022-12-02 14:30:10

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Error connecting: Could not connect: No such file or directory

Offline

#14 2022-12-02 14:31:22

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Error connecting: Could not connect: No such file or directory

d.ALT wrote:
mrowkiuq wrote:
d.ALT wrote:

Tell us how you chrooted into.

fdisk -l
(find the partition with my root on it, for some reason I decided to have seperare partitions for my /home and /, so I choose the root one, /dev/nvme0n1p2)
mount /dev/nvme0n1p2 /mnt
arch-chroot /mnt

Is there a problem with this?

Nope.

But what if you DON'T chroot into and rather directly use ArchISO's Pacman?

###test connection:###
ping 185.222.222.222

###mount your ROOT partition into /mnt###

###mount your HOME partition into /mnt/home###

# pacstrap -DK /mnt base linux linux-firmware

\\\

###IF successful, then go with:###

# arch-chroot /mnt

(chroot)# pacman -Syu

the ping succeeded. the command you suggested didn't though. pacstrap doesn't recognise the -D parameter

Offline

#15 2022-12-02 14:40:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,045

Re: Error connecting: Could not connect: No such file or directory

So the error isn't from pacman, it's from package-kit. Ignore it

Offline

Board footer

Powered by FluxBB