首页   注册   登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Coding
V2EX  ›  问与答

archlinux 小白求助

  •  
  •   jisibencom · 2018-09-07 12:48:38 +08:00 · 1033 次点击
    这是一个创建于 462 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一个 ARMV5 的开发板,安装上了 ARCH ARM,但安装软件时提示:
    :: File /var/cache/pacman/pkg/screen-4.6.2-1-arm.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.

    搜了一下,改什么 SigLevel,不行。运行 pacman-key --init,自然是卡在了 gpg: Generating pacman keyring master key...,什么按键盘,ls -R /之类的都试过了,不行。

    这个问题起码都存在了 10 来年了。。。究竟是啥问题呢
    7 回复  |  直到 2018-09-10 10:00:40 +08:00
        1
    pcmid   2018-09-08 19:10:47 +08:00 via Android
    pacman-key --populate archlinux
        2
    pcmid   2018-09-08 19:12:05 +08:00 via Android
    @pcmid 当然要先装 archlinux-keyring
        3
    jisibencom   2018-09-08 20:42:40 +08:00 via Android
    @pcmid pacman -S archlinux-keyring ?运行 pacman 就报上面的错
        4
    pcmid   2018-09-08 23:16:39 +08:00
    @jisibencom /usr/share/pacman/keyrings 下面有没有公钥文件
        5
    jisibencom   2018-09-10 09:49:30 +08:00
    @pcmid
    Last login: Fri Sep 7 16:20:46 2018 from 192.168.190.172
    [[email protected] ~]# pacman -S archlinux-keyring
    resolving dependencies...
    looking for conflicting packages...

    Packages (1) archlinux-keyring-20180808-1

    Total Download Size: 0.59 MiB
    Total Installed Size: 0.84 MiB

    :: Proceed with installation? [Y/n] y
    :: Retrieving packages...
    archlinux-keyring-20180808-1-any 600.4 KiB 364K/s 00:02 [################################] 100%
    (1/1) checking keys in keyring [################################] 100%
    downloading required keys...
    :: Import PGP key 4096R/68B3537F39A313B3E574D06777193F152BDBE6A6, "Arch Linux ARM Build System <[email protected]>", created: 2014-01-19? [Y/n] y
    (1/1) checking package integrity [################################] 100%
    error: archlinux-keyring: signature from "Arch Linux ARM Build System <[email protected]>" is unknown trust
    :: File /var/cache/pacman/pkg/archlinux-keyring-20180808-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
    Do you want to delete it? [Y/n] y
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.
    [[email protected] ~]# cd /usr/share/pacman/
    [[email protected] pacman]# ls
    PKGBUILD-split.proto PKGBUILD-vcs.proto PKGBUILD.proto keyrings proto.install
    [[email protected] pacman]# cat keyrings/
    cat: keyrings/: Is a directory
    [[email protected] pacman]#
        6
    jisibencom   2018-09-10 09:55:35 +08:00
    先删除 /etc/pacmand.d/gnupg 这个文件夹
    再 pacman-key --init,
    最后 pacman-key --refresh-keys

    这个也尝试了。一样的不行。
        7
    jisibencom   2018-09-10 10:00:40 +08:00
    Guruplug Display | Arch Linux ARM
    https://archlinuxarm.org/platforms/armv5/guruplug-display

    这个是设备的型号和安装的系统。
    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   4181 人在线   最高记录 5043   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.3 · 26ms · UTC 08:34 · PVG 16:34 · LAX 00:34 · JFK 03:34
    ♥ Do have faith in what you're doing.