You are not logged in.

#1 2014-11-15 01:00:47

ful
Member
Registered: 2014-11-15
Posts: 4

[SOLVED] Can't remove packages.

Hi there, I seem to no longer be able to remove packages with pacman.
I get the error:  failed to initialise alpm library (could not find or read directory)

A debug output gives me this:

debug: pacman v4.1.2 - libalpm v8.0.2
debug: parseconfig: options pass
debug: config: attempting to read file /etc/pacman.conf
debug: config: finish section '(null)'
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: xfercommand: /usr/bin/wget --passive-ftp -c -O %o %u
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 75: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'core'
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'extra'
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 90: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'community'
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 100: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'multilib'
debug: config: new section 'infinality-bundle'
debug: config: finish section 'infinality-bundle'
debug: config: new section 'infinality-bundle-multilib'
debug: config: finish section 'infinality-bundle-multilib'
debug: config: new section 'infinality-bundle-fonts'
debug: config: finish section 'infinality-bundle-fonts'
debug: config: new section 'heftig'
debug: config: finish section 'heftig'
debug: config: new section 'repo-ck'
debug: config: finish section 'repo-ck'
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
error: failed to initialise alpm library (could not find or read directory)

Last edited by ful (2014-11-17 04:23:32)

Offline

#2 2014-11-15 01:05:48

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

Re: [SOLVED] Can't remove packages.

Can you post the output of the following:

ldd /usr/bin/pacman

ls -l /usr/lib/libalpm*

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

Offline

#3 2014-11-15 01:11:16

ful
Member
Registered: 2014-11-15
Posts: 4

Re: [SOLVED] Can't remove packages.

ldd /usr/bin/pacman

linux-vdso.so.1 (0x00007fff069ba000)
	libalpm.so.8 => /usr/lib/libalpm.so.8 (0x00007f63a2190000)
	libarchive.so.13 => /usr/lib/libarchive.so.13 (0x00007f63a1ee8000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f63a1b40000)
	libgpgme.so.11 => /usr/lib/libgpgme.so.11 (0x00007f63a1900000)
	libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007f63a1690000)
	libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f63a1278000)
	libacl.so.1 => /usr/lib/libacl.so.1 (0x00007f63a1068000)
	libattr.so.1 => /usr/lib/libattr.so.1 (0x00007f63a0e60000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f63a0c30000)
	liblzo2.so.2 => /usr/lib/liblzo2.so.2 (0x00007f63a0a08000)
	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f63a07e0000)
	libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f63a05d0000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007f63a03b8000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f63a23c0000)
	libassuan.so.0 => /usr/lib/libassuan.so.0 (0x00007f63a01a0000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f639ff88000)
	libidn.so.11 => /usr/lib/libidn.so.11 (0x00007f639fd50000)
	libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007f639fb20000)
	libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007f639f8b0000)
	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f639f660000)
	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f639f378000)
	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f639f140000)
	libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007f639ef38000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f639ed18000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f639eb10000)
	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f639e900000)
	libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007f639e6f8000)
	libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f639e4e0000)

ls -l /usr/lib/libalpm*

lrwxrwxrwx 1 root root     16 May  4  2014 /usr/lib/libalpm.so -> libalpm.so.8.0.2
lrwxrwxrwx 1 root root     16 May  4  2014 /usr/lib/libalpm.so.8 -> libalpm.so.8.0.2
-rwxr-xr-x 1 root root 197360 May  4  2014 /usr/lib/libalpm.so.8.0.2

Offline

#4 2014-11-15 01:29:20

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

Re: [SOLVED] Can't remove packages.

Oops, my suspicion went in the wrong direction - that all looks fine.

But a quick google search did return a solved thread for this exact same error:
https://bbs.archlinux.org/viewtopic.php?id=134070


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

Offline

#5 2014-11-15 01:39:30

ful
Member
Registered: 2014-11-15
Posts: 4

Re: [SOLVED] Can't remove packages.

I found that thread earlier but I'm afraid none of the solutions there seem to be relevant to me.

Offline

#6 2014-11-15 04:27:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Can't remove packages.

What's in /var/lib/pacman/local and /var/lib/pacman/sync?

Offline

#7 2014-11-17 03:36:59

ful
Member
Registered: 2014-11-15
Posts: 4

Re: [SOLVED] Can't remove packages.

And today it seems to be working again, I have no idea why. Thanks for the help anyway, I appreciate it.

Last edited by ful (2014-11-17 04:23:08)

Offline

Board footer

Powered by FluxBB