You are not logged in.

#1 2012-06-07 17:39:44

Megabyte
Member
Registered: 2012-06-02
Posts: 29

[SOLVED] Error updating Pacman

Hello, i'm having troubles with keyrings which is not allowing me to install or upgrade any packages.  i have followed the "force" method posted on http://www.archlinux.org/news/filesyste … equired-1/  but still get errors.  here is my readout.

sudo pacman -Syu --ignore filesystems && pacman -S filesystem --force
Password: 
warning: config file /etc/pacman.d/mirrorlist, line 2: directive 'Server' in section 'options' not recognized.
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community-testing is up to date
 community is up to date
 multilib-testing 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] y

resolving dependencies...
looking for inter-conflicts...

Targets (2): archlinux-keyring-20120529-1  pacman-4.0.3-2

Total Installed Size:   3.72 MiB
Net Upgrade Size:       0.18 MiB

Proceed with installation? [Y/n] y
(2/2) checking package integrity                                               [#############################################] 100%
error: archlinux-keyring: signature from "Pierre Schmitz <pierre@archlinux.de>" is unknown trust
error: pacman: signature from "Gaetan Bisson <gaetan.bisson@normalesup.org>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Last edited by Megabyte (2012-06-07 18:21:23)

Offline

#2 2012-06-07 17:43:02

MinimalBoot
Member
Registered: 2012-05-01
Posts: 38

Re: [SOLVED] Error updating Pacman

pacman-key --init && pacman-key --populate archlinux

.. try again.

Offline

#3 2012-06-07 17:45:38

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

i've done that and get the following.

sudo pacman-key --init && sudo pacman-key --populate archlinux
==> ERROR: The keyring file /usr/share/pacman/keyrings/archlinux.gpg does not exist.

Offline

#4 2012-06-07 17:48:34

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

this is what i get when i try to install archlinux-keyring

 sudo pacman -S archlinux-keyring
Password: 
warning: config file /etc/pacman.d/mirrorlist, line 2: directive 'Server' in section 'options' not recognized.
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies...
looking for inter-conflicts...

Targets (2): archlinux-keyring-20120529-1  pacman-4.0.3-2

Total Installed Size:   3.72 MiB
Net Upgrade Size:       0.18 MiB

Proceed with installation? [Y/n] y
(2/2) checking package integrity                                                                                                                [########################################################################################] 100%
error: archlinux-keyring: signature from "Pierre Schmitz <pierre@archlinux.de>" is unknown trust
error: pacman: signature from "Gaetan Bisson <gaetan.bisson@normalesup.org>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Offline

#5 2012-06-07 17:51:56

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: [SOLVED] Error updating Pacman

'warning: config file /etc/pacman.d/mirrorlist, line 2: directive 'Server' in section 'options' not recognized'

I'd at least update/fix your mirrorlist.

/offtopic

Edit: Seems like I was incorrect and its an error in /etc/pacman.conf itself

https://bbs.archlinux.org/viewtopic.php?pid=1094571

Anyone care to clarify?

Last edited by doug piston (2012-06-07 18:00:09)

Offline

#6 2012-06-07 17:56:07

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

sorry, i am unsure what you mean by update/fix mirrorlist.  i've gone into pacman.d/mirrorlist and all are commented.  which should be uncommented?

Last edited by Megabyte (2012-06-07 17:56:26)

Offline

#7 2012-06-07 18:00:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Error updating Pacman

The error is telling you exactly where you need to look...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2012-06-07 18:04:07

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Error updating Pacman

Megabyte wrote:

sorry, i am unsure what you mean by update/fix mirrorlist.  i've gone into pacman.d/mirrorlist and all are commented.  which should be uncommented?

At least 1 mirror.

But the problem is also that you have some spurious config under the options section which you need to rectify.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#9 2012-06-07 18:05:19

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: [SOLVED] Error updating Pacman

Check and make sure your /etc/pacman.conf is set up correctly (especially the repo names in []).

Offline

#10 2012-06-07 18:05:39

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

sorry, i failed to look at that.  fixed that (commented it) and still having issues with installing archlinux-keyring.

Offline

#11 2012-06-07 18:08:10

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

Pres,

I have looked at my /etc/pacman.conf and it appears to be setup properly according to what i have been reading elsewhere.  here it is for viewing sake.

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

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

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

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

[community]
SigLevel = PackageOptional
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]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = PackageOptional
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

Offline

#12 2012-06-07 18:09:56

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: [SOLVED] Error updating Pacman

You have the testing repo header commented. That's where the warning is coming from:

Offline

#13 2012-06-07 18:14:21

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

yeah, that is gone now but i am still unable to install the keyrings due to the following errors:

Proceed with installation? [Y/n] y
(2/2) checking package integrity                                                                                                                [########################################################################################] 100%
error: archlinux-keyring: signature from "Pierre Schmitz <pierre@archlinux.de>" is unknown trust
error: pacman: signature from "Gaetan Bisson <gaetan.bisson@normalesup.org>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

sort of lost on this one (as you can no doubt see)

Offline

#14 2012-06-07 18:17:44

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

should sigleve= Optional Trust All in pacman.conf be uncommented?

Offline

#15 2012-06-07 18:18:20

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: [SOLVED] Error updating Pacman

Just comment out the "SigLevel = PackageRequired" line for core, install archlinux-keyring and then uncomment it.

I'm not sure why you have those lines uncommented if you haven't set up package signing in the first place though...

Offline

#16 2012-06-07 18:19:08

Psykorgasm
Member
Registered: 2011-11-24
Posts: 178

Re: [SOLVED] Error updating Pacman

Try this:

[options]
HoldPkg     = pacman glibc
SyncFirst   = pacman
Architecture = auto
CheckSpace
SigLevel = Never

[testing]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[core]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

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

[community]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

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

[multilib]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

Then update your system, then you should get a pacman.conf.pacnew (which you should fill out/edit accordingly) - backup pacman.conf and replace the current pacman.conf with the pacnew you edited to fit your needs.

[Edit]
Or, as Pres just pointed out, disable the check for core repo.
[/Edit]

Last edited by Psykorgasm (2012-06-07 18:21:02)

Offline

#17 2012-06-07 18:21:05

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Error updating Pacman

thanks, that worked!

Offline

#18 2012-06-07 21:17:46

Nichollan
Member
From: Stavanger, Norway
Registered: 2010-05-18
Posts: 110

Re: [SOLVED] Error updating Pacman

I’m just leaving here a note with the solution to my problem after the recent update: Non-working keyboard and touchpad in X.

It was fixed after I removed /var/run and /var/lock from being tmpfs mounted in /etc/fstab.

Last edited by Nichollan (2012-06-07 21:18:04)

Offline

#19 2012-06-07 21:30:18

root
Member
From: 127.0.0.1
Registered: 2012-04-13
Posts: 297

Re: [SOLVED] Error updating Pacman

@Nichollan

Why in an, at least as far as I understand it, not related thread?


\(o_X)/
                        'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols

Offline

#20 2012-06-08 04:47:48

Nichollan
Member
From: Stavanger, Norway
Registered: 2010-05-18
Posts: 110

Re: [SOLVED] Error updating Pacman

Mistake. I mistook it for another thread.

Offline

Board footer

Powered by FluxBB