[SOLVED] I cannot add flatpaks as user, what am I doing wrong?
from arsus5478@lemmy.ml to linux@lemmy.ml on 28 Sep 15:26
https://lemmy.ml/post/36801343

SOLUTION: add Flathub as a user remote too:

flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

flatpak lets you install applications as user vs system. I want to install as user because my .var is full.

example: flatpak install --user org.fcitx.Fcitx5 returns error: No remote refs found for ‘org.fcitx.Fcitx5’

flatpak remotes returns flathub system

I’m logged in as user5. whoami returns user5

I don’t know what remote I have to add or if I have to add user5 as a remote

#linux

threaded - newest

gary_host_laptop@lemmy.ml on 28 Sep 15:32 next collapse

What’s happening here is that you only have a system-wide remote configured, but you’re trying to install as user. Flatpak keeps two separate sets of remotes:

System remotes (available to all users)

User remotes (only for the logged-in user)

Since you have no user remotes defined, Flatpak can’t find anything when you do --user.


You need to add Flathub as a user remote. Run:

flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo

arsus5478@lemmy.ml on 28 Sep 15:39 collapse

thanks. I read that command somewhere but thought I had to edit it to name specifically my username.

egg82@lemmy.world on 28 Sep 17:49 next collapse

https://xkcd.com/979/ <img alt="XKCD #979 - Wisdom of the Ages" src="https://lemmy.world/pictrs/image/2fa5c80f-1bd6-4b5e-96ae-fc01bb10042c.png">

Bluefruit@lemmy.world on 28 Sep 21:00 next collapse

I could be wrong but no remote refs refers to not finding a repo for what you are trying to install, so either the flathub repo isnt added which it sounds like it is, or the app you want isnt in that repo.

So you may need to add the repo for that app: fcitx-im.org/wiki/Install_Fcitx_5

that_leaflet@lemmy.world on 28 Sep 21:49 collapse

Since you didn’t post your solution, here it is for others: you need to add Flathub as a user remote too.

flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo