You are not logged in.

#1 2016-04-18 15:39:16

madmaurice
Member
Registered: 2010-04-18
Posts: 22

conflict between bash-completion and util-linux

Both, util-linux-2.28-1 and bash-completion-2.1-5 want to install the files mount and umount in /usr/share/bash-completion/completions/, which obviously results in a conflict.

For now i chose util-linux, but i guess it'd be neat to have both installed like before?

Offline

#2 2016-04-18 15:41:30

alex099
Member
Registered: 2016-04-15
Posts: 9

Re: conflict between bash-completion and util-linux

Here I am with another issue,this time less system breaking but still annoying,after upgrading util-linux and bash-completions I keep getting this error on every package install.

Offline

#3 2016-04-18 15:42:07

alex099
Member
Registered: 2016-04-15
Posts: 9

Re: conflict between bash-completion and util-linux

error: file owned by 'bash-completion' and 'util-linux': 'usr/share/bash-completion/completions/umount'
error: file owned by 'bash-completion' and 'util-linux': 'usr/share/bash-completion/completions/mount'

Offline

#4 2016-04-18 15:44:34

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: conflict between bash-completion and util-linux

this is because those files are owned by bash-completion package.


Everything less than immortality is a complete waste of time!

Offline

#5 2016-04-18 15:45:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: conflict between bash-completion and util-linux

Show the full command and output.  Those files are *only* owned by util-linux, so either you are doing a partial upgrade or you have nonstandard repositories replacing main repo packages.

No irrlicht, they are not owned by bash-completion.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2016-04-18 15:51:38

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: conflict between bash-completion and util-linux

# pacman -S util-linux
resolving dependencies...
looking for conflicting packages...

Packages (1) util-linux-2.28-1

