You are not logged in.

#1 2012-01-24 08:41:25

fakedrake
Member
Registered: 2011-02-09
Posts: 18

[Solved] gcc-libs and/or signature problems with pacman

I have had this apparently common problem with pacman, but i think I failed to sovle it by the standard methods google directed me to.
Here is a summary of the information you guys might need to help me

[root@myhost fakedrake]# pacman -Qi gcc-libs
Name           : gcc-libs
Version        : 4.6.2-3
URL            : http://gcc.gnu.org
Licenses       : GPL  LGPL  FDL  custom
Groups         : base
Provides       : None
Depends On     : glibc>=2.14
Optional Deps  : None
Required By    : agg  aspell  blas  boost-libs  cdrdao  db  djvulibre  dvd+rw-tools  exempi  exiv2  gc  gcc  gettext  gmp  gnutls  gperf
                 groff  hunspell  icu  id3  ilmbase  js  ladspa  lib32-gcc-libs  libcdio  libebml  libftdi  libgl  libgme  libmodplug
                 libmp4v2  libofa  libproxy  libpst  libsidplay  libsigc++  libsynaptics  libvdpau  live-media  mesa  mjpegtools
                 nspluginwrapper  ntrack  opencore-amr  openjdk6  p7zip  pcre  poppler  ptlib  soundtouch  splix  taglib  unrar  v4l-utils
                 virtualbox-archlinux-additions
Conflicts With : None
Replaces       : None
Installed Size : 2928.00 KiB
Packager       : Allan McRae <allan@archlinux.org>
Architecture   : x86_64
Build Date     : Sun 04 Dec 2011 03:16:38 AM EET
Install Date   : Mon 12 Dec 2011 08:56:04 AM EET
Install Reason : Explicitly installed
Install Script : Yes
Description    : Runtime libraries shipped by GCC

[root@myhost fakedrake]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib 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: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.6.2-3
[root@myhost fakedrake]# pacman -S gcc
:: 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: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.6.2-3
[root@myhost fakedrake]# pacman -Qi gcc-libs
Name           : gcc-libs
Version        : 4.6.2-3
URL            : http://gcc.gnu.org
Licenses       : GPL  LGPL  FDL  custom
Groups         : base
Provides       : None
Depends On     : glibc>=2.14
Optional Deps  : None
Required By    : agg  aspell  blas  boost-libs  cdrdao  db  djvulibre  dvd+rw-tools  exempi  exiv2  gc  gcc  gettext  gmp  gnutls  gperf
                 groff  hunspell  icu  id3  ilmbase  js  ladspa  lib32-gcc-libs  libcdio  libebml  libftdi  libgl  libgme  libmodplug
                 libmp4v2  libofa  libproxy  libpst  libsidplay  libsigc++  libsynaptics  libvdpau  live-media  mesa  mjpegtools
                 nspluginwrapper  ntrack  opencore-amr  openjdk6  p7zip  pcre  poppler  ptlib  soundtouch  splix  taglib  unrar  v4l-utils
                 virtualbox-archlinux-additions
Conflicts With : None
Replaces       : None
Installed Size : 2928.00 KiB
Packager       : Allan McRae <allan@archlinux.org>
Architecture   : x86_64
Build Date     : Sun 04 Dec 2011 03:16:38 AM EET
Install Date   : Mon 12 Dec 2011 08:56:04 AM EET
Install Reason : Explicitly installed
Install Script : Yes
Description    : Runtime libraries shipped by GCC

[root@myhost fakedrake]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib 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: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.6.2-3
[root@myhost fakedrake]# pacman -S pacman
resolving dependencies...
looking for inter-conflicts...

Targets (4): glibc-2.15-3  libarchive-3.0.3-2  linux-api-headers-3.1.6-1  pacman-4.0.1-4

Total Installed Size:   46.92 MiB
Net Upgrade Size:       3.36 MiB

