You are not logged in.

#1 2012-01-27 12:57:29

nos09
Member
Registered: 2011-09-09
Posts: 107

pacman giving error after 'packman-key --init'

Well after a long time i m back on arch. and i found out that pacman has changed and using pgp signature (happy now !). and everything is smooth except one thing pacman is still giving error and asks me to import pgp for every single package when i try to install something. here is an output :

 [root@Olympians hades]# pacman -S rhythmbox
resolving dependencies...
looking for inter-conflicts...

Targets (32): aspell-0.60.6.1-1  clutter-1.8.2-2  clutter-gst-1.4.6-1
              clutter-gtk-1.0.4-1  cogl-1.8.2-1  enchant-1.6.0-4  gmime-2.6.4-1
              gobject-introspection-1.30.0-1  grilo-0.1.18-1  gvfs-1.10.1-2
              gvfs-afc-1.10.1-2  hspell-1.1-1  hunspell-1.3.2-1  icu-4.8.1.1-1
              json-glib-0.14.2-1  libdiscid-0.2.2-1  libdmapsharing-2.9.12-1
              libgpod-0.8.2-2  libmtp-1.1.1-1  libmusicbrainz3-3.0.3-1
              libpeas-1.2.0-1  libwebkit3-1.6.1-1  media-player-info-15-1
              mutagen-1.20-3  mx-1.4.1-1  pygobject-devel-3.0.3-1
              python2-beaker-1.6.2-1  python2-gobject-3.0.3-1
              python2-mako-0.5.0-2  python2-markupsafe-0.15-1
              totem-plparser-2.32.6-3  rhythmbox-2.95-1

Total Installed Size:   129.07 MiB

Proceed with installation? [Y/n] y
(32/32) checking package integrity                 [----------------------] 100%
error: grilo: key "A5E9288C4FA415FA" is unknown
:: Import PGP key 4FA415FA, "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>", created 2011-08-25? [Y/n] y
error: icu: key "94657AB20F2A092B" is unknown
:: Import PGP key 0F2A092B, "Andreas Radke <andyrtr@archlinux.org>", created 2011-05-14? [Y/n] y
error: enchant: key "976AC6FA3B94FA10" is unknown
:: Import PGP key 3B94FA10, "Jan de Groot <jgc@archlinux.org>", created 2011-06-06? [Y/n] y
(32/32) checking package integrity                 [----------------------] 100%
(32/32) loading package files                      [----------------------] 100%
(32/32) checking for file conflicts                [----------------------] 100%
(32/32) checking available disk space              [----------------------] 100%
( 1/32) installing json-glib                       [----------------------] 100%
( 2/32) installing cogl                            [----------------------] 100%
( 3/32) installing clutter                         [----------------------] 100%
( 4/32) installing clutter-gtk                     [----------------------] 100%
( 5/32) installing clutter-gst                     [----------------------] 100%
( 6/32) installing grilo                           [----------------------] 100%
Optional dependencies for grilo
    grilo-plugins: Plugins for grilo
( 7/32) installing gvfs                            [----------------------] 100%
Optional dependencies for gvfs
    gvfs-afc: AFC (mobile devices) support
    gvfs-smb: SMB/CIFS (Windows client) support
    gvfs-gphoto2: gphoto2 (PTP camera/MTP media player) support
    gvfs-obexftp: ObexFTP (bluetooth) support
    gvfs-afp: Apple Filing Protocol (AFP) support
( 8/32) installing gvfs-afc                        [----------------------] 100%
( 9/32) installing libdmapsharing                  [----------------------] 100%
(10/32) installing mutagen                         [----------------------] 100%
(11/32) installing libgpod                         [----------------------] 100%
Optional dependencies for libgpod
    gtk-sharp-2: Mono bindings
(12/32) installing libmtp                          [----------------------] 100%
(13/32) installing libdiscid                       [----------------------] 100%
(14/32) installing libmusicbrainz3                 [----------------------] 100%
(15/32) installing gobject-introspection           [----------------------] 100%
(16/32) installing libpeas                         [----------------------] 100%
Optional dependencies for libpeas
    gjs: gobject-based plugin engine - gjs runtime loader
    seed: gbject-based plugin engine - seed runtime loader
(17/32) installing icu                             [----------------------] 100%
(18/32) installing aspell                          [----------------------] 100%
==> aspell comes with no default dictionary
Optional dependencies for aspell
    perl: to import old dictionaries
(19/32) installing hunspell                        [----------------------] 100%
Optional dependencies for hunspell
    perl: for ispellaff2myspell
(20/32) installing hspell                          [----------------------] 100%
(21/32) installing enchant                         [----------------------] 100%
(22/32) installing libwebkit3                      [----------------------] 100%
(23/32) installing media-player-info               [----------------------] 100%
(24/32) installing mx                              [----------------------] 100%
(25/32) installing pygobject-devel                 [----------------------] 100%
(26/32) installing python2-gobject                 [----------------------] 100%
(27/32) installing python2-markupsafe              [----------------------] 100%
(28/32) installing python2-beaker                  [----------------------] 100%
(29/32) installing python2-mako                    [----------------------] 100%
(30/32) installing gmime                           [----------------------] 100%
(31/32) installing totem-plparser                  [----------------------] 100%
(32/32) installing rhythmbox                       [----------------------] 100%
Optional dependencies for rhythmbox
    gstreamer0.10-ugly-plugins: Extra media codecs
    gstreamer0.10-bad-plugins: Extra media codecs
    gstreamer0.10-ffmpeg: Extra media codecs
    brasero: cd burning

and here is my pacman.conf file.

#
# /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
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
#XferCommand = /usr/bin/curl -C - %u > %o
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
TotalDownload
ILoveCandy
CheckSpace



# 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
# For now, off by default unless you read the above.
#SigLevel = Never
# 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]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

#[community-testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

#[multilib]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs


 

i searched it but i am not sure i understood it quite very well. anyway thanks for help. and its good to be back !!!

Offline

#2 2012-01-27 13:08:32

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: pacman giving error after 'packman-key --init'

You should only have to import each unique key once. After that, pacman will automatically check that any packages that claim to be signed by are authentic.

As you can see from the output you posted, you don't have to import a different key for "every single package", just one key for each packager.

It'll probably take a while to build up your keyring, but after that you won't have to import new keys so often.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-01-27 15:37:29

nos09
Member
Registered: 2011-09-09
Posts: 107

Re: pacman giving error after 'packman-key --init'

and can you tell me the command for importing the key as whole ? and 'error: icu: key "94657AB20F2A092B" is unknown ' does this mean that the key is not been imported ? and if not then how to fix this ?

Offline

#4 2012-01-27 15:43:59

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: pacman giving error after 'packman-key --init'

nos09 wrote:

can you tell me the command for importing the key as whole ?

Not sure what you mean by that. Check pacman-key's man page and the wiki page though, they'll probably tell you what you need to know.

That error shows up when you don't have the key. The prompt that follows is pacman asking you whether you want to import the key from the keyserver.

Last edited by WorMzy (2012-01-27 15:45:17)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2012-01-27 15:52:58

jryan
Member
From: Philadelphia USA
Registered: 2011-03-16
Posts: 29
Website

Re: pacman giving error after 'packman-key --init'

You haven't updated your pacman.conf via pacman.conf.pacnew.

https://wiki.archlinux.org/index.php/Pa … save_Files

Offline

#6 2012-01-27 16:32:27

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: pacman giving error after 'packman-key --init'

He merged pacman.conf, part of the way at least. The stuff he failed to merge are all commented out by default (according to my pacman.conf).

Edit: Is there really a problem? It looks to me that OP had not imported all the keys in the first place and pacman offers to import each key it doesn't know.

