Can't live without snap or flatpaks

Hello, I'm having the same issue. It seems Garuda has pamac-aur installed by default. I tried uninstalling, but it returns that pamac-aur has garuda-assistant as a dependency, and won't uninstall as it would break garuda-assistant:

[🧱] × sudo pacman -R pamac-aur
[sudo] password for *******:
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing pamac-aur breaks dependency 'pamac' required by garuda-assistant


Attempting to install pamac-all using yay fails, too, ending by displaying the script rather than running it:

🔴] × yay -S pamac-all -f
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

:: Conflicts found:
pamac-all: pamac-aur (pamac)  pamac-aur (pamac-tray-appindicator)  pamac-aur (pamac)  pamac-aur  

:: Conflicting packages will have to be confirmed manually
:: Marked out of date: snapd-glib

Repo (6) python-markupsafe-1.1.1-7  python-beaker-1.11.0-6  python-mako-1.1.4-1  gobject-introspection-1.68.0-1  ostree-2021.2-1  flatpak-1.10.2-1
Repo Make (9) itstool-1:2.0.6-2  glib2-docs-2.68.1-1  python-pygments-2.8.1-1  python-anytree-2.8.0-3  gtk-doc-1.33.2-1  vala-0.52.2-1  ninja-1.10.2-1  meson-0.57.2-1  asciidoc-9.1.0-1
Aur (2) snapd-glib-1.57-3  pamac-all-10.1.1-1

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
PKGBUILDs up to date
/home/arthur/.cache/paru/clone/snapd-glib/PKGBUILD
# Maintainer: Mitchell Renouf <[email protected]>