Total Installed Size:  9,40 MiB
Net Upgrade Size:      0,42 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [################] 100%
(1/1) checking package integrity                   [################] 100%
(1/1) loading package files                        [################] 100%
(1/1) checking for file conflicts                  [################] 100%
error: failed to commit transaction (conflicting files)
util-linux: /usr/share/bash-completion/completions/mount exists in filesystem
util-linux: /usr/share/bash-completion/completions/umount exists in filesystem
Errors occurred, no packages were upgraded.

no additional repos, plain and recent archlinux


pacman -Qo /usr/share/bash-completion/completions/mount
/usr/share/bash-completion/completions/mount is owned by bash-completion 2.1-5

Last edited by irrlicht (2016-04-18 15:52:26)


Everything less than immortality is a complete waste of time!

Offline

#7 2016-04-18 15:53:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: conflict between bash-completion and util-linux

Yes.  Stop doing partial upgrades.  The current bash-completion in the repos is 2.3.  Both util-linux and bash-completion were upgraded today.  To get the version numbers you are showing you are clearly hiding the fact that you ran a pacman -Sy shortly before attempting to install util-linux.

EDIT: it seems there may have been ~20 minutes between when these two packages were pushed to the repos.  So it might be possible that your mirror just happened to sync in that time (pretty unlikely) but even then, the issue is with the mirror you are using.  All is well with these packages in the repos.

EDIT: Apparently - despite the time window being only 20 minutes - several user's mirrors were apparently affected by this.  I apologize for my skepticism.  But on the other hand, if something like this happens, I'd personally spend at least 20 minutes trying to search and figure it out before posting about it.  It this approach had been taken the problem would have been solved before it needed a fuss.  Transient snafus will come and go in any networked resource - I don't think issues need be opened if the problem hasn't persisted for more than 20 minutes.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2016-04-18 15:57:38

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: conflict between bash-completion and util-linux

Trilby wrote:

Yes.  Stop doing partial upgrades.  The current bash-completion in the repos is 2.3.  Both util-linux and bash-completion were upgraded today.  To get the version numbers you are showing you are clearly hiding the fact that you ran a pacman -Sy shortly before attempting to install util-linux.


I'm not doing a partial upgrade. This output was provided to show the problem.  Bash-completion 2.3 is only since 2-3 minutes in the repos. Currently on the top position on the main page, and wasn't  there before.


Everything less than immortality is a complete waste of time!

Offline

#9 2016-04-18 15:58:29

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: conflict between bash-completion and util-linux

madmaurice wrote:

Both, util-linux-2.28-1 and bash-completion-2.1-5 want to install the files mount and umount in /usr/share/bash-completion/completions/, which obviously results in a conflict.

For now i chose util-linux, but i guess it'd be neat to have both installed like before?

Please search for existing threads before creating new ones.

Merged into other thread.

edit

Ah, I see now that this was posted first. I redirect my comment to alex099.

edit 2
And now I see that the threads were posted about 2 minutes apart. Ignore my previous comment wink

Last edited by Xyne (2016-04-18 17:03:38)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2016-04-18 16:01:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: conflict between bash-completion and util-linux

@irrlecht, 58 minutes ago actually.  But I'm done quibbling minor details of an expired greivance for something that *might* have been out of place for a matter of minutes.

Yes, it seems the packages didn't get to the repos at *exactly* the same time.  But the problem is resolved.  Update your system.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2016-04-18 16:13:35

madmaurice
Member
Registered: 2010-04-18
Posts: 22

Re: conflict between bash-completion and util-linux

Xyne wrote:
madmaurice wrote:

Both, util-linux-2.28-1 and bash-completion-2.1-5 want to install the files mount and umount in /usr/share/bash-completion/completions/, which obviously results in a conflict.

For now i chose util-linux, but i guess it'd be neat to have both installed like before?

Please search for existing threads before creating new ones.

Merged into other thread.

edit

Ah, I see now that this was posted first. I redirect my comment to alex099.

I am pretty sure I did a search. But as it takes some time to write a post it might not have been alex099's fault either. smile

Edit: All is good now. The mirror I use finally updated. Thanks for the help guys. The forum moderators as well as the package maintainers are doing a great job. Keep it going.

Last edited by madmaurice (2016-04-18 16:16:21)

Offline

#12 2016-04-18 16:21:25

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: conflict between bash-completion and util-linux

madmaurice wrote:

But as it takes some time to write a post it might not have been alex099's fault either. smile

When in doubt, blame Allan. I bet he's somehow responsible for this conflict mess and shoddy package rollout too.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#13 2016-04-18 16:21:54

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: conflict between bash-completion and util-linux

Glad I found this because I was in the same exact situation.

But, I upgraded bash-completion and all seems to back to normal now.

I am no longer getting this error.

error: file owned by 'bash-completion' and 'util-linux': 'usr/share/bash-completion/completions/mount'
error: file owned by 'bash-completion' and 'util-linux': 'usr/share/bash-completion/completions/umount'

Thanks for posting this madmaurice and alex099!

Last edited by Cavsfan (2016-04-18 17:15:16)

Offline

#14 2016-04-18 16:35:51

alex099
Member
Registered: 2016-04-15
Posts: 9

Re: conflict between bash-completion and util-linux

sorry for double posting,i did do a search before,and there was no thread about this
My repos updated finally,thanks guys

Offline

#15 2016-04-18 17:31:35

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: conflict between bash-completion and util-linux

alex099 wrote:

sorry for double posting,i did do a search before,and there was no thread about this
My repos updated finally,thanks guys

Yes, madmaurice was probably typing this as you were typing yours.
It hit me at the same time so I was very thankful to find out that just updating bash-completion would fix it.
I didn't want to end up with a broken system.

I googled what to do when you get error: failed to commit transaction (conflicting files)
And found the pacman man page which suggested renaming the files, which I did and everything installed but
I had that error from my previous post. So, I must have caught it in middle of when bash-completion was
becoming available like everyone else. Because it was not in the package list to be updated.
I tried to update bash-completion but it was not the newer version until I refreshed the repos again.

I definitely learned something from this.
So, thanks again! smile

Last edited by Cavsfan (2016-04-18 19:53:53)

Offline

#16 2016-04-18 18:01:57

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: conflict between bash-completion and util-linux

madmaurice wrote:

Edit: All is good now. The mirror I use finally updated. Thanks for the help guys. The forum moderators as well as the package maintainers are doing a great job. Keep it going.

Please remember to mark your thread [SOLVED] (edit the title of your first post.)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#17 2016-05-17 01:28:37

patrickb
Member
Registered: 2016-05-17
Posts: 27

Re: conflict between bash-completion and util-linux

FWIW, this possibly indicates the NZ mirror is well out of date:

pat-laptop:/home/pat# cat /etc/pacman.d/mirrorlist
##
## Arch Linux repository mirrorlist
## Generated on 2015-07-19
##

## New Zealand
Server = http://mirror.xnet.co.nz/pub/archlinux/$repo/os/$arch
# pacman -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
# pacman -S bash-completion
resolving dependencies...
looking for conflicting packages...

Packages (1) bash-completion-2.1-5

Total Installed Size:  0.76 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                             [##########################################################################] 100%
(1/1) checking package integrity                                                                                           [##########################################################################] 100%
(1/1) loading package files                                                                                                [##########################################################################] 100%
(1/1) checking for file conflicts                                                                                          [##########################################################################] 100%
error: failed to commit transaction (conflicting files)
bash-completion: /usr/share/bash-completion/completions/mount exists in filesystem
bash-completion: /usr/share/bash-completion/completions/umount exists in filesystem
Errors occurred, no packages were upgraded.
# pacman -Qo /usr/share/bash-completion/completions/mount
/usr/share/bash-completion/completions/mount is owned by util-linux 2.28-1

Offline

#18 2016-05-17 01:32:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: conflict between bash-completion and util-linux

That mirror is terrible. Use an Australian one or, if you are based in NZ, use the Uni of Auckland one.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#19 2016-05-17 03:25:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: conflict between bash-completion and util-linux

That mirror isn't even on the mirrorlist anymore.

Offline

#20 2016-05-17 14:41:55

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: conflict between bash-completion and util-linux

Use Reflector. It finds the best mirrors for your area.

I created an alias and just run upd-mirrorlist in terminal once a week or so.

Since I'm in the US, here is mine:

#update mirror list to the latest and fastest sources
alias upd-mirrorlist="sudo /usr/bin/reflector --country 'United States' -l 10 -p http --sort rate --save /etc/pacman.d/mirrorlist"

It saves 10 of the fastest mirrors.

/etc/pacman.d/mirrorlist contains this afterwards:

################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --country 'United States' -l 10 -p http --sort rate --save /etc/pacman.d/mirrorlist
# When:       2016-05-16 14:04:45 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2016-05-16 14:04:44 UTC
# Last Check: 2016-05-16 13:46:42 UTC

Server = http://arch.mirrors.ionfish.org/$repo/os/$arch
Server = http://mirror.kaminski.io/archlinux/$repo/os/$arch
Server = http://il.mirrors.linaxe.net/archlinux/$repo/os/$arch
Server = http://ca.us.mirror.archlinux-br.org/$repo/os/$arch
Server = http://lug.mtu.edu/archlinux/$repo/os/$arch
Server = http://mirror.htnshost.com/archlinux/$repo/os/$arch
Server = http://mirror.lty.me/archlinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = http://www.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
Server = http://arch.localmsp.org/arch/$repo/os/$arch

Just my 2 shillings...

Last edited by Cavsfan (2016-05-17 14:48:51)

Offline

Board footer

Powered by FluxBB