Last edited by fsckd (2012-01-27 16:35:04)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#7 2012-01-27 16:35:47

jryan
Member
From: Philadelphia USA
Registered: 2011-03-16
Posts: 29
Website

Re: pacman giving error after 'packman-key --init'

fsckd wrote:

He merged pacman.conf, part of the way at least. The stuff he failed to merge are all commented out by default (according to my pacman.conf).

Edit: Is there really a problem? It looks to me that OP had not imported all the keys in the first place and pacman offers to import each key it doesn't know.

# 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
# For now, off by default unless you read the above.
#SigLevel = Never

Default is

#SigLevel = Optional TrustAll
# For now, off by default unless you read the above.
SigLevel = Never

It seems he wants signed packages but it also doesn't seem like he merged the file completly.

Last edited by jryan (2012-01-27 16:41:34)

Offline

#8 2012-01-27 16:50:08

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: pacman giving error after 'packman-key --init'

SigLevel = Optional TrustAll

Is allowed. It's why OP is seeing errors with the keys. OP merged that big block regarding SigLevel but not the individual repo siglevels or the changes in Options. The stuff OP missed are commented by default. While I agree OP should fix pacman.conf I don't think it is currently a source of problems. I don't think the key errors are a problem.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2012-01-28 04:37:28

nos09
Member
Registered: 2011-09-09
Posts: 107

Re: pacman giving error after 'packman-key --init'

so can anyone of you post your pacman.conf file that is already merged ?? and when i press y when it prompts to import the key it doesn't really import it ! and i dont understand this - i m able to install single package but cant upgrade the system ! okay here is the output -

