Hello Arch Linux Forums,
I am Christopher, an unexperienced Arch Linux user. I recently read an article on GUI package management tools for Arch Linux. So, I decided to install pamac(flatpak,snap and AUR) using the yay AUR helper. But for some reason, it complains about an unstatisfied dependency called snapd-glib which I have installed.Here is the output of yay -S pamac-all(It is in Greek):
chris@archlinux ~> yay -S pamac-all
:: Checking for conflicts…
:: Checking for inner conflicts…
(Aur:2) libpamac-full-1:11.3.1-1 pamac-all-10.3.0-5
2 libpamac-full (Build Files Exist)
1 pamac-all (Build Files Exist)
==> Packages to cleanBuild?
==> (N)one (A)ll (Ab)ort (I)nstalled (No)tInstalled or (1 2 3, 1-3, ^4)
==> a
:: Deleting (1/2): /home/chris/.cache/yay/libpamac-full
:: Deleting (2/2): /home/chris/.cache/yay/pamac-all
:: (1/2) Downloaded PKGBUILD: libpamac-full
:: (2/2) Downloaded PKGBUILD: pamac-all
2 libpamac-full (Build Files Exist)
1 pamac-all (Build Files Exist)
==> Diffs to show?
==> (N)one (A)ll (Ab)ort (I)nstalled (No)tInstalled or (1 2 3, 1-3, ^4)
==> n
:: (1/2) Parsing SRCINFO: libpamac-full
:: (2/2) Parsing SRCINFO: pamac-all
==> Δημιουργία πακέτου: pamac-all 10.3.0-5 (Παρ 14 Οκτ 2022 07:50:00 μμ EEST)
==> Λήψη πηγών…
-> Λήψη pamac-10.3.0.tar.gz…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 —:—:— —:—:— —:—:— 0==> Δημιουργία πακέτου: libpamac-full 1:11.3.1-1 (Παρ 14 Οκτ 2022 07:50:01 μμ EEST)
==> Λήψη πηγών…
-> Λήψη libpamac-11.3.1.tar.bz2…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 —:—:— —:—:— —:—:- 15 154k 15 23842 0 0 42827 0 0:00:03 —:—:— 0:00:0 0 0 0 0 0 0 0 0 —:—:— —:—:— —:—:-100 154k 100 154k 0 0 131k 0 0:00:01 0:00:01 —:—:— 131k
==> Επικύρωση αρχείων του source με sha256sums…
pamac-10.3.0.tar.gz … Επιτυχία
21 416k 21 93471 0 0 89006 0 0:00:04 0:00:01 0:00:0 91 416k 91 380k 0 0 185k 0 0:00:02 0:00:02 —:—:-100 416k 100 416k 0 0 195k 0 0:00:02 0:00:02 —:—:— 195k
==> Επικύρωση αρχείων του source με sha256sums…
libpamac-11.3.1.tar.bz2 … Επιτυχία
==> Δημιουργία πακέτου: libpamac-full 1:11.3.1-1 (Παρ 14 Οκτ 2022 07:50:09 μμ EEST)
==> Έλεχος εξαρτήσεων εκτέλεσης…
==> Έλεγχος εξαρτήσεων μεταγλώττισης…
==> Λήψη πηγών…
-> Βρέθηκε libpamac-11.3.1.tar.bz2
==> Επικύρωση αρχείων του source με sha256sums…
libpamac-11.3.1.tar.bz2 … Επιτυχία
==> Διαγραφή υπάρχοντος καταλόγου $srcdir/…
==> Εξαγωγή πηγών…
-> Εξαγωγή libpamac-11.3.1.tar.bz2 με bsdtar
==> Πηγαίος κώδικας έτοιμος.
==> Δημιουργία πακέτου: libpamac-full 1:11.3.1-1 (Παρ 14 Οκτ 2022 07:50:18 μμ EEST)
==> Έλεχος εξαρτήσεων εκτέλεσης…
==> Έλεγχος εξαρτήσεων μεταγλώττισης…
==> ΠΡΟΕΙΔΟΠΟΙΗΣΗ: Χρήση υπάρχοντος δέντρου $srcdir/
==> Εκκίνηση build()…
The Meson build system
Version: 0.63.3
Source dir: /home/chris/.cache/yay/libpamac-full/src/libpamac-11.3.1
Build dir: /home/chris/.cache/yay/libpamac-full/src/libpamac-11.3.1/builddir
Build type: native build
Project name: libpamac
Project version: 11.3.1
C compiler for the host machine: cc (gcc 12.2.0 «cc (GCC) 12.2.0»)
C linker for the host machine: cc ld.bfd 2.39.0
Vala compiler for the host machine: valac (valac 0.56.3)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency gobject-2.0 found: YES 2.74.0
Run-time dependency gio-2.0 found: YES 2.74.0
Run-time dependency gthread-2.0 found: YES 2.74.0
Run-time dependency libalpm found: YES 13.0.1
Run-time dependency json-glib-1.0 found: YES 1.6.6
Run-time dependency libsoup-2.4 found: YES 2.74.2
Run-time dependency polkit-gobject-1 found: YES 121
Run-time dependency appstream-glib found: YES 0.8.1
Run-time dependency gmodule-2.0 found: YES 2.74.0
Library posix found: YES
Library m found: YES
Found CMake: /usr/bin/cmake (3.24.2)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency snapd-glib found: NO (tried pkgconfig and cmake)
../src/meson.build:33:1: ERROR: Dependency «snapd-glib» not found, tried pkgconfig and cmake
A full log can be found at /home/chris/.cache/yay/libpamac-full/src/libpamac-11.3.1/builddir/meson-logs/meson-log.txt
==> ΣΦΑΛΜΑ: Αποτυχία στην build().
Ματαίωση…
-> error making: libpamac-full
Can somebody help me please?
Last edited by chris_on_linux (2022-10-14 17:23:01)
The above error is happening because APT Package Manager blocks the installation of snap packages. With Linux Mint 20, the Mint dev team has disabled the snap or snapd support by default.
Though Linux Mint has never supported the snap, it has allowed installing Ubuntu snap store or snapd open-source client in previous releases by default.
Hence, now if anyone wants to install snap apps, they need to first enable snap support. For that, there is a solution as well.
To enable snap support on Mint 20, we can do either of two things:
-
Delete the
nosnap.preffile in the directory/etc/apt/preferences.dby running the command:sudo rm /etc/apt/preferences.d/nosnap.pref -
Comment the three lines of code in the same file.
Package: snapd Pin: release a=* Pin-Priority: -10
Now, install snapd:
sudo apt install snapd
Then, any snap apps:
sudo snap install <app-name>
There is also another method as well to install snap packages without interfering with nosnap.pref file. That is, installing app using version number:
sudo apt install <app-name> snapd=VERSION

The above error is happening because APT Package Manager blocks the installation of snap packages. With Linux Mint 20, the Mint dev team has disabled the snap or snapd support by default.
Though Linux Mint has never supported the snap, it has allowed installing Ubuntu snap store or snapd open-source client in previous releases by default.
Hence, now if anyone wants to install snap apps, they need to first enable snap support. For that, there is a solution as well.
To enable snap support on Mint 20, we can do either of two things:
-
Delete the
nosnap.preffile in the directory/etc/apt/preferences.dby running the command:sudo rm /etc/apt/preferences.d/nosnap.pref -
Comment the three lines of code in the same file.
Package: snapd Pin: release a=* Pin-Priority: -10
Now, install snapd:
sudo apt install snapd
Then, any snap apps:
sudo snap install <app-name>
There is also another method as well to install snap packages without interfering with nosnap.pref file. That is, installing app using version number:
sudo apt install <app-name> snapd=VERSION

Я просто попытался использовать snap в первый раз и посмотрел учебник на https://tutorials.ubuntu.com/tutorial/basic-snap-usage#2
Я установил привет world example sudo snap install hello, но команда hello не найдена. Я заметил, что команда находится в / snap / bin, но кажется, что она пропустила путь к моему PATH.
Когда я установил привязку (sudo apt install snapd), я получил сообщение об ошибке в первый раз, но на вторая попытка это сработало.
Любая идея?
Изменить:
.
Нужно ли добавлять путь вручную? веб-приложение shout irc действительно работало сразу
задан
22 May 2017 в 18:08
поделиться
3 ответа
Если вы только что установили snapd, попробуйте запустить новое окно терминала, чтобы выбрать новый $PATH.
Если ваша оболочка не читается с /etc/profile.d, вам нужно добавить PATH=$PATH:/snap/bin в конфигурацию вашей оболочки (например, ~/.zshrc для zsh) [ ! d1]
ответ дан Evan
22 May 2018 в 22:25
поделиться
Если вы только что установили snapd, попробуйте запустить новое окно терминала, чтобы выбрать новый $PATH.
Если ваша оболочка не читается с /etc/profile.d, вам нужно добавить PATH=$PATH:/snap/bin в конфигурацию вашей оболочки (например, ~/.zshrc для zsh) [ ! d1]
ответ дан Evan
18 July 2018 в 12:59
поделиться
Если вы только что установили snapd, попробуйте запустить новое окно терминала, чтобы выбрать новый $PATH.
Если ваша оболочка не читается с /etc/profile.d, вам нужно добавить PATH=$PATH:/snap/bin в конфигурацию вашей оболочки (например, ~/.zshrc для zsh) [ ! d1]
ответ дан Evan
24 July 2018 в 20:05
поделиться
Другие вопросы по тегам:
Похожие вопросы:
More tests with Travis trusty, sudo enabled cpp image.
sudo apt install snapd finds snapd package but requires apt update before.
Installing snapd is very long process — it takes about 150 seconds!
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
amd64-microcode intel-microcode iucode-tool libpam-systemd libseccomp2
libsystemd-daemon0 libsystemd-journal0 libsystemd-login0
linux-generic-lts-xenial linux-headers-4.4.0-131
linux-headers-4.4.0-131-generic linux-headers-generic-lts-xenial
linux-image-4.4.0-131-generic linux-image-extra-4.4.0-131-generic
linux-image-generic-lts-xenial squashfs-tools systemd systemd-services
Suggested packages:
fdutils linux-lts-xenial-tools systemd-ui cgmanager
Recommended packages:
initramfs-tools thermald
The following NEW packages will be installed:
amd64-microcode intel-microcode iucode-tool libseccomp2
linux-generic-lts-xenial linux-headers-4.4.0-131
linux-headers-4.4.0-131-generic linux-headers-generic-lts-xenial
linux-image-4.4.0-131-generic linux-image-extra-4.4.0-131-generic snapd
squashfs-tools systemd
The following packages will be upgraded:
libpam-systemd libsystemd-daemon0 libsystemd-journal0 libsystemd-login0
linux-image-generic-lts-xenial systemd-services
6 upgraded, 13 newly installed, 0 to remove and 226 not upgraded.
Need to get 85.4 MB of archives.
After this operation, 401 MB of additional disk space will be used.
It will install new linux kernel, generate new initrd image and update grub. It may be worth to update Travis image to not waste time installing dpl later?
Then snapcraft can be installed with sudo snap install snapcraft --classic
sudo apt update
sudo apt install snapd
sudo snap install snapcraft --classic
Above commands are working in before_script. I don’t know why dpl have problems with it? Maybe apt update is not executed? Or dpl script has no access to apt configuration/su privileges?
More tests with Travis trusty, sudo enabled cpp image.
sudo apt install snapd finds snapd package but requires apt update before.
Installing snapd is very long process — it takes about 150 seconds!
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
amd64-microcode intel-microcode iucode-tool libpam-systemd libseccomp2
libsystemd-daemon0 libsystemd-journal0 libsystemd-login0
linux-generic-lts-xenial linux-headers-4.4.0-131
linux-headers-4.4.0-131-generic linux-headers-generic-lts-xenial
linux-image-4.4.0-131-generic linux-image-extra-4.4.0-131-generic
linux-image-generic-lts-xenial squashfs-tools systemd systemd-services
Suggested packages:
fdutils linux-lts-xenial-tools systemd-ui cgmanager
Recommended packages:
initramfs-tools thermald
The following NEW packages will be installed:
amd64-microcode intel-microcode iucode-tool libseccomp2
linux-generic-lts-xenial linux-headers-4.4.0-131
linux-headers-4.4.0-131-generic linux-headers-generic-lts-xenial
linux-image-4.4.0-131-generic linux-image-extra-4.4.0-131-generic snapd
squashfs-tools systemd
The following packages will be upgraded:
libpam-systemd libsystemd-daemon0 libsystemd-journal0 libsystemd-login0
linux-image-generic-lts-xenial systemd-services
6 upgraded, 13 newly installed, 0 to remove and 226 not upgraded.
Need to get 85.4 MB of archives.
After this operation, 401 MB of additional disk space will be used.
It will install new linux kernel, generate new initrd image and update grub. It may be worth to update Travis image to not waste time installing dpl later?
Then snapcraft can be installed with sudo snap install snapcraft --classic
sudo apt update
sudo apt install snapd
sudo snap install snapcraft --classic
Above commands are working in before_script. I don’t know why dpl have problems with it? Maybe apt update is not executed? Or dpl script has no access to apt configuration/su privileges?