You are not logged in.

#1 2023-10-28 07:02:43

uckorka
Member
Registered: 2023-10-27
Posts: 9

failed to synchronize all databases (no servers configuredd for repo)

I need to install linux-lts and linux-lts-headers packages. But when I write it in "arch-chroot /mnt" it says I habe no db files for 'core' and 'extra' and should use -Sy to download it. In case I do it, it gives me error: failed to synchronize all dbs (no servers configured for repo). I have uncommented all servers in "pacman.d/mirrorlist" and added default server in "pacman.conf" for all of them (core, extra, multilib) by the way. It still does't work and I have no idea what whould I do.


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

#2 2023-10-28 09:04:29

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

Re: failed to synchronize all databases (no servers configuredd for repo)

We'll need to see the actual pacman.conf, as well as exact command used and full, exact output.

Offline

#3 2023-10-29 17:44:52

uckorka
Member
Registered: 2023-10-27
Posts: 9

Re: failed to synchronize all databases (no servers configuredd for repo)

Well, how I can copy this file? I install OS on other PC, where I have no possibility to use this forum.


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

#4 2023-10-29 18:18:54

mpan
Member
Registered: 2012-08-01
Posts: 1,327
Website

Re: failed to synchronize all databases (no servers configuredd for repo)

If you can’t use the forum from another computer, you may copy the file (over SSH or USB stick) and then post it from the computer on which the forum can be used. You may also upload it to a sane paste service and link it later, though this is not the best option.⁽¹⁾ Such paste services include 0x0.st, paste.rs, bpa.st and ix.io — some of which support uploading directly from command line. Many other paste services are available, though some of them are problematic — in particular please do not use Pastebin.

I believe the issue preventing you from using the forum from another computer should also be resolved, if possible.
____
⁽¹⁾ It splits post content into multiple services.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2023-10-29 18:28:47

uckorka
Member
Registered: 2023-10-27
Posts: 9

Re: failed to synchronize all databases (no servers configuredd for repo)

Okay, I want use the method with USB stick. I have /dev/sdb/sdb1 (unmount) and cannot copy there my pacman.conf file. I've read in this case I schould use "udisksctl -b" command to mount it and copy files then; unfortunately it doesn't work at all: it writes "command not found: udisksctl". What should I do now?


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

#6 2023-10-29 21:49:41

seth
Member
Registered: 2012-09-03
Posts: 58,155

Re: failed to synchronize all databases (no servers configuredd for repo)

Install udisks2 or just mount the drive the old fashioned way w/ "mount"

I install OS on other PC, where I have no possibility to use this forum.

That's completely unrelated - you've network access, otherwise you could not update/install pacakges anyway, right?

(pacman-conf; cat /etc/pacman.conf) | curl -F 'file=@-' 0x0.st

and post the link you get.

Offline

#7 2023-10-30 13:23:10

uckorka
Member
Registered: 2023-10-27
Posts: 9

Re: failed to synchronize all databases (no servers configuredd for repo)


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

#8 2023-10-30 14:06:43

seth
Member
Registered: 2012-09-03
Posts: 58,155

Re: failed to synchronize all databases (no servers configuredd for repo)

Nothing suspicious there.

pacman -v --debug -Syu linux-lts linux-lts-headers 2>&1 | tee /tmp/pacman.out
cat /tmp/pacman.out | curl -F 'file=@-' 0x0.st

Offline

#9 2023-10-30 14:31:13

uckorka
Member
Registered: 2023-10-27
Posts: 9

Re: failed to synchronize all databases (no servers configuredd for repo)

"Failed to open/read local data from file/application"

If I try open the file directly it writes: "permission denied: /tmp/pacman.out"


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

#10 2023-10-30 14:53:36

seth
Member
Registered: 2012-09-03
Posts: 58,155

Re: failed to synchronize all databases (no servers configuredd for repo)

Because you created it as root and are trying to access it as unprivileged user…?

stat /tmp/pacman.out

Offline

#11 2023-10-30 16:44:54

uckorka
Member
Registered: 2023-10-27
Posts: 9

Re: failed to synchronize all databases (no servers configuredd for repo)

Size: 5064    Blocks: 16    IO Block: 4096    regular file
Device 0,37    Inode: 57    Links: 1
Access(06444/-rw-r--r--) Uid: (   0/  root) Gid: (  0/root)
Access: 2023-10-30 16:37:39 (some numbers) +0000
Modify: 2023-10-30 14:26:03 (some numbers) + 0000
Change: 2023-10-30 14:26:03 (some numbers) +0000
Birth: 2023-10-30 14:15:12 (some numbers) +0000

that's all

Last edited by uckorka (2023-10-31 17:25:45)


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

#12 2023-10-30 18:45:34

seth
Member
Registered: 2012-09-03
Posts: 58,155

Re: failed to synchronize all databases (no servers configuredd for repo)

Please use code tags and please don't transcribe - that's "0644" and not "some numbers"

Either way, you created the file as root but it has global read permissions - there's no way you get "permission denied" except if you maybe try to execute the file.
Did you attempt to

cat /tmp/pacman.out | curl -F 'file=@-' 0x0.st

?

Offline

#13 2023-10-31 17:24:55

uckorka
Member
Registered: 2023-10-27
Posts: 9

Re: failed to synchronize all databases (no servers configuredd for repo)

Yes, I did, ir gave me:

curl: (26) Failed to open/read local data from file/application

If you need "0644" :

Access: 539507967
Modify: 333694302
Change: 333694302
Birth: 856696639

Maybe I can drop all settings and reinstall system? It seems easier

Last edited by uckorka (2023-10-31 17:25:07)


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

#14 2023-10-31 18:00:44

seth
Member
Registered: 2012-09-03
Posts: 58,155

Re: failed to synchronize all databases (no servers configuredd for repo)

curl isn't supposed to read from a local file but from stdin, I assume you're bothing the command, somehow.
If there were access issues, you'd get them from cat.
Also the typo'd permissions are entirely unrelated to the timestamps, the point was that your transcription is wrong.

I guess the best course of action would be to install ubuntu until your a bit more familiar w/ posix systems?

Offline

#15 2023-11-01 14:26:10

uckorka
Member
Registered: 2023-10-27
Posts: 9

Re: failed to synchronize all databases (no servers configuredd for repo)

Yes, I think install Ubuntu is the best idea. Thank you


I'm uckorka and I'm new here. It's first time I use linux. I want to use it to learn new skills and low-level programming in C & C++

Offline

Board footer

Powered by FluxBB