libnsl file conflicts

Problems with packages? Post here, using [tags] of the package name.

libnsl file conflicts

Postby slackline » Fri Apr 27, 2018 10:23 am

Updating a few systems this morning and they are all afflicted by the following file conflicts for lbnsl-1.2.0-1....

$this->bbcode_second_pass_code('', '
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (24) gamin-0.1.10-8 gcc-7.3.1+20180406-1 gcc-fortran-7.3.1+20180406-1 haskell-http-4000.3.11-12 jemalloc-1:5.0.1-4.1 ldb-1.3.2-1 libepoxy-1.5.1-1
libnsl-1.2.0-1 libwbclient-4.8.0-2 linux-raspberrypi-4.14.37-1 nextcloud-13.0.2-1 pam-1.3.0-2 pandoc-2.1.3-21 perl-uri-1.74-1 php-cgi-7.2.5-1
pinentry-1.1.0-2 python-3.6.5-2 python2-2.7.14-3 python2-flask-1.0-1 raspberrypi-bootloader-20180426-1 raspberrypi-bootloader-x-20180426-1
smbclient-4.8.0-2 thin-provisioning-tools-0.7.6-1 xkeyboard-config-2.23.1-3

Total Download Size: 0.11 MiB
Total Installed Size: 564.48 MiB
Net Upgrade Size: 1.34 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
python2-flask-1.0-1-any 117.6 KiB 784K/s 00:00 [############################################################] 100%
(24/24) checking keys in keyring [############################################################] 100%
(24/24) checking package integrity [############################################################] 100%
(24/24) loading package files [############################################################] 100%
(24/24) checking for file conflicts [############################################################] 100%
error: failed to commit transaction (conflicting files)
libnsl: /usr/include/rpcsvc/nis.h exists in filesystem
libnsl: /usr/include/rpcsvc/nis.x exists in filesystem
libnsl: /usr/include/rpcsvc/nis_callback.h exists in filesystem
libnsl: /usr/include/rpcsvc/nis_callback.x exists in filesystem
libnsl: /usr/include/rpcsvc/nis_object.x exists in filesystem
libnsl: /usr/include/rpcsvc/nis_tags.h exists in filesystem
libnsl: /usr/include/rpcsvc/nislib.h exists in filesystem
libnsl: /usr/include/rpcsvc/yp.h exists in filesystem
libnsl: /usr/include/rpcsvc/yp.x exists in filesystem
libnsl: /usr/include/rpcsvc/yp_prot.h exists in filesystem
libnsl: /usr/include/rpcsvc/ypclnt.h exists in filesystem
libnsl: /usr/include/rpcsvc/yppasswd.h exists in filesystem
libnsl: /usr/include/rpcsvc/yppasswd.x exists in filesystem
libnsl: /usr/include/rpcsvc/ypupd.h exists in filesystem
libnsl: /usr/lib/libnsl.so exists in filesystem
Errors occurred, no packages were upgraded.
')

Reading through this guide on resolving file conflicts most of the files are not owned by anything and the /usr/lib/libnsl* files are owned by glibc...

$this->bbcode_second_pass_code('', '
# pacman -Qo /usr/include/rpcsvc/*
error: No package owns /usr/include/rpcsvc/nis_callback.h
error: No package owns /usr/include/rpcsvc/nis_callback.x
error: No package owns /usr/include/rpcsvc/nis.h
error: No package owns /usr/include/rpcsvc/nislib.h
error: No package owns /usr/include/rpcsvc/nis_object.x
error: No package owns /usr/include/rpcsvc/nis_tags.h
error: No package owns /usr/include/rpcsvc/nis.x
error: No package owns /usr/include/rpcsvc/ypclnt.h
error: No package owns /usr/include/rpcsvc/yp.h
error: No package owns /usr/include/rpcsvc/yppasswd.h
error: No package owns /usr/include/rpcsvc/yppasswd.x
error: No package owns /usr/include/rpcsvc/yp_prot.h
error: No package owns /usr/include/rpcsvc/ypupd.h
error: No package owns /usr/include/rpcsvc/yp.x
# pacman -Qo /usr/lib/libnsl*
/usr/lib/libnsl-2.27.so is owned by glibc 2.27-2
error: No package owns /usr/lib/libnsl.so
/usr/lib/libnsl.so.1 is owned by glibc 2.27-2
')

There is no package file for libnsl against which may be the source of errors according to the above linked piece...

$this->bbcode_second_pass_code('', '
# ls -l /var/lib/pacman/local/libnsl-*
ls: cannot access '/var/lib/pacman/local/libnsl-*': No such file or directory
')

Is this an error for such a file not to exist?

I'm tempted to try as advised and remove the files under /usr/include/rpcsvc/ as there is no packages called rpcsvc as far as I can tell.

Unsure how to resolve this correctly, on one system I've tried updating all but libnsl and then tried updating libnsl afterwards but the problem persists of libnsl finding files that already exist.

Any pointers on how to go about resolving this would be appreciated.

Thanks in advance.
slackline
 
Posts: 15
Joined: Wed May 11, 2016 8:18 pm

Re: libnsl file conflicts

Postby slackline » Sun Apr 29, 2018 7:36 pm

Narrowed this down to libnsl being pulled in by python/python2/smbclient and decided to do as advised and move the existing files...

$this->bbcode_second_pass_code('', '
mv /usr/include/rpcsvc /usr/include/.rpcsvc
mv /usr/lib/libnsl.so /usr/lib/.libnsl.so
pacman -Syu
pacman -Syu
:: Synchronising package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (6) libepoxy-1.5.1-1 libnsl-1.2.0-1 libwbclient-4.8.0-2 python-3.6.5-2 python2-2.7.14-3 smbclient-4.8.0-2

Total Installed Size: 190.86 MiB
Net Upgrade Size: 0.24 MiB

:: Proceed with installation? [Y/n] y
(6/6) checking keys in keyring [#######################################################################################################################] 100%
(6/6) checking package integrity [#######################################################################################################################] 100%
(6/6) loading package files [#######################################################################################################################] 100%
(6/6) checking for file conflicts [#######################################################################################################################] 100%
(6/6) checking available disk space [#######################################################################################################################] 100%
:: Processing package changes...
(1/6) upgrading libepoxy [#######################################################################################################################] 100%
(2/6) upgrading libwbclient [#######################################################################################################################] 100%
(3/6) installing libnsl [#######################################################################################################################] 100%
(4/6) upgrading python [#######################################################################################################################] 100%
(5/6) upgrading python2 [#######################################################################################################################] 100%
(6/6) upgrading smbclient [#######################################################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
')

Upgraded fine, not rebooted yet so unsure if this approach is going to introduce problems.
slackline
 
Posts: 15
Joined: Wed May 11, 2016 8:18 pm

Re: libnsl file conflicts

Postby ckujau » Sun May 06, 2018 7:43 pm

Ran into the same, made it go through by force-updating libnsl first, and then upgrading the rest. Survived a reboot even :)

$this->bbcode_second_pass_code('', 'pacman -Sv --force libnsl
pacman -Svuy')
ckujau
 
Posts: 4
Joined: Fri May 26, 2017 10:00 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 11 guests