You are not logged in.

#1 2013-09-26 15:57:05

archlady
Member
Registered: 2012-08-02
Posts: 8

pacman wont update itself

hi. I have not used or updated this system in months. I updated the mirror list, new keys, etc but when I try to update pacman I get:

[luser@(none) pacman.d]$ sudo pacman -S pacman
resolving dependencies...
looking for inter-conflicts...

Targets (7): bash-4.2.045-5  filesystem-2013.05-2  glibc-2.18-5  libarchive-3.1.2-2
             linux-api-headers-3.10.6-1  lzo2-2.06-1  pacman-4.1.2-1

Total Installed Size:   45.44 MiB
Net Upgrade Size:       -3.01 MiB

Proceed with installation? [Y/n]
(7/7) checking package integrity                                   [####################################] 100%
(7/7) loading package files                                        [####################################] 100%
(7/7) checking for file conflicts                                  [####################################] 100%
error: failed to commit transaction (conflicting files)
filesystem: /bin exists in filesystem
filesystem: /sbin exists in filesystem
filesystem: /usr/sbin exists in filesystem
Errors occurred, no packages were upgraded.

----
what files are conflicting? How to fix this?

Offline

#2 2013-09-26 16:03:03

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

Re: pacman wont update itself

First, don't do partial upgrades - ever.

Second, thank pacman for failing to allow you to do this partial upgrade, as if you had done it, you'd be really screwed.

Third, read the news, or what is almost certainly the longest thread in the pacman/upgrade subforum (perhaps the longest in all subforums).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-09-26 16:04:28

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: pacman wont update itself

Binaries move to /usr/bin requiring update intervention

https://www.archlinux.org/news/binaries … ervention/
Read the website.

Offline

#4 2013-09-26 16:07:10

archlady
Member
Registered: 2012-08-02
Posts: 8

Re: pacman wont update itself

I did read this news post. I dont understand what they mean, "FIX"  Fix it how?

Fix any non-official packages with files in /bin, /sbin or /usr/sbin to put those files in /usr/bin.

Offline

#5 2013-09-26 16:13:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,090

Re: pacman wont update itself

By modifying the PKGBUILD.

Offline

#6 2013-09-26 16:41:14

archlady
Member
Registered: 2012-08-02
Posts: 8

Re: pacman wont update itself

Where do I find the PKGBUILD file?

Offline

#7 2013-09-26 17:07:06

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: pacman wont update itself

archlady wrote:

Where do I find the PKGBUILD file?

The packages you installed yourself, from AUR for instance.

1) Fix any non-official packages with files in /bin, /sbin or /usr/sbin to put those files in /usr/bin.
The list of packages that are not in a repo that need to be fixed can be generated using:

$ pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -

Offline

#8 2013-09-26 17:16:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman wont update itself

The AUR packages might be already fixed, you just need to compile and install the new versions.

Offline

#9 2013-09-26 17:19:19

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: pacman wont update itself

archlady, you need to figure it out yourself
this may help though https://mailman.archlinux.org/pipermail … 22625.html

Offline

#10 2013-09-26 17:23:33

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: pacman wont update itself

karol, Yeah right, might, but not all.... for instance; arno-iptables-firewall

Always check the pkgbuild, is just a good rule of thumb.

Last edited by qinohe (2013-09-26 17:24:02)

Offline

#11 2013-09-26 17:40:18

archlady
Member
Registered: 2012-08-02
Posts: 8

Re: pacman wont update itself

ok, so in looking at this I have the following:

[luser@(none) pacman.d]$ sudo pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
[sudo] password for luser:
error: cannot determine ownership of directory '/bin'
error: cannot determine ownership of directory '/sbin'
error: cannot determine ownership of directory '/usr/sbin'
cacheclean 2.1-5
ccsm 0.8.4-3
compiz-bcop 0.8.8-2
compiz-core 0.8.8-3
compiz-decorator-gtk 0.8.8-3
compiz-decorator-kde 0.8.8-3
compiz-fusion-plugins-extra 0.8.8-2
compiz-fusion-plugins-main 0.8.8-2
compizconfig-python 0.8.4-4
consolekit 0.4.6-4
dbus-core 1.6.8-1
emerald 0.8.8-2
emerald-themes 0.6.0-4
fusion-icon 1:0.1-1
gigolo 0.4.1-2
gnuradio 3.5.3-0
gqrx 1.9.237-1
gr-baz-git 20120609-1
gr-osmosdr-git 20120612-1
hamlib 1.2.15-2
hsqldb-java 1:1.8.0.10-2
initscripts 2012.09.2-2
khrplatform-devel 8.0.4-3
libcompizconfig 0.8.8-2
libegl 8.0.4-3
libgbm 8.0.4-3
libgl 8.0.4-3
libglapi 8.0.4-3
libgles 8.0.4-3
libmysqlclient 5.5.28-1
libsoup-gnome 2.38.1-1
libuhd 3.4.2-1
libwebkit3 1.8.3-1
mysql 5.5.28-1
mysql-clients 5.5.28-1
pyatspi 2.4.0-1
python2-distribute 0.6.28-1
qt 4.8.3-4
qwt5 5.2.2-1
rtl-sdr-git 20120923-1
sysvinit 2.88-8
terminal 0.4.8-2
ttf-ms-fonts 2.0-9

This is quite a number of files.  Where do I go to 'Fix' them?

Offline

#12 2013-09-26 17:44:33

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: pacman wont update itself

Where do I go to 'Fix' them?

This sounds funny smile

Offline

#13 2013-09-26 17:59:55

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

Re: pacman wont update itself

karol wrote:

The AUR packages might be already fixed, you just need to compile and install the new versions.

As Karol already indicated, most, if not all the ones you listed have either been updated in the AUR, or should just be removed.

Ask when you get stuck following the instructions, not when you haven't even tried yet.

EDIT: have you not yet converted to systemd?  When was the last full update?

EDIT2: From a further review of that list, it looks like it's been a very long time since you last updated (you say months, but it looks like months in the double digits!) - there may not be a feasible way to update at this point.  I'd suggest getting the new installation iso and reinstalling the root filesystem.  You can leave your home partition alone, so your data and most configs will be in tact.

Last edited by Trilby (2013-09-26 18:16:37)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2013-09-26 18:05:08

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

Re: pacman wont update itself

aaditya wrote:

Where do I go to 'Fix' them?

This sounds funny smile


If you don't have anything constructive to post, refrain: https://wiki.archlinux.org/index.php/Fo … mpty_Posts


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2013-09-26 18:22:24

archlady
Member
Registered: 2012-08-02
Posts: 8

Re: pacman wont update itself

For those that are helpful, thank you.  So I looked for the PKGBUILD files by:

sudo find / -name PKGBUILD -type f -print
[sudo] password for luser:
/home/luser/package-query/PKGBUILD
/home/luser/yaourt/PKGBUILD
/home/luser/Downloads/gigolo/PKGBUILD

I edited the three PKGBUILD files identified and could not find any references to /bin /sbin  or   /usr/sbin in any of them. 

I dont know what this means:  "EDIT: have you not yet converted to systemd?  When was the last full update?"

Last full update was many months ago.

Offline

#16 2013-09-26 18:25:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman wont update itself

I suggest you reinstall Arch and keep it updated from now on.
It will probably be faster and surely simpler. Create the list of the packages you have installed so you know what to install on your new system. Backup your settings and data.

Offline

#17 2013-09-26 18:28:25

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

Re: pacman wont update itself

Packages from the AUR are unsupported, so it is your responsibility to manage them. This means rebuilding them whenever the supported packages they depend on are updated, or there is other significant change, such as the move to /usr/bin.

You also seem to be running several deprecated packages (consolekit and sysvinit): if you wish to keep using them, again, it is your responsibility to deal with the impacts of using unsupported software.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#18 2013-09-26 18:55:57

archlady
Member
Registered: 2012-08-02
Posts: 8

Re: pacman wont update itself

Thanks most everyone for the help. I will try to re-install.  The GNU Radio packages are the real killers. Some of them have not been updated in a long long time and the only way to make it work is to use deprecated packages.

Offline

#19 2013-09-26 19:10:42

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

Re: pacman wont update itself

They are not marked as outdated?  And they properly use "DESTDIR" in the Makefile install directive.  So they should work just fine after a rebuild.

Once you reinstall the system, just reinstall those gnuradio aur packages and they should work.  If they don't, open a thread in the AUR subforum and we can help with that.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB