[SOLVED] error when upgrading - 'pamac exists in both 'pamac-cli' and 'pamac-gtk''
ManjaroThis forum is for the discussion of Manjaro Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
error when upgrading - 'pamac exists in both 'pamac-cli' and 'pamac-gtk''
Any ideas on how to fix this?
Code:
Total Installed Size: 1405.90 MiB
Net Upgrade Size: -6.15 MiB
:: Proceed with installation? [Y/n]
(96/96) checking keys in keyring [##################################] 100%
(96/96) checking package integrity [##################################] 100%
(96/96) loading package files [##################################] 100%
(96/96) checking for file conflicts [##################################] 100%
error: failed to commit transaction (conflicting files)
/usr/share/bash-completion/completions/pamac exists in both 'pamac-cli' and 'pamac-gtk'
/usr/share/fish/vendor_completions.d/pamac.fish exists in both 'pamac-cli' and 'pamac-gtk'
/usr/share/zsh/site-functions/_pamac exists in both 'pamac-cli' and 'pamac-gtk'
Errors occurred, no packages were upgraded.
To upgrade I normally use pacman. I might have used yay that time though. I was trying to install jshint with yay and got the message I needed to upgrade a bunch of packages. So iirc, I started the upgrade but it failed. Then I tried with pacman and got the output shown in my OP.
I've only been using Manjaro for a couple months and haven't had any problems like this yet.
Here's that output you requested...
Quote:
[andy@prometheus ~]$ sudo pacman -Qi pamac-cli
Name : pamac-cli
Version : 10.2.2-3
Description : A Package Manager based on libalpm with AUR and Appstream support
Architecture : x86_64
URL : https://gitlab.manjaro.org/applications/pamac
Licenses : GPL3
Groups : None
Provides : pamac-cli=10.2.2-3 pamac-zsh-completions
Depends On : libpamac>=11.0
Optional Deps : None
Required By : manjaro-application-utility pamac-gtk
Optional For : None
Conflicts With : pamac<=7.3.4-2 pamac-aur pamac-cli-dev pamac-zsh-completions
Replaces : None
Installed Size : 197.23 KiB
Packager : Philip Mueller <philm@manjaro.org>
Build Date : Sat 16 Oct 2021 12:55:27 PM CDT
Install Date : Sat 16 Oct 2021 01:17:18 PM CDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
[andy@prometheus ~]$ sudo pacman -Qi pamac-gtk
Name : pamac-gtk
Version : 10.2.2-3
Description : A Package Manager based on libalpm with AUR and Appstream support
Architecture : x86_64
URL : https://gitlab.manjaro.org/applications/pamac
Licenses : GPL3
Groups : None
Provides : pamac=10.2.2-3 pamac-gtk=10.2.2-3
Depends On : pamac-cli=10.2.2-3 libpamac>=11.1 libsoup gtk3>=3.24 libhandy
archlinux-appstream-data desktop-file-utils libnotify
Optional Deps : pamac-gnome-integration: for integration into Gnome
libpamac-flatpak-plugin: for Flatpak support
libpamac-snap-plugin: for Snap support [installed]
Required By : web-installer-url-handler
Optional For : None
Conflicts With : pamac pamac-aur pamac-gtk-dev
Replaces : pamac
Installed Size : 709.29 KiB
Packager : Philip Mueller <philm@manjaro.org>
Build Date : Sat 16 Oct 2021 12:55:27 PM CDT
Install Date : Sat 16 Oct 2021 01:17:18 PM CDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
To upgrade I normally use pacman. I might have used yay that time though. I was trying to install jshint with yay and got the message I needed to upgrade a bunch of packages. So iirc, I started the upgrade but it failed. Then I tried with pacman and got the output shown in my OP.
So, the command to upgrade the system is
Code:
pacman -Syu
It gets a little more complicated with the AUR and AUR helpers like yay, but generally they take the same arguments, e.g.:
Code:
yay -Syu
Is that what you used?
What happens if you now re-install pamac-gtk? Show us:
Code:
pacman -Syu pamac-gtk
PS:
You don't need sudo for pacman queries.
Please CODE tags instead of QUOTE tags - see my signature.
[andy@prometheus ~]$ pacman -Syu pamac-gtk
error: you cannot perform this operation unless you are root.
Code:
[andy@prometheus ~]$ sudo pacman -Syu pamac-gtk
:: Synchronizing package databases...
core is up to date
extra 1900.3 KiB 2.99 MiB/s 00:01 [############################] 100%
community is up to date
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (2) archlinux-appstream-data-20210929-1 pamac-gtk-10.2.2-5
Total Download Size: 0.22 MiB
Total Installed Size: 20.79 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
pamac-gtk-10.2.2-5-x... 221.0 KiB 310 KiB/s 00:01 [############################] 100%
(2/2) checking keys in keyring [############################] 100%
(2/2) checking package integrity [############################] 100%
(2/2) loading package files [############################] 100%
(2/2) checking for file conflicts [############################] 100%
(2/2) checking available disk space [############################] 100%
:: Processing package changes...
(1/2) installing archlinux-appstream-data [############################] 100%
(2/2) installing pamac-gtk [############################] 100%
==> Enable Pamac Updates Indicator via
Gnome Tweak
Optional dependencies for pamac-gtk
pamac-gnome-integration: for integration into Gnome
libpamac-flatpak-plugin: for Flatpak support
libpamac-snap-plugin: for Snap support [installed]
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
^AFAICS everything is fine now, bash-completion is installed?
This sort of quirkiness sometimes solves itself after another sync.
I said queries don't require sudo.
That's what I thought. I had a temporary misunderstanding. I sometimes remember that queries don't require sudo.
Quote:
You should really read pacman's man page.
Good advice. I try to get by a lot of the time with just skimming though. I get a lot of physical pain and anxiety when at the computer so have to often limit my screen time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.