Skip to content

Odd problem with archlinux-keyring

So this is odd... For some reason my system says I have archlinux-keyring but not when im trying to update it?

# :~$ pacman -U archlinux-keyring
loading packages...
error: 'archlinux-keyring': could not find or read package

# :~$ pacman -Ss archlinux-keyring
core/archlinux-keyring 20180404-1 [installed] Arch Linux PGP keyring
0 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
8dpevu

Author

7
posts
113
comments
0
media
View profile

5 comments

As far as I know, -U is used for installing a local package. To update that package, you simply have to use the install command. "pacman -S archlinux-keyring". Somebody correct me if I'm wrong.

4 points

Ahh I think your right because the help on pacman shows the below

pacman --help
usage:  pacman <operation> [...]
operations:
    pacman {-h --help}
    pacman {-V --version}
    pacman {-D --database} <options> <package(s)>
    pacman {-F --files}    [options] [package(s)]
    pacman {-Q --query}    [options] [package(s)]
    pacman {-R --remove}   [options] <package(s)>
    pacman {-S --sync}     [options] [package(s)]
    pacman {-T --deptest}  [options] [package(s)]
    pacman {-U --upgrade}  [options] <file(s)>

use 'pacman {-h --help}' with an operation for available options
1 points

If you read the man page for pacman, under the Upgrade section it says: "Either a URL or file path can be specified." So, pacman -U archlinux-keyring... Is archlinux-keyring a URL or file path? No, it's a package name. That's how you know -U isn't the appropriate option.

You have a remote package in the arch Linux repositories that you want to sync with your computer. So you want to use -S.

1 points

This whole situation came up as my system for some reason never installed the keyring software. I did do the initial install on this laptop from an older iso image tho so maybe thats it?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.