[hades@Olympians ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core                     106.4 KiB  23.1K/s 00:05 [----------------------] 100%
 extra                   1186.2 KiB  93.1K/s 00:13 [----------------------] 100%
 community               1048.9 KiB   114K/s 00:09 [----------------------] 100%
:: Starting full system upgrade...
:: Replace module-init-tools with core/kmod? [Y/n] y
resolving dependencies...
looking for inter-conflicts...

Targets (204): alsa-firmware-1.0.25-1  alsa-lib-1.0.25-1  alsa-oss-1.0.25-1
               alsa-utils-1.0.25-1  ati-dri-7.11.2-1  autoconf-2.68-2
               automake-1.11.2-1  avahi-0.6.30-6  bash-4.2.020-1
               binutils-2.22-4  bison-2.5-3  bzip2-1.0.6-3
               ca-certificates-20111211-1  cifs-utils-5.2-1  colord-0.1.16-1
               conky-1.8.2git20111107-1  consolekit-0.4.5-2  coreutils-8.15-1
               cracklib-2.8.18-2  cryptsetup-1.4.1-1  curl-7.24.0-1
               db-5.3.15-1  deadbeef-0.5.1-4  desktop-file-utils-0.19-1
               dhcpcd-5.2.12-4  dialog-1.1_20111020-1  dnsutils-9.8.1-2
               dosfstools-3.0.12-1  e2fsprogs-1.42-1  enca-1.13-2
               eventlog-0.2.12-3  expat-2.0.1-7  fakeroot-1.18.2-1  file-5.10-1
               filesystem-2011.12-2  findutils-4.4.2-4
               flashplugin-11.1.102.55-1  flex-2.5.35-5  freeglut-2.8.0-1
               gawk-4.0.0-2  gcc-4.6.2-6  gcc-libs-4.6.2-6  gdbm-1.10-1
               gdk-pixbuf2-2.24.1-1  gettext-0.18.1.1-4
               glib-networking-2.30.2-1  glib2-2.30.2-1  glibc-2.15-4
               glibmm-2.30.1-1  gmtk-1.0.5-2  gnome-icon-theme-symbolic-3.2.2-1
               gnome-keyring-3.2.2-3  gnome-mplayer-1.0.5-1  gnutls-3.0.12-1
               gpm-1.20.6-7  grep-2.10-1  groff-1.21-2  grub-0.97-21
               gstreamer0.10-bad-0.10.22-3  gstreamer0.10-bad-plugins-0.10.22-3
               gstreamer0.10-ffmpeg-0.10.13-1  gstreamer0.10-ugly-0.10.18-4
               gstreamer0.10-ugly-plugins-0.10.18-4
               gtk-update-icon-cache-2.24.9-1  gtk2-2.24.9-1  gtk3-3.2.3-2
               gucharmap-3.2.2-1  gzip-1.4-4  heirloom-mailx-12.5-3
               idnkit-1.0-2  inetutils-1.9.1-1  initscripts-2012.01.3-1
               intel-dri-7.11.2-1  intltool-0.50.0-1  iproute2-3.2.0-2
               iputils-20101006-2  jack-0.121.3-5  jfsutils-1.1.15-3
               jshon-20111222-1  keyutils-1.5.5-1  kmod-4-1  krb5-1.9.2-2
               lame-3.99.3-1  lcms2-2.3-1  less-444-2  libass-0.10.0-3
               libbluray-0.2.1-1  libburn-1.1.8-1  libcap-2.22-2
               libcroco-0.6.3-1  libdatrie-0.2.5-1  libdrm-2.4.30-1
               libdvdnav-4.2.0-2  libdvdread-4.2.0-1  libevent-2.0.16-1
               libgl-7.11.2-1  libglapi-7.11.2-1  libgnome-keyring-3.2.2-1
               libgphoto2-2.4.11-1  libgusb-0.1.3-1  libiec61883-1.2.0-3
               libjpeg-turbo-1.1.1-4  libldap-2.4.28-2  libpcap-1.2.1-1
               libpipeline-1.2.0-2  libpulse-1.1-2  librsvg-2.34.2-1
               libsasl-2.1.23-9  libthai-0.1.16-1  libusb-1.0.8-2
               libusb-compat-0.1.3-2  libvdpau-0.4.1-2  libxfce4ui-4.8.1-1
               libxi-1.4.5-1  libxrandr-1.3.2-2  linux-3.2.2-1
               linux-firmware-20111101-1  lirc-utils-1:0.9.0-10
               lxappearance-0.5.1-3  m4-1.4.16-2  mach64-dri-7.11.2-1
               man-db-2.6.0.2-3  mdadm-3.2.3-1  mesa-7.11.2-1  mga-dri-7.11.2-1
               mjpegtools-2.0.0-1  mkinitcpio-0.8.2-1
               module-init-tools-3.16-1 [removal]  mpfr-3.1.0.p3-1
               mpg123-1.13.4-2  mplayer-34426-1  nano-2.2.6-2  ncurses-5.9-2
               network-manager-applet-0.9.2.0-1  networkmanager-0.9.2.0-1
               nss-3.13.1-2  obmenu-1.0-9  openbox-themes-1.0.2-2
               openssl-1.0.0.g-1  p11-kit-0.9-1  pam-1.1.5-2  parted-3.0-4
               patch-2.6.1-3  pciutils-3.1.8-1  pcre-8.21-1  perl-5.14.2-7
               pixman-0.24.2-1  pkg-config-0.26-2  pm-quirks-0.20100619-2
               polkit-0.103-1  poppler-0.18.3-1  poppler-glib-0.18.3-1
               popt-1.16-4  ppp-2.4.5-3  python-distutils-extra-2.29-1
               python-imaging-1.1.7-4  python2-2.7.2-4  r128-dri-7.11.2-1
               raptor-2.0.6-1  readline-6.2.002-1  reiserfsprogs-3.6.21-4
               run-parts-4.0.4-1  savage-dri-7.11.2-1  scrot-0.8-5
               sdl-1.2.15-1  sed-4.2.1-4  sg3_utils-1.33-1  shadow-4.1.4.3-5
               shared-color-profiles-0.1.5-1  sis-dri-7.11.2-1
               smbclient-3.6.2-1  sqlite3-3.7.10-1  startup-notification-0.12-2
               sysfsutils-2.1.0-7  syslinux-4.05-1  syslog-ng-3.3.4-1
               talloc-2.0.7-1  tar-1.26-2  tdfx-dri-7.11.2-1  texinfo-4.13a-7
               transmission-gtk-2.42-2  tzdata-2011n-1  udev-179-1
               unrar-4.1.4-1  upower-0.9.15-1  util-linux-2.20.1-2
               vi-1:050325-2  wavpack-4.60.1-2  which-2.20-5
               wireless_tools-29-6  wpa_supplicant-0.7.3-4  x264-20111030-1
               xcb-util-0.3.8-1  xf86-input-joystick-1.6.0-3
               xf86-video-ati-6.14.3-1  xf86-video-intel-2.17.0-2
               xf86-video-vmware-11.1.0-1  xfconf-4.8.1-1  xfsprogs-3.1.7-1
               xkeyboard-config-2.5-1  xorg-server-1.11.3-1
               xorg-server-common-1.11.3-1  xorg-xinit-1.3.1-2
               zathura-0.0.8.5-4

Total Download Size:    7.87 MiB
Total Installed Size:   898.19 MiB
Net Upgrade Size:       20.59 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 glibc-2.15-4-i686          7.1 MiB   118K/s 01:02 [----------------------]  90%
 e2fsprogs-1.42-1-i686      7.9 MiB   118K/s 01:08 [----------------------] 100%
(203/203) checking package integrity               [----------------------] 100%
(203/203) loading package files                    [----------------------] 100%
(203/203) checking for file conflicts              [----------------------] 100%
error: failed to commit transaction (conflicting files)
filesystem: /etc/mtab exists in filesystem
Errors occurred, no packages were upgraded.
[hades@Olympians ~]$ 
 

Offline

#10 2012-01-28 04:40:08

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,682

Re: pacman giving error after 'packman-key --init'

Offline

#11 2012-01-28 06:28:47

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: pacman giving error after 'packman-key --init'

Take a look at:
https://wiki.archlinux.org/index.php/Pacman-key    and
http://allanmcrae.com/2011/12/pacman-pa … rch-linux/

nothing like the arch wikis.

Last edited by debdj (2012-01-28 06:29:10)

Offline

#12 2012-01-28 07:25:28

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: pacman giving error after 'packman-key --init'

nos09 wrote:

so can anyone of you post your pacman.conf file that is already merged ??

Here's the default pacman.conf: x86 x86_64

But, like fsckd, I don't think that there's any problem with it. So far you haven't posted an error, caused by the pgp stuff, that's causing any problems or preventing you from updating. File conflicts are unrelated, and skunktrader's link will help you fix the one you're currently getting.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#13 2012-01-28 08:34:25

nos09
Member
Registered: 2011-09-09
Posts: 107

Re: pacman giving error after 'packman-key --init'

skunktrader !!!! your worked ! thank you. thank you everybody !

Offline

#14 2012-01-28 09:42:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: pacman giving error after 'packman-key --init'

FYI - the only real issue in this thread was the last one (mtab exists in filesystem), and you would have found the solution for that yourself if you had read Arch news before your system update, as recommended.

As already noted, the gpg-related messages you posted in your first thread were not errors - they were there to assist you with the process.

In general, it is important to read and understand all messages that your system gives you.

Offline

#15 2012-01-28 13:17:23

nos09
Member
Registered: 2011-09-09
Posts: 107

Re: pacman giving error after 'packman-key --init'

tomk: i clearly misunderstood the problem. but for what its worth i know the issue know and i learned a lesson today right ?! so when next time probably i would be able to get it done by myself. smile

Offline

Board footer

Powered by FluxBB