ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Greetings, I've read a lot of things about this segfault, but none of them seems to help my case. I tried to update everything, but I get this circle of hell(i'm ignoring glibc,curl because they give another error):
Code:
[root@tinchev ~]# pacman -Syu --ignore glibc,curl
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
warning: curl: ignoring package upgrade (7.26.0-1 => 7.27.0-1)
warning: glibc: ignoring package upgrade (2.15-11 => 2.16.0-4)
:: Replace systemd-tools with core/systemd? [Y/n] y
resolving dependencies...
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "binutils"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "binutils"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "binutils"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
warning: ignoring package glibc-2.16.0-4
warning: cannot resolve "glibc>=2.16", a dependency of "gcc-libs"
:: The following packages cannot be upgraded due to unresolvable dependencies:
apcupsd binutils cryptsetup dbus-core dbus-glib device-mapper gcc
gcc-libs glib2 gnutls grep initscripts libatasmart libimobiledevice
libtool linux lvm2 mkinitcpio pcre pkg-config syslog-ng systemd
udisks upower wpa_supplicant
Do you want to skip the above packages for this upgrade? [y/N] y
looking for inter-conflicts...
Targets (67): automake-1.12.3-1 bftpd-3.8-2 bison-2.6.2-1
ca-certificates-20120623-1 cloog-0.17.0-2 cracklib-2.8.19-1
cronie-1.4.8-3 dhcp-4.2.4.1-2 dhcpcd-5.6.0-1
dialog-1.1_20120706-1 dnsutils-9.9.1.P2-1 e2fsprogs-1.42.5-1
filesystem-2012.8-1 flex-2.5.37-1 gpm-1.20.6-10 gzip-1.5-1
hwids-20120815-1 iana-etc-2.30-3 inetutils-1.9.1-3
iproute2-3.5.1-1 iptables-1.4.15-1 iputils-20101006-4
isl-0.10-1 kbd-1.15.3-3 keyutils-1.5.5-3 kmod-9-2
krb5-1.10.3-1 libedit-20120601_3.0-1 libgssglue-0.4-1
libldap-2.4.32-1 libltdl-2.4.2-6 libmpc-1.0-1 libnl-3.2.11-1
libpcap-1.3.0-1 libusbx-1.0.12-2 libxml2-2.8.0-1
linux-firmware-20120625-1 logrotate-3.8.2-1 man-db-2.6.2-1
man-pages-3.42-1 mpfr-3.1.1.p2-1 mpg123-1.14.4-1
net-tools-1.60.20120804git-2 nettle-2.5-1 openssh-6.1p1-1
p11-kit-0.13-1 pacman-mirrorlist-20120626-1 pciutils-3.1.10-1
perl-5.16.1-1 perl-perl4-corelibs-0.003-1 ppl-1.0-1
procps-ng-3.3.3-3 psmisc-22.19-1 run-parts-4.3.2-1
shadow-4.1.5.1-1 sysvinit-2.88-7 sysvinit-tools-2.88-7
tzdata-2012e-1 usbmuxd-1.0.8-1 usbutils-006-1
util-linux-2.21.2-5 vim-7.3.600-1 vim-runtime-7.3.600-1
webmin-1.590-2 wget-1.14-1 wireless_tools-29-7 xz-5.0.4-1
Total Installed Size: 342.82 MiB
Net Upgrade Size: 29.36 MiB
Proceed with installation? [Y/n] y
(67/67) checking package integrity [######################] 100%
(67/67) loading package files [######################] 100%
(13/67) checking for file conflicts [####------------------] 19%
error: segmentation fault
Please submit a full bug report with --debug if appropriate.
pacman --debug shows:
Code:
[root@tinchev ~]# pacman --debug
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: SyncFirst: pacman
debug: config: arch: i686
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: 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 80: 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 88: 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: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: parseconfig: repo pass
debug: config: attempting to read file /etc/pacman.conf
debug: config: finish section '(null)'
debug: config: new section 'options'
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: 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: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: adding new server URL to database 'core': ftp://mirrors.kernel.org/archlinux/core/os/i686
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 80: 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: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: adding new server URL to database 'extra': ftp://mirrors.kernel.org/archlinux/extra/os/i686
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 88: 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: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: adding new server URL to database 'community': ftp://mirrors.kernel.org/archlinux/community/os/i686
debug: config: finished parsing /etc/pacman.conf
error: no operation specified (use -h for help)
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'
my pacman.conf file is this:
Code:
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst = pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
#UseDelta
#TotalDownload
CheckSpace
#VerbosePkgLists
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
#SigLevel = Optional TrustedOnly
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist
[core]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist
[extra]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist
[community]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
From here on if I try to run anything via pacman I get this:
Code:
[root@tinchev ~]# pacman -Syu --ignore glibc,curl
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to synchronize any databases
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
This is where i remove the db.lck and the things start over again. I will appreciate any help, thank you in advance!
P.S.
If I try update glibc, as I have not done it this year:
Code:
[root@tinchev ~]# pacman -U http://pkgbuild.com/~allan/glibc-2.16.0-1-i686.pkg.tar.xz
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
[root@tinchev ~]# rm -rf /var/lib/pacman/db.lck
[root@tinchev ~]# pacman -U http://pkgbuild.com/~allan/glibc-2.16.0-1-i686.pkg.tar.xz
loading packages...
resolving dependencies...
looking for inter-conflicts...
Targets (1): glibc-2.16.0-1
Total Installed Size: 33.95 MiB
Net Upgrade Size: 0.83 MiB
Proceed with installation? [Y/n] y
(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 glibc [######################] 100%
Generating locales...
Generation complete.
[root@tinchev ~]# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
:: Replace systemd-tools with core/systemd? [Y/n] y
resolving dependencies...
warning: dependency cycle detected:
warning: dbus-core will be installed before its systemd dependency
looking for inter-conflicts...
Targets (95): apcupsd-3.14.10-3 automake-1.12.3-1 bftpd-3.8-2
binutils-2.22-10 bison-2.6.2-1 ca-certificates-20120623-1
cloog-0.17.0-2 cracklib-2.8.19-1 cronie-1.4.8-3
cryptsetup-1.5.0-2 curl-7.27.0-1 dbus-core-1.6.4-1
dbus-glib-0.100-1 device-mapper-2.02.97-1 dhcp-4.2.4.1-2
dhcpcd-5.6.0-1 dialog-1.1_20120706-1 dnsutils-9.9.1.P2-1
e2fsprogs-1.42.5-1 filesystem-2012.8-1 flex-2.5.37-1
gcc-4.7.1-6 gcc-libs-4.7.1-6 glib2-2.32.4-1 glibc-2.16.0-4
gnutls-3.1.0-1 gpm-1.20.6-10 grep-2.14-1 gzip-1.5-1
hwids-20120815-1 iana-etc-2.30-3 inetutils-1.9.1-3
initscripts-2012.08.3-2 iproute2-3.5.1-1 iptables-1.4.15-1
iputils-20101006-4 isl-0.10-1 kbd-1.15.3-3 keyutils-1.5.5-3
kmod-9-2 krb5-1.10.3-1 libatasmart-0.19-1
libedit-20120601_3.0-1 libgssglue-0.4-1
libimobiledevice-1.1.4-2 libldap-2.4.32-1 libltdl-2.4.2-6
libmpc-1.0-1 libnl-3.2.11-1 libpcap-1.3.0-1 libtool-2.4.2-6
libusbx-1.0.12-2 libxml2-2.8.0-1 linux-3.5.3-1
linux-firmware-20120625-1 logrotate-3.8.2-1 lvm2-2.02.97-1
man-db-2.6.2-1 man-pages-3.42-1 mkinitcpio-0.10-1
mpfr-3.1.1.p2-1 mpg123-1.14.4-1 net-tools-1.60.20120804git-2
nettle-2.5-1 openssh-6.1p1-1 p11-kit-0.13-1
pacman-mirrorlist-20120626-1 pciutils-3.1.10-1 pcre-8.31-1
perl-5.16.1-1 perl-perl4-corelibs-0.003-1 pkg-config-0.27.1-1
ppl-1.0-1 procps-ng-3.3.3-3 psmisc-22.19-1 run-parts-4.3.2-1
shadow-4.1.5.1-1 syslog-ng-3.3.5-2 systemd-189-4
systemd-tools-185-1 [removal] sysvinit-2.88-7
sysvinit-tools-2.88-7 tzdata-2012e-1 udisks-1.0.4-5
upower-0.9.17-2 usbmuxd-1.0.8-1 usbutils-006-1
util-linux-2.21.2-5 vim-7.3.600-1 vim-runtime-7.3.600-1
webmin-1.590-2 wget-1.14-1 wireless_tools-29-7
wpa_supplicant-1.0-1 xz-5.0.4-1
Total Installed Size: 569.40 MiB
Net Upgrade Size: 35.88 MiB
Proceed with installation? [Y/n] y
(94/94) checking package integrity [######################] 100%
(94/94) loading package files [######################] 100%
(15/94) checking for file conflicts [###-------------------] 15%
error: segmentation fault
Please submit a full bug report with --debug if appropriate.
And here is the debug:
Code:
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: SyncFirst: pacman
debug: config: arch: i686
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: 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 80: 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 88: 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: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: parseconfig: repo pass
debug: config: attempting to read file /etc/pacman.conf
debug: config: finish section '(null)'
debug: config: new section 'options'
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: 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: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: adding new server URL to database 'core': ftp://mirrors.kernel.org/archlinux/core/os/i686
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 80: 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: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: adding new server URL to database 'extra': ftp://mirrors.kernel.org/archlinux/extra/os/i686
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 88: 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: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: adding new server URL to database 'community': ftp://mirrors.kernel.org/archlinux/community/os/i686
debug: config: finished parsing /etc/pacman.conf
debug: using cachedir: /var/cache/pacman/pkg/
debug: found cached pkg: /var/cache/pacman/pkg/glibc-2.16.0-1-i686.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/glibc-2.16.0-1-i686.pkg.tar.xz.sig
debug: returning error 10 from alpm_trans_init : unable to lock database
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'
Perhaps there are a lot of file conflicts. You probably shouldn't be ignoring glibc and curl (those are very very important!). Are you facing the glibc update hell? There was a note on the main page about that not too long ago... Here.
Hello Alex,
yes I tried that out, the same error popped out, so I tried to update everything via pacman -Syu --ignore glibc,curl (as they say in the link you gave me) and the errors are as I posted above. Any other thoughts?
The dir /var/lib/pacman/sync/ exists, however the file is called extra.db, not extra.db.sig. When I remove the db.lck all starts over again segfault, debug, removing db.lck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.