Proceed with installation? [Y/n] 
(4/4) checking package integrity                                                    [################################################] 100%
error: linux-api-headers: signature from "Allan McRae <me@allanmcrae.com>" is invalid
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
[root@myhost fakedrake]# pacman -Scc
Cache directory: /var/cache/pacman/pkg/
Do you want to remove ALL files from cache? [y/N] y
removing all files from cache...

Database directory: /var/lib/pacman/
Do you want to remove unused repositories? [Y/n] 
Do you want to remove /var/lib/pacman/sync/community-testing.db? [Y/n] 
Do you want to remove /var/lib/pacman/sync/testing.db? [Y/n] 
Database directory cleaned up
[root@myhost fakedrake]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib 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: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.6.2-3
[root@myhost fakedrake]# emacsclient /etc/pacman.conf
Waiting for Emacs...^C
[root@myhost fakedrake]# pacman -Qi pacman
Name           : pacman
Version        : 4.0.0-2
URL            : http://www.archlinux.org/pacman/
Licenses       : GPL
Groups         : base
Provides       : None
Depends On     : bash  glibc>=2.14  libarchive>=2.8.4  curl>=7.19.4  gpgme  pacman-mirrorlist
Optional Deps  : fakeroot: for makepkg usage as normal user
                 curl: for rankmirrors usage
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 3148.00 KiB
Packager       : Dan McGee <dan@archlinux.org>
Architecture   : x86_64
Build Date     : Thu 13 Oct 2011 09:05:36 PM EEST
Install Date   : Thu 20 Oct 2011 02:55:05 AM EEST
Install Reason : Explicitly installed
Install Script : Yes
Description    : A library-based package manager with dependency support

[root@myhost fakedrake]# 

here is pacman.conf

#
# /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

# PGP signature checking
# NOTE: None of this will work without running `pacman-key --init` first.
# The compiled in default is equivalent to the following line. This requires
# you to locally sign and trust packager keys using `pacman-key` for them to be
# considered valid.
#SigLevel = Optional TrustedOnly
# If you wish to check signatures but avoid local sign and trust issues, use
# the following line. This will treat any key imported into pacman's keyring as
# trusted.
SigLevel = Optional TrustAll

#
# 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]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
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

I hope i am not missing anything too obvious.

Last edited by fakedrake (2012-01-29 08:10:50)

Offline

#2 2012-01-24 12:46:27

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [Solved] gcc-libs and/or signature problems with pacman

https://www.archlinux.org/news/pacman-4-moves-to-core/

Did you follow the instructions of the last line in that news post?

Offline

#3 2012-01-24 13:47:55

fakedrake
Member
Registered: 2011-02-09
Posts: 18

Re: [Solved] gcc-libs and/or signature problems with pacman

Solved: not really sure what I did. I suspect it was

pacman -Scc
pacman -S pacman
pacman -Syu

@mcmillan: yeah i did what Allen suggested in his blog but it didnt seem to work... in the above excerpt from my term i had already followed his instructions by the letter.

Offline

#4 2012-01-27 14:14:04

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

Re: [Solved] gcc-libs and/or signature problems with pacman

Please remember to mark the thread as solved.

Offline

#5 2012-02-14 15:02:36

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [Solved] gcc-libs and/or signature problems with pacman

I just had the same problem (I refrained from updating since the libpng 1.5 update for fear of losing my beloved firefox3), and since this is the first thread that popped up in DuckDuckGo and I didn't find a clear answer in other threads, here's what I did to make it work:

sudo pacman -Syy
sudo pacman -S pacman
sudo pacman -Su

(The -Su isn't finished yet... But I have good hope wink)

Edit: The only error during the update was related to libpng:

( 22/244) upgrading gdk-pixbuf2                    [######################] 100%
g_module_open() failed for /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libpng14.so.14: cannot open shared object file: No such file or directory

As per this post I ran "sudo pacman -S gdk-pixbuf2" and it got reinstalled without any error message.

Last edited by stqn (2012-02-14 15:31:40)

Offline

Board footer

Powered by FluxBB