You are not logged in.
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
We'll need to see the actual pacman.conf, as well as exact command used and full, exact output.
Offline
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
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
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
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
https://0x0.st/Hyfz.txt - this link
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
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
"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
Because you created it as root and are trying to access it as unprivileged user…?
stat /tmp/pacman.out
Offline
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
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
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
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
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