Unable to update with Pamac

For a couple of days Pamac refuses to update packages.
Pamac-gtk shows the message: preparing…and stays this way.

I removed Pamac-gtk and installed Pamac-aur-git, but to no avail.

Now the message says that another package manager is active.

Is this a bug?

Try closing your session, opening it after.

Then, try this command line, it will remove pacman lock file:

sudo rm -f /var/lib/pacman/db.lck

Try to update using pamac…

I know about the db.lck file but there is no such file.

$ pamac update
Bezig met voorbereiden...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Voer je wachtwoord in om pakketten te installeren, updaten of verwijderen
Authenticating as: richard
Password: 
==== AUTHENTICATION COMPLETE ====
Bezig met wachten op het afsluiten van een andere pakketbeheerder...



Meaning, waiting for shutting down another package manager.

Which version of pamac-aur-git are you using?

Mine - homemade - which is one day old:

fred@fredo-arch-mate ~ % pacman -Qi pamac-aur-git
Name            : pamac-aur-git
Version         : 9.4.0rc3.r13.g987a4d6-1
Description     : A Gtk3 frontend for libalpm - git version
Architecture    : x86_64
URL             : https://gitlab.manjaro.org/applications/pamac
Licenses        : GPL3
Groups          : None
Provides        : pamac
Depends On      : dbus-glib  vte3>=0.38  libnotify  pacman>=5.2  pacman<5.3
                  appstream-glib  archlinux-appstream-data
                  libappindicator-gtk3  git
Optional Deps   : polkit-gnome: needed for authentification in Cinnamon, Gnome
                  lxsession: needed for authentification in Xfce, LXDE etc.
                  pamac-aur-tray-appindicator-git: tray icon for KDE
Required By     : None
Optional For    : None
Conflicts With  : pamac-aur
Replaces        : None
Installed Size  : 2.63 MiB
Packager        : Frederic Bezies <fredbezies@gmail.com>
Build Date      : Sat Mar 14 14:19:13 2020
Install Date    : Sat Mar 14 14:20:09 2020
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None

What’s yours?

And my pamac update output:

fred@fredo-arch-mate ~ % pamac update 
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Frederic Bezies (fred)
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronisation des bases de données des paquets...
Warning: ldb: ignoring package upgrade (1:1.5.6-2 => 1:2.0.7-1)
Warning: libwbclient: ignoring package upgrade (4.10.10-2 => 4.11.3-1)
Warning: samba: ignoring package upgrade (4.10.10-2 => 4.11.3-1)
Warning: smbclient: ignoring package upgrade (4.10.10-2 => 4.11.3-1)
Nothing to do.
Transaction successfully finished.

Oops I had accidentaly installed Pamac-cli…
I removed this one and installed pamac-aur-git, but still have the same message when trying to update.

$ pacman -Qi pamac-aur-git
Naam                       : pamac-aur-git
Versie                     : 9.4.0rc3.r14.g1686977-1
Beschrijving               : A Gtk3 frontend for libalpm - git version
Architectuur               : x86_64
URL                        : https://gitlab.manjaro.org/applications/pamac
Licenties                  : GPL3
Groepen                    : Geen
Voorziet                   : pamac
Is Afhankelijk Van         : dbus-glib  vte3>=0.38  libnotify  pacman>=5.2
                             pacman<5.3  appstream-glib
                             archlinux-appstream-data  libappindicator-gtk3
                             git
Optionele Afhankelijkheden : polkit-gnome: needed for authentification in
                             Cinnamon, Gnome [geïnstalleerd]
                             lxsession: needed for authentification in Xfce,
                             LXDE etc.
                             pamac-aur-tray-appindicator-git: tray icon for KDE
Vereist Door               : Geen
Optioneel Voor             : Geen
Conflicteert Met           : pamac-aur
Vervangt                   : Geen
Geïnstalleerde Grootte     : 2,63 MiB
Packager                   : Unknown Packager
Creatiedatum               : zo 15 mrt 2020 09:51:22 CET
Installatiedatum           : zo 15 mrt 2020 12:47:44 CET
Installatiereden           : Expliciet geïnstalleerd
Installatiescript          : Ja
Gevalideerd Door           : Geen

type or paste c$ pamac update
Bezig met voorbereiden...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Voer je wachtwoord in om pakketten te installeren, updaten of verwijderen
Authenticating as: richard
Password: 
==== AUTHENTICATION COMPLETE ====
Bezig met wachten op het afsluiten van een andere pakketbeheerder...


Where do you get your pamac-aur-gits?
This is what it is in the AUR pages:

As it is a git package with source grabbed from pamac repository, rXY part can be bigger than the one on AUR.

Right, thanks!

Can’t find another active package manager… :thinking:

