You are not logged in.

#1 2025-05-22 08:17:34

robokomo
Member
Registered: 2025-05-22
Posts: 3

Brand new user can't use pacman "Target not found" "Permission denied"

I'm a new user and this is a fresh install.

When I try installing something through pacman, even neofetch, I get a "Target not found"

[robo@Arch ~]$ sudo pacman -S neofetch
[sudo] password for robo:
error: target not found: neofetch

I tried to look online for any information. Maybe I don't have a library that I can install pkg from or something like that.
I saw that command online /etc/pacman.d/mirrolist to acces to a list of mirror I can download from I think, but I can't access it. I get a "Permission denied" even as ROOT

[robo@Arch ~]$ su
Password:
[root@Arch robo]# /etc/pacman.d/mirrorlist
bash: /etc/pacman.d/mirrorlist: Permission denied

Offline

#2 2025-05-22 08:54:14

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,798

Re: Brand new user can't use pacman "Target not found" "Permission denied"

neofetch is not in archlinux repos, you'll have to build it yourself and install manually.
See https://wiki.archlinux.org/title/Arch_User_Repository for details.

There are somne neofetch variants in the repos, use

$ pacman -Ss neofetch

to see which ones.

P.S. please use code tags for such outputs, see https://bbs.archlinux.org/help.php#bbcode

Last edited by Lone_Wolf (2025-05-22 08:55:24)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2025-05-22 09:46:08

robokomo
Member
Registered: 2025-05-22
Posts: 3

Re: Brand new user can't use pacman "Target not found" "Permission denied"

It's not the question. I don't care about neofetch. What I want to know is why the terminal doesn't work properly.
Every command I find on the internet doesn't work and I can't progress.

[robo@Arch ~]$ su
Password: 
[root@Arch robo]# /etc/pacman.d/mirrorlist
bash: /etc/pacman.d/mirrorlist: Permission denied
[root@Arch robo]# /etc/pacman.conf
bash: /etc/pacman.conf: Permission denied
[root@Arch robo]# pacman -S steam
error: target not found: steam
[root@Arch robo]# pacman -S neofetch
error: target not found: neofetch
[root@Arch robo]# pacman-mirrors
bash: pacman-mirrors: command not found
[root@Arch robo]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
:: Starting full system upgrade...
 there is nothing to do
[root@Arch robo]# 

Offline

#4 2025-05-22 10:23:30

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,821
Website

Re: Brand new user can't use pacman "Target not found" "Permission denied"

'su' and 'pacman -Syu' worked fine
"/etc/pacman.d/mirrorlist" and "/etc/pacman.conf" are not commands/scripts. They are configuration files. Use a text editor (i.e. vim, nano, etc.) to modify them.
Steam is in the multilib repo, which you haven't enabled. https://wiki.archlinux.org/title/Steam#Installation
Neofetch isn't in the Arch repos, as previously mentioned.
pacman-mirrors isn't a command that I'm familiar with, and is not provided by any Arch package. Where did you read about that?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2025-05-22 11:06:53

robokomo
Member
Registered: 2025-05-22
Posts: 3

Re: Brand new user can't use pacman "Target not found" "Permission denied"

Yea, I ended up figuring it out. I had to remove the # mark in front of the multilib repo in the actual file. Idk why I thought they were command line (I feel like a saw /etc/pacman.conf being used in the console). From what I understand neofetch is no longer developed so I downloaded fastfetch by using Lone_Wolf's command. The pacman-mirrors command I'm not sure where I saw it. I saw a bunch of command line while searching for an answer.

Thank you for answers. Maybe this post will help someone in the future. smile

Offline

#6 2025-05-22 11:09:48

SimonJ
Member
From: Alicante, Spain
Registered: 2021-05-11
Posts: 207
Website

Re: Brand new user can't use pacman "Target not found" "Permission denied"

WorMzy wrote:

pacman-mirrors isn't a command that I'm familiar with, and is not provided by any Arch package. Where did you read about that?

I remembered this command from somewhere : https://wiki.manjaro.org/index.php?title=Pacman-mirrors

Not related to Arch but it triggered a memory

Last edited by SimonJ (2025-05-22 11:10:22)


Rlu: 222126

Offline

#7 2025-05-22 11:12:21

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 236

Re: Brand new user can't use pacman "Target not found" "Permission denied"

If you are actually trying to install steam and weren't just using that as an example then you should read: https://wiki.archlinux.org/title/Steam

One of the first things it mentions in the install section is that you need to enable multilib. You should read the installation steps to ensure you have a good time.

Last edited by Nikolai5 (2025-05-22 11:12:40)


Desktop: Ryzen 7 1800X | AMD 7800XT | KDE Plasma
MacbookPro-2012 | XFCE

Offline

Board footer

Powered by FluxBB