pkgname=snapd-glib
pkgdesc="Library to allow GLib/Qt based applications access to snapd, the daemon that controls Snaps"
depends=('libsoup' 'json-glib' 'gobject-introspection')
pkgver=1.57
pkgrel=3
arch=('x86_64')
url="https://github.com/snapcore/snapd-glib"
license=('GPL3')
makedepends=('libsoup' 'json-glib' 'qt5-declarative' 'qt5-base' 'glib2' 'gtk-doc' 'meson' 'ninja' 'vala')
source=(https://github.com/snapcore/snapd-glib/releases/download/${pkgver}/snapd-glib-${pkgver}.tar.xz)
sha256sums=('b7d9338079ce07b3696d99c5fb6159107d1459e9d9b466daf9980ee331e9e1e7')

build() {
cd "$pkgbase-$pkgver"
meson build -Dprefix=/usr
ninja -C build
}

package() {
cd "$pkgbase-$pkgver"
DESTDIR="$pkgdir" meson install -C build
}


/home/arthur/.cache/paru/clone/pamac-all/.gitignore
*.gz
*.tar
*.tar.*
/pkg/*
/src/*


/home/arthur/.cache/paru/clone/pamac-all/PKGBUILD
# Contributor: Zeph <[email protected]>
# Maintainer: Librewish <[email protected]>
# https://gitlab.manjaro.org/packages/extra/pamac
ENABLE_FLATPAK=1
ENABLE_SNAPD=1
ENABLE_APPINDICATOR=1
ENABLE_GNOME=0

pkgname=pamac-all
pkgver=10.1.1
pkgrel=1
_pkgfixver=$pkgver

pkgdesc="A Gtk3 frontend for libalpm (everything in one package - snap, flatpak, appindicator)"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://gitlab.manjaro.org/applications/pamac"
license=('GPL3')
depends=('glib2>=2.42' 'json-glib' 'libsoup' 'dbus-glib' 'polkit' 'vte3>=0.38' 'gtk3>=3.22'
'libnotify' 'desktop-file-utils' 'pacman>=5.2' 'gnutls>=3.4' 'git'
'appstream-glib' 'archlinux-appstream-data')
optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome')
makedepends=('gettext' 'itstool' 'vala>=0.45' 'meson' 'ninja' 'gobject-introspection' 'xorgproto' 'asciidoc')
backup=('etc/pamac.conf')
conflicts=('pamac' 'pamac-gtk' 'pamac-cli' 'pamac-common' 'pamac-aur' 'pamac-aur-git')
provides=("pamac" "pamac-aur" "pamac-aur-git")
options=(!emptydirs)
install=pamac.install
source=("pamac-$pkgver.tar.gz::$url/-/archive/v$pkgver/pamac-v$pkgver.tar.gz") 
sha256sums=('7477130baee00a1622e4f10964a36dea44b8cacd36263de470b97dc121c95ec2')
define_meson=''
if [ "${ENABLE_FLATPAK}" = 1 ]; then
depends+=('flatpak')
define_meson+=' -Denable-flatpak=true'
provides+=('pamac-flatpak-plugin')
conflicts+=('pamac-flatpak-plugin')
fi

if [ "${ENABLE_SNAPD}" = 1 ]; then
depends+=('snapd' 'snapd-glib')
define_meson+=' -Denable-snap=true'
provides+=('pamac-snap-plugin')
conflicts+=('pamac-snap-plugin')
fi

if [ "${ENABLE_APPINDICATOR}" = 1 ]; then
depends+=('libappindicator-gtk3')
define_meson+=' -Denable-appindicator=true'
provides+=('pamac-tray-appindicator' )
conflicts+=('pamac-tray-appindicator' 'pamac-aur-tray-appindicator-git')
fi

if [ "${ENABLE_GNOME}" = 1 ]; then
define_meson+=' -Denable-fake-gnome-software=true'
provides+=("pamac-gnome-integration" 'gnome-software')
conflicts+=("pamac-gnome-integration" 'gnome-software')
fi

prepare() {
cd "$srcdir/pamac-v$pkgver"
# adjust version string
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" src/version.vala
}

build() {
cd "$srcdir/pamac-v$pkgver"
mkdir -p builddir
cd builddir
meson --buildtype=release \
--prefix=/usr \
--sysconfdir=/etc $define_meson
# build
ninja
}

package() {
cd "$srcdir/pamac-v$pkgver/builddir"

DESTDIR="$pkgdir" ninja install
}
# vim:set ts=2 sw=2 et:


/home/arthur/.cache/paru/clone/pamac-all/pamac.install
post_install() {
# enable flatpak repo
if [ -f /usr/bin/flatpak ]; then
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
fi   
# enable classic snap support
if [ -f /usr/bin/snap ]; then
#   ln -s /var/lib/snapd/snap /snap
systemctl enable snapd.socket
fi
# enable systemd timers
ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants
#ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants
# polkit agent
printf '==> An authentication agent is required\n'
printf '    Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce\n'
printf '    have an authentication agent already.\n'
printf '    See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents\n'
printf '    for other desktop environments.\n'
}

post_upgrade() {
# enable flatpak repo
if [ -f /usr/bin/flatpak ]; then
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
fi
# enable classic snap support
if [ -f /usr/bin/snap ]; then
#   ln -s /var/lib/snapd/snap /snap
systemctl is-active snapd.socket >/dev/null || systemctl enable snapd.socket
fi

}

post_remove() {
# disable systemd timers
rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
#rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
}


(END)⏎                                                                                                                                                                                                                                                                                       

[🧱] ×

Any help would be greatly appreciated. I'm brand new to Garuda and loving it so far, but can't live without snap or flatpaks. Gotta have my Photogimp.

1 Like

I split your post off from the ancient one you revived.

Do not Necro 5 month old posts or the Aliens may take you away for a royal probing.

3 Likes

Sorry. As I said, I'm brand new :man_shrugging:. Now I know not do do it, lol.

Hi, welcome to the community.

Which application do you want to install from snap / flatpack?
It will most probably have an alternative in AUR

1 Like

Photogimp, it makes gimp look and function much more like photoshop. To my knowledge, it only exists as a snap. Is there no way to retool Garuda Assistant to work with pamac-all instead of pamac-aur?

Why don't you try adapting to the way Arch Linux does things rather than trying to twist Arch into some Windows/Ubuntu clone.

I mean if you want to use Linux don't you think it's time to learn the way Gimp actually works, rather than using a twisted version of Gimp designed to mimic Window's Adobe Photoshop?

Maybe it's just time to sever the umbilical cord and learn the Arch and Linux way of doing things if you want to use an Arch based distro.

3 Likes

Also, if you are in dire need of photogimp, just compile from git

https://bbs.archlinux.org/viewtopic.php?id=241145

1 Like

@tbg Is it really necessary to be so condescending? I love Arch Linux, love nearly everything about switching to Linux from 33 years of using Windows. I have vehemently avoided anything that makes it remotely similar to windows. I use photogimp because after learning and using photoshop since it's creation, my muscle memory is used to those functions and it makes my workflow easier. If I REALLY wanted to "twist" Linux into a windows clone, I'd just use one of the many versions of actual photoshop that people have managed to get working through wine, add menux to plasma and use it like a windows menu, etc. I don't. Just because I want the expanded pamac, that makes me a jackass that is ruining Linux with my inability to let go of windows? Your attitude is not necessary, and if this is how Garuda greets it's new users, maybe I DID make a mistake switching to it. Interesting to see the gatekeeping Arch mentality seems to have made it over here.

2 Likes

@Naman thank you for the suggestion. I might just go back to ArcoLinux to regain the easy snap and flatpak access. Garuda is a beautiful distribution, but I'm not a fan of limitations.

1 Like

I don't think the responses so far were meant as snark - but I can easily see they might be regarded as such. As the meme goes: Keep Calm and... :grin:

Unfortunately, I avoid pamac in all forms, having found it difficult to use when on ArcoLinux back when, so I can't be sure that my thoughts on switching versions would be accurate.

When you try to just install (with yay presumably) pamac-all, do you not get the opportunity to remove conflicting versions? Without looking at the PKGBUILDs involved, I don't see why -all wouldn't satisfy the dependency. Of course, looking at the PKGBUILDs yourself would be informative...

Good luck!

2 Likes

You might be right here, in case of Snap however.. There is Ubuntu for that case.

2 Likes

Just because Garuda does not support Snap/Flatpack does not mean you can't install them and you don't need pamac for snaps.
you do need something like "yay" to install a snap installer and plenty of disk space.
You need to read the Arch Wiki Snap - ArchWiki it explains how to install although arch does not support snap as its classed as spyware,
Arch and Arch based Distros do not stop you from installing it so what is the problem.
This is Linux their are no closed shops, you are free to install what you want at your own risk.

9 Likes