Pacman breaks Pacman

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

Pacman breaks Pacman

Postby BrianM » Mon Oct 01, 2012 5:16 pm

OK, how come a brand new install (required by previous pacman upgrade failure and glibc mess) cannot do an upgrade without deleting itself?
And, more importantly (please !!) - how do I fix it?
BrianM
 
Posts: 51
Joined: Sat Sep 29, 2012 2:23 pm

Re: Pacman breaks Pacman

Postby xenoxaos » Mon Oct 01, 2012 6:06 pm

What?
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Pacman breaks Pacman

Postby pepedog » Mon Oct 01, 2012 7:04 pm

Just as no (to upgrading pacman first)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Pacman breaks Pacman

Postby BrianM » Mon Oct 01, 2012 10:19 pm

OK - try to sensibly answer your question.

$this->bbcode_second_pass_code('', 'Pacman -S pacman ')

breaks Pacman: goes missing

$this->bbcode_second_pass_code('', 'Last login: Mon Oct 1 16:25:09 2012 from 192.168.10.115
[root@alarm ~]# pacman
-bash: pacman: command not found
')
BrianM
 
Posts: 51
Joined: Sat Sep 29, 2012 2:23 pm

Re: Pacman breaks Pacman

Postby pepedog » Mon Oct 01, 2012 10:48 pm

Which device, and which rootfs?
Has pacman -Syu ever been run?
Is there a /usr/bin/pacman
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Pacman breaks Pacman

Postby BrianM » Tue Oct 02, 2012 7:35 am

Hi pepedog
This is GoFlex home using latest ArchLinux distro from a fresh install yesterday

$this->bbcode_second_pass_code('', 'System hostname alarm.office.ind-tech.com (127.0.0.1)
Operating system Archlinux
Webmin version 1.600
Time on system Tue Oct 2 08:41:29 2012
Kernel and CPU Linux 3.1.10-13-ARCH on armv5tel
System uptime 14 hours, 05 minutes
Running processes 52
CPU load averages 0.00 (1 min) 0.01 (5 mins) 0.05 (15 mins)
CPU usage 0% user, 0% kernel, 0% IO, 100% idle
Real memory 120.17 MB total, 46.04 MB used

Local disk space 916.89 GB total, 578.94 GB used
')

I'll be more specific, this weekend I initially tried the standard pacman -Syu and got the "pacman needs updating to you want to stop and do that now?" went with the N option, got the glibc errors, then tried updating pacman itself. Managed to shag the system.

Yesterday, with moonman's assistance built a new rootfs on 1st a USB drive to test then on original TB drive.

Both these were successful.

However, then went with the Webmin "run system upgrade" option and that fails - having (I believe) tried to upgrade pacman itself.

$this->bbcode_second_pass_code('', 'Run system upgrade
Output from pacman -Syu --noconfirm ..
error: duplicated database entry 'usbutils'
error: duplicated database entry 'inetutils'
error: duplicated database entry 'man-pages'
error: duplicated database entry 'xfsprogs'
error: duplicated database entry 'libusb-compat'
error: duplicated database entry 'openssh'
error: duplicated database entry 'binutils'
error: duplicated database entry 'glibc'
error: duplicated database entry 'glib2'
error: duplicated database entry 'libssh2'
error: duplicated database entry 'libpipeline'
error: duplicated database entry 'mdadm'
error: duplicated database entry 'pam'
error: duplicated database entry 'openssl'
error: duplicated database entry 'dhcpcd'
error: duplicated database entry 'wget'
error: duplicated database entry 'sysvinit'
error: duplicated database entry 'pacman'
error: duplicated database entry 'acl'
error: duplicated database entry 'db'
error: duplicated database entry 'linux-headers'
error: duplicated database entry 'syslog-ng'
error: duplicated database entry 'linux-firmware'
error: duplicated database entry 'libgssglue'
error: duplicated database entry 'zlib'
error: duplicated database entry 'keyutils'
error: duplicated database entry 'pciutils'
error: duplicated database entry 'libidn'
error: duplicated database entry 'curl'
error: duplicated database entry 'iputils'
error: duplicated database entry 'linux'
error: duplicated database entry 'ntfs-3g'
error: duplicated database entry 'vi'
error: duplicated database entry 'iana-etc'
error: duplicated database entry 'mkinitcpio'
error: duplicated database entry 'iproute2'
error: duplicated database entry 'filesystem'
error: duplicated database entry 'fuse'
error: duplicated database entry 'initscripts'
error: duplicated database entry 'coreutils'
error: duplicated database entry 'ca-certificates'
error: duplicated database entry 'wpa_supplicant'
error: duplicated database entry 'perl'
error: duplicated database entry 'logrotate'
error: duplicated database entry 'libcap'
error: duplicated database entry 'shadow'
error: duplicated database entry 'bash'
error: duplicated database entry 'mkinitcpio-busybox'
error: duplicated database entry 'man-db'
error: duplicated database entry 'pacman-mirrorlist'
error: duplicated database entry 'pinentry'
error: duplicated database entry 'device-mapper'
error: duplicated database entry 'libldap'
error: duplicated database entry 'grep'
error: duplicated database entry 'gzip'
error: duplicated database entry 'e2fsprogs'
error: duplicated database entry 'lvm2'
error: duplicated database entry 'util-linux'
error: duplicated database entry 'ldns'
error: duplicated database entry 'attr'
error: duplicated database entry 'libnl'
error: duplicated database entry 'xz'
error: duplicated database entry 'kbd'
error: duplicated database entry 'pcre'
error: duplicated database entry 'sysfsutils'
error: duplicated database entry 'psmisc'
error: duplicated database entry 'libpcap'
error: duplicated database entry 'kmod'
error: duplicated database entry 'krb5'
error: duplicated database entry 'bzip2'
error: duplicated database entry 'dbus-core'
error: duplicated database entry 'gmp'
error: duplicated database entry 'cronie'
error: duplicated database entry 'tzdata'
error: duplicated database entry 'cryptsetup'
error: duplicated database entry 'run-parts'
error: duplicated database entry 'readline'
:: 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
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n]

resolving dependencies...
looking for inter-conflicts...
error: local database is inconsistent: version mismatch on package vi

Targets (1): pacman-4.0.3-3

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

Proceed with installation? [Y/n]
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
upgrading pacman...
error: could not create directory /var/lib/pacman/local/pacman-4.0.3-3/: File exists
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.

')

This resulted in
[root@alarm ~]# pacman
-bash: pacman: command not found

Thanks for any help

Brian
Last edited by BrianM on Tue Oct 02, 2012 8:50 am, edited 1 time in total.
BrianM
 
Posts: 51
Joined: Sat Sep 29, 2012 2:23 pm

Re: Pacman breaks Pacman

Postby pepedog » Tue Oct 02, 2012 8:46 am

I had this recently, stopped pacman as it was installing packages
What has happened is all the packages installed or updated, info in them are put here /var/lib/pacman/local, then you restored from and earlier which added stuff from earlier. So either you redo with your new rootfs and NOT restore that folder, or run this in terminal
$this->bbcode_second_pass_code('', 'pacman -Sy usbutils inetutils man-pages xfsprogs libusb-compat openssh binutils glibc glib2 libssh2 libpipeline mdadm pam openssl dhcpcd wget sysvinit pacman acl db linux-headers syslog-ng linux-firmware libgssglue zlib keyutils pciutils libidn curl iputils linux ntfs-3g vi iana-etc mkinitcpio iproute2 filesystem fuse initscripts coreutils ca-certificates wpa_supplicant perl logrotate libcap shadow bash mkinitcpio-busybox man-db pacman-mirrorlist pinentry device-mapper libldap grep gzip e2fsprogs lvm2 util-linux ldns attr libnl xz kbd pcre sysfsutils psmisc libpcap kmod krb5 bzip2 dbus-core gmp cronie tzdata cryptsetup run-parts readline')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Pacman breaks Pacman

Postby BrianM » Tue Oct 02, 2012 8:55 am

Hi pepedog
OK, so you're suggesting that yesterday's new install wasn't? (I didn't do a restore [at least I didn't mean to], I did a fresh install)
And sorry to mention it but cannot run the code as you suggest as "pacman command not found"
BrianM
 
Posts: 51
Joined: Sat Sep 29, 2012 2:23 pm

Re: Pacman breaks Pacman

Postby pepedog » Tue Oct 02, 2012 9:40 am

Can you try this
$this->bbcode_second_pass_code('', '/usr/lib/ld-2.16.so /usr/bin/pacman usbutils inetutils man-pages xfsprogs libusb-compat openssh binutils glibc glib2 libssh2 libpipeline mdadm pam openssl dhcpcd wget sysvinit pacman acl db linux-headers syslog-ng linux-firmware libgssglue zlib keyutils pciutils libidn curl iputils linux ntfs-3g vi iana-etc mkinitcpio iproute2 filesystem fuse initscripts coreutils ca-certificates wpa_supplicant perl logrotate libcap shadow bash mkinitcpio-busybox man-db pacman-mirrorlist pinentry device-mapper libldap grep gzip e2fsprogs lvm2 util-linux ldns attr libnl xz kbd pcre sysfsutils psmisc libpcap kmod krb5 bzip2 dbus-core gmp cronie tzdata cryptsetup run-parts readline')
If that fails, as root
$this->bbcode_second_pass_code('', 'mkdir temp
wget http://us.mirror.archlinuxarm.org/arm/core/pacman-4.0.3-3-arm.pkg.tar.gz
tar xf pacman-4.0.3-3-arm.pkg.tar.gz
Now you can copy what you want')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Pacman breaks Pacman

Postby BrianM » Tue Oct 02, 2012 9:44 am

Thanks again, was thinking along same lines as 2nd option.
First option fails with
$this->bbcode_second_pass_code('', '/usr/bin/pacman: error while loading shared libraries: /usr/bin/pacman: cannot open shared object file: No such file or directory
')
Will try second option now
BrianM
 
Posts: 51
Joined: Sat Sep 29, 2012 2:23 pm

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 4 guests