LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro
User Name
Password
Manjaro This forum is for the discussion of Manjaro Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-16-2021, 01:13 PM   #1
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
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.
 
Old 10-16-2021, 01:18 PM   #2
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Original Poster
Rep: Reputation: 167Reputation: 167
I removed the bash-completion package and was able to complete the upgrade.
 
Old 10-17-2021, 04:29 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Andy Alt View Post
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.
 
Old 10-17-2021, 12:19 PM   #4
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Original Poster
Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by ondoho View Post
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
 
Old 10-18-2021, 01:02 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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
 
1 members found this post helpful.
Old 10-18-2021, 04:16 PM   #6
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Original Poster
Rep: Reputation: 167Reputation: 167
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
 
Old 10-18-2021, 04:23 PM   #7
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Original Poster
Rep: Reputation: 167Reputation: 167
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
 
1 members found this post helpful.
Old 10-19-2021, 12:44 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ Yes but now you don't have pamac-gtk anymore.

Quote:
Originally Posted by Andy Alt View Post
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.
 
1 members found this post helpful.
Old 10-19-2021, 12:53 PM   #9
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Original Poster
Rep: Reputation: 167Reputation: 167
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
 
Old 10-20-2021, 12:18 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^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 View Post
[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.
 
Old 10-20-2021, 12:26 AM   #11
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Original Poster
Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by ondoho View Post
^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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Manjaro Linux 21.0 "Ornara" Released with Linux 5.10 LTS, KDE Plasma 5.21, and Pamac 10 LXer Syndicated Linux News 0 03-28-2021 02:15 AM
chrony package installation error with terminal on manjaro and got stuck in pamac andrewysk Linux - Newbie 2 12-13-2020 03:12 AM
directory exists but no such directory exists yumito Linux - Newbie 3 06-09-2013 02:02 AM
To exists or not to exists, this is the Q. Inbal Linux - Newbie 3 07-18-2006 06:04 AM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro

All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration