Conflicts during pacman -Syu

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Conflicts during pacman -Syu

Postby hydro » Sat Aug 25, 2012 1:39 pm

http://www.archlinux.org/news/
$this->bbcode_second_pass_quote('', '
')Pay special attention to news items with "manual intervention required" in their header.

Arch_Linux_System_Maintenance
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Conflicts during pacman -Syu

Postby Hypnosis4U2NV » Sat Aug 25, 2012 1:50 pm

OK, so I did another pacman -Syu and everything updated.. Now I don't see my 2 Ext HD's attached to the Pogoplug.. I use df and it doesn't show the mounts..

EDIT: Got Webmin working (HELL YEA!) and I mounted the drives using it..
Last edited by Hypnosis4U2NV on Sat Aug 25, 2012 2:13 pm, edited 1 time in total.
Hypnosis4U2NV
 
Posts: 62
Joined: Sat Aug 06, 2011 11:41 pm

Re: Conflicts during pacman -Syu

Postby hydro » Sat Aug 25, 2012 2:08 pm

Well, I don't want anything to be mounted simply because it is attached to the device, I rather decide for myself what is mounted and how. There is fstab for devices that are attached permanently and autofs for removable media. Some people use udev for automounting. You probably want to install the package udev-automount.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Conflicts during pacman -Syu

Postby Hypnosis4U2NV » Sat Aug 25, 2012 2:16 pm

$this->bbcode_second_pass_quote('hydro', 'W')ell, I don't want anything to be mounted simply because it is attached to the device, I rather decide for myself what is mounted and how. There is fstab for devices that are attached permanently and autofs for removable media. Some people use udev for automounting. You probably want to install the package udev-automount.


Thanks, I got Webmin working and mounted the drives using it.. It says 'saved' and is supposed to be auto-mounted, but do I have to install udev-automount? I had some serious problems in the past where my Pogoplug wouldn't even boot when I installed it.. I just want the Ext drives to automount whenever the Pogoplug boots from a cold boot..
Hypnosis4U2NV
 
Posts: 62
Joined: Sat Aug 06, 2011 11:41 pm

Re: Conflicts during pacman -Syu

Postby hydro » Sat Aug 25, 2012 3:38 pm

I have no experience with webmin, maybe it just created an fstab entry, so don't install udev-automount.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Conflicts during pacman -Syu

Postby Hypnosis4U2NV » Sat Aug 25, 2012 3:50 pm

Thanks hydro, I appreciate your time helping me figure this out!
Hypnosis4U2NV
 
Posts: 62
Joined: Sat Aug 06, 2011 11:41 pm

Re: Conflicts during pacman -Syu

Postby Hypnosis4U2NV » Fri Sep 21, 2012 10:39 pm

I used UUID in fstab and the drives mount fine after a cold boot..
Hypnosis4U2NV
 
Posts: 62
Joined: Sat Aug 06, 2011 11:41 pm

Pacman broken

Postby Hypnosis4U2NV » Mon Oct 01, 2012 1:27 am

I tried updating my system today with pacman -Syu and it failed on the glibc.. Before reading the release notes, I used --force and now I have pacman broken.. Is there an easy way to reinstall it?

Edit: I can't even start/stop/restart some of my services..

$this->bbcode_second_pass_code('', '
[root@Pogoplug ~]# pacman -Syu
:: Synchronizing package databases...
core 38.1 KiB 142K/s 00:00 [######################] 100%
extra 430.7 KiB 797K/s 00:01 [######################] 100%
community 421.1 KiB 1488K/s 00:00 [######################] 100%
alarm 5.0 KiB 1241K/s 00:00 [######################] 100%
aur 10.5 KiB 3.24M/s 00:00 [######################] 100%
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies...
looking for inter-conflicts...

Targets (1): pacman-4.0.3-3

Total Download Size: 1.00 MiB
Total Installed Size: 3.39 MiB
Net Upgrade Size: 0.00 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
pacman-4.0.3-3-arm 1020.8 KiB 1232K/s 00:01 [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
(1/1) upgrading pacman [######################] 100%
[root@Pogoplug ~]# pacman -Syu
:: Synchronizing 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 inter-conflicts...

Targets (29): binutils-2.22-10 coreutils-8.19-1 dhcpcd-5.6.2-1
ffmpeg-1:1.0-1 filesystem-2012.8-1 glibc-2.16.0-4
gnutls-3.1.2-1 hwids-20120922-1 initscripts-2012.08.3-2
libarchive-3.0.4-2 libpipeline-1.2.2-1 libtasn1-2.14-1
libwbclient-3.6.8-1 man-db-2.6.3-1 minidlna-1.0.25-2
mkinitcpio-busybox-1.20.2-1 nfsidmap-0.25-1
pacman-mirrorlist-20120916-1 pinentry-0.8.2-1 procps-ng-3.3.3-6
samba-3.6.8-1 sdl-1.2.15-3 smbclient-3.6.8-1 systemd-192-1
sysvinit-2.88-8 sysvinit-tools-2.88-8 tzdata-2012f-1
uboot-env-2009.11-4 util-linux-2.22-6

Total Download Size: 40.52 MiB
Total Installed Size: 225.60 MiB
Net Upgrade Size: 2.25 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
tzdata-2012f-1-any 140.5 KiB 313K/s 00:00 [######################] 100%
glibc-2.16.0-4-arm 7.6 MiB 1727K/s 00:05 [######################] 100%
binutils-2.22-10-arm 3.0 MiB 2.05M/s 00:01 [######################] 100%
coreutils-8.19-1-arm 1934.7 KiB 2.09M/s 00:01 [######################] 100%
dhcpcd-5.6.2-1-arm 68.3 KiB 3.05M/s 00:00 [######################] 100%
filesystem-2012.8-1-any 5.8 KiB 8.86M/s 00:00 [######################] 100%
hwids-20120922-1-any 277.8 KiB 2.21M/s 00:00 [######################] 100%
util-linux-2.22-6-arm 1489.5 KiB 2.10M/s 00:01 [######################] 100%
systemd-192-1-arm 1110.4 KiB 2.08M/s 00:01 [######################] 100%
sysvinit-tools-2.88... 24.0 KiB 5.05M/s 00:00 [######################] 100%
sysvinit-2.88-8-arm 39.5 KiB 3.33M/s 00:00 [######################] 100%
initscripts-2012.08... 23.1 KiB 5.26M/s 00:00 [######################] 100%
libarchive-3.0.4-2-arm 461.9 KiB 1639K/s 00:00 [######################] 100%
libpipeline-1.2.2-1-arm 28.2 KiB 4.07M/s 00:00 [######################] 100%
man-db-2.6.3-1-arm 325.4 KiB 2.23M/s 00:00 [######################] 100%
mkinitcpio-busybox-... 144.9 KiB 2.76M/s 00:00 [######################] 100%
nfsidmap-0.25-1-arm 23.8 KiB 3.12M/s 00:00 [######################] 100%
pacman-mirrorlist-2... 768.0 B 5.47M/s 00:00 [######################] 100%
pinentry-0.8.2-1-arm 83.1 KiB 2.89M/s 00:00 [######################] 100%
procps-ng-3.3.3-6-arm 196.6 KiB 2.07M/s 00:00 [######################] 100%
:: Retrieving packages from extra...
sdl-1.2.15-3-arm 300.4 KiB 2.20M/s 00:00 [######################] 100%
ffmpeg-1:1.0-1-arm 4.0 MiB 2.05M/s 00:02 [######################] 100%
libtasn1-2.14-1-arm 93.8 KiB 2.90M/s 00:00 [######################] 100%
gnutls-3.1.2-1-arm 1612.4 KiB 2.07M/s 00:01 [######################] 100%
libwbclient-3.6.8-1-arm 15.3 KiB 9.37M/s 00:00 [######################] 100%
smbclient-3.6.8-1-arm 5.8 MiB 2.05M/s 00:03 [######################] 100%
samba-3.6.8-1-arm 11.7 MiB 2.05M/s 00:06 [######################] 100%
:: Retrieving packages from community...
minidlna-1.0.25-2-arm 108.0 KiB 2.80M/s 00:00 [######################] 100%
:: Retrieving packages from alarm...
uboot-env-2009.11-4-arm 7.3 KiB 5.23M/s 00:00 [######################] 100%
(29/29) checking package integrity [######################] 100%
(29/29) loading package files [######################] 100%
(29/29) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.
[root@Pogoplug ~]# pacman -S glibc --force
resolving dependencies...
looking for inter-conflicts...

Targets (1): glibc-2.16.0-4

Total Installed Size: 33.75 MiB
Net Upgrade Size: 0.10 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking available disk space [######################] 100%
(1/1) upgrading glibc [######################] 100%
error: extract: not overwriting dir with file lib
error: problem occurred while upgrading glibc
call to execv failed (No such file or directory)
error: command failed to execute correctly
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.
[root@Pogoplug ~]# pacman -Syu --ignore glibc
-bash: /usr/bin/pacman: No such file or directory
[root@Pogoplug ~]# pacman -Su
-bash: /usr/bin/pacman: No such file or directory
[root@Pogoplug ~]# rc.d start webmin
-bash: /usr/sbin/rc.d: /bin/bash: bad interpreter: No such file or directory
[root@Pogoplug ~]# /etc/rc.d/minidlna start
-bash: /etc/rc.d/minidlna: /bin/bash: bad interpreter: No such file or directory
[root@Pogoplug ~]#
]')
Hypnosis4U2NV
 
Posts: 62
Joined: Sat Aug 06, 2011 11:41 pm

Re: Conflicts during pacman -Syu

Postby moonman » Mon Oct 01, 2012 2:51 am

DO NOT disconnect ssh session.

Read here, the stuff in subscript only.

EDIT: I'll post it here so you can read it:

$this->bbcode_second_pass_quote('', 'I')f you are stuck with this error:
$this->bbcode_second_pass_code('', 'error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.')

There is a way to force the upgrade and not break the system. Make sure you you don't close ssh session before you finish. If you do, you won't be able to log back in. Here is what I did:

pacman -Syf pacman
say Y to all questions

You will get this error:
$this->bbcode_second_pass_code('', 'warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
error: extract: not overwriting dir with file lib
error: problem occurred while upgrading glibc
call to execv failed (No such file or directory)
error: command failed to execute correctly
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.')
Now delete /lib

$this->bbcode_second_pass_code('', '/usr/lib/ld-linux.so.3 /bin/rm -Rf /lib')

install glibc again:
$this->bbcode_second_pass_code('', '
/usr/lib/ld-linux.so.3 /usr/bin/pacman -Sy glibc')

Now do a full upgrade. Everything should be working now.

Troubleshooting:
If, after you are done, pacman is not upgrading, do this:
$this->bbcode_second_pass_code('', '/usr/lib/ld-linux.so.3 /usr/bin/pacman -Suy')

then

$this->bbcode_second_pass_code('', ' /usr/lib/ld-linux.so.3 /usr/bin/pacman -Sy glibc')



Thanks to pepedog for suggeting to use ld-linux.so.3 directly :)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am
Top

Re: Conflicts during pacman -Syu

Postby Hypnosis4U2NV » Mon Oct 01, 2012 10:20 am

Unfortunately, the entire system is broken.. I can't run any commands.. From what I could gather reading around, I need to Archlinux from another machine and mount the drive with the broken system onto it then run pacman glibc onto that drive to repair it..

Besides that, I closed that SSH session last night and but I still have it running. Archlinux. I also performed a rysnc backup not too long ago so I am wondering if I can restore that somehow..
Hypnosis4U2NV
 
Posts: 62
Joined: Sat Aug 06, 2011 11:41 pm

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 4 guests