LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Manjaro (https://www.linuxquestions.org/questions/manjaro-119/)
-   -   error when upgrading - 'pamac exists in both 'pamac-cli' and 'pamac-gtk'' (https://www.linuxquestions.org/questions/manjaro-119/error-when-upgrading-pamac-exists-in-both-pamac-cli-and-pamac-gtk-4175702123/)

Andy Alt 10-16-2021 01:13 PM

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.


Andy Alt 10-16-2021 01:18 PM

I removed the bash-completion package and was able to complete the upgrade.

ondoho 10-17-2021 04:29 AM

Quote:

Originally Posted by Andy Alt (Post 6292673)
I removed the bash-completion package and was able to complete the upgrade.

Wouldn't you rather remove one of either pamac-cli or pamac-gtk?

IDK, bash-completion is pretty important to me.

Andy Alt 10-17-2021 12:19 PM

Quote:

Originally Posted by ondoho (Post 6292867)
Wouldn't you rather remove one of either pamac-cli or pamac-gtk?

IDK, bash-completion is pretty important to me.

Yes, but...

Quote:

[andy@prometheus ~]$ sudo pacman -Rs pamac-gtk
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing pamac-gtk breaks dependency 'pamac-gtk' required by web-installer-url-handler
[andy@prometheus ~]$ sudo pacman -Rs pamac-cli
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing pamac-cli breaks dependency 'pamac-cli' required by manjaro-application-utility
:: removing pamac-cli breaks dependency 'pamac-cli=10.2.2-3' required by pamac-gtk

ondoho 10-18-2021 01:02 AM

OK.
How are you upgrading? yay, pacman, pamac-cli, something else? What produced the output in post #1?

Also show us:

Code:

pacman -Qi pamac-cli
pacman -Qi pamac-gtk


Andy Alt 10-18-2021 04:16 PM

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

Andy Alt 10-18-2021 04:23 PM

I just ran these commands and they all completed successfully.

Code:

sudo pacman -Rs manjaro-hello

yay -Rs pamac-gtk

sudo pacman -Syu bash-completion


ondoho 10-19-2021 12:44 AM

^ Yes but now you don't have pamac-gtk anymore.

Quote:

Originally Posted by Andy Alt (Post 6293439)
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 Alt 10-19-2021 12:53 PM

Code:

[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...

Thanks, ondoho

ondoho 10-20-2021 12:18 AM

^AFAICS everything is fine now, bash-completion is installed?

This sort of quirkiness sometimes solves itself after another sync.

Quote:

Originally Posted by Andy Alt (Post 6293722)
[code]
[andy@prometheus ~]$ pacman -Syu pamac-gtk
error: you cannot perform this operation unless you are root.

I said queries don't require sudo.

You should really read pacman's man page.

Andy Alt 10-20-2021 12:26 AM

Quote:

Originally Posted by ondoho (Post 6293864)
^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.


All times are GMT -5. The time now is 12:14 PM.