Pacman runs fine…

$ sudo pacman -Syu
[sudo] wachtwoord voor richard: 
:: Pakket-databases synchroniseren...
 core                  135,1 KiB  1228 KiB/s 00:00 [----------------------] 100%
 extra                1639,7 KiB  1215 KiB/s 00:01 [----------------------] 100%
 community               4,8 MiB  1208 KiB/s 00:04 [----------------------] 100%
 multilib is up-to-date
 endeavouros            11,6 KiB  1157 KiB/s 00:00 [----------------------] 100%
:: Volledige systeemsupgrade starten...
waarschuwing:xfce4-power-manager: pakket-upgrade (1.6.5-2 => 1.6.6-1) wordt genegeerd
afhankelijkheden oplossen...
zoeken naar conflicterende pakketten...

Pakketten (12) binutils-2.34-2  elfutils-0.178-2  gcc-9.3.0-1  gcc-libs-9.3.0-1
               glibc-2.31-2  libelf-0.178-2  libtool-2.4.6+42+gb88cebd5-11
               linux-5.5.9.arch1-2  linux-headers-5.5.9.arch1-2
               linux-lts-5.4.25-2  linux-lts-headers-5.4.25-2
               webkit2gtk-2.28.0-3

Totale Download Grootte:         276,16 MiB
Totale Geïnstalleerde Grootte:   840,62 MiB
Netto Upgrade Grootte:             3,99 MiB

And so does yay…

$ yay
:: Pakket-databases synchroniseren...
 core is up-to-date
 extra is up-to-date
 community is up-to-date
 multilib is up-to-date
 endeavouros            11,6 KiB  1157 KiB/s 00:00 [----------------------] 100%
:: Volledige systeemsupgrade starten...
waarschuwing:xfce4-power-manager: pakket-upgrade (1.6.5-2 => 1.6.6-1) wordt genegeerd
afhankelijkheden oplossen...
zoeken naar conflicterende pakketten...

Pakketten (12) binutils-2.34-2  elfutils-0.178-2  gcc-9.3.0-1  gcc-libs-9.3.0-1
               glibc-2.31-2  libelf-0.178-2  libtool-2.4.6+42+gb88cebd5-11
               linux-5.5.9.arch1-2  linux-headers-5.5.9.arch1-2
               linux-lts-5.4.25-2  linux-lts-headers-5.4.25-2
               webkit2gtk-2.28.0-3

Totale Download Grootte:         276,16 MiB
Totale Geïnstalleerde Grootte:   840,62 MiB
Netto Upgrade Grootte:             3,99 MiB

:: Doorgaan met de installatie? [J/n] 

systemctl status pamac ?

dont know exact the name =-) see systemctl list-unit-files | grep pamac

pamac-cleancache.service                                                  static          disabled     
pamac-daemon.service                                                      static          disabled     
pamac-cleancache.timer                                                    enabled         disabled     


What does the following command show:

ls -l /var/lib/pacman/db.lck

@FredBezies already indicated this probably is the problem.

2 Likes

systemctl status pamac-daemon.service is maybe what you are looking for?

1 Like

yes

On mine it is inactive and Pamac works fine.

1 Like

it does only care on boot services , loads the databases at startup to load faster intoo pamac. its not a service thats loads continuosly. and stil pamac is not pacman , but you have to look also in the system monitor howmany of those service are loaded as example https://forum.manjaro.org/t/pamac-is-telling-me-that-it-is-waiting-for-another-package-manager-to-quit-but-no-other-package-managers-are-open/78848

but probably a pamac Quirk…

Did you restart the computer and then try it. I am using pamac-aur-git and when ever this issue has happened i just restart the computer first before trying to remove the db.lck file. Pamac has been working fine for me.

It is loaded by pamac on-demand. If you launch pamac-manager you should see that it is running.

2 Likes

Like I said before, there is no such file.

And this is the deamon…

$ systemctl status pamac-daemon.service
● pamac-daemon.service - Pamac Daemon
     Loaded: loaded (/usr/lib/systemd/system/pamac-daemon.service; static; vend>
     Active: active (running) since Sun 2020-03-15 09:25:12 CET; 9h ago
   Main PID: 1789 (pamac-daemon)
      Tasks: 4 (limit: 4598)
     Memory: 2.6M
     CGroup: /system.slice/pamac-daemon.service
             └─1789 /usr/bin/pamac-daemon

mrt 15 09:25:12 richard-pc systemd[1]: Starting Pamac Daemon...
mrt 15 09:25:12 richard-pc systemd[1]: Started Pamac Daemon.
mrt 15 12:45:34 richard-pc systemd[1]: pamac-daemon.service: Current command va>

@Lemon
Do you set the parallel downloads to 0