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

archlinux 小白求助

  •  
  •   jisibencom · 2018-09-07 12:48:38 +08:00 · 2620 次点击
    这是一个创建于 2302 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一个 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
    pcmid
        1
    pcmid  
       2018-09-08 19:10:47 +08:00 via Android
    pacman-key --populate archlinux
    pcmid
        2
    pcmid  
       2018-09-08 19:12:05 +08:00 via Android
    @pcmid 当然要先装 archlinux-keyring
    jisibencom
        3
    jisibencom  
    OP
       2018-09-08 20:42:40 +08:00 via Android
    @pcmid pacman -S archlinux-keyring ?运行 pacman 就报上面的错
    pcmid
        4
    pcmid  
       2018-09-08 23:16:39 +08:00
    @jisibencom /usr/share/pacman/keyrings 下面有没有公钥文件
    jisibencom
        5
    jisibencom  
    OP
       2018-09-10 09:49:30 +08:00
    @pcmid
    Last login: Fri Sep 7 16:20:46 2018 from 192.168.190.172
    [root@alarm ~]# 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.
    [root@alarm ~]# cd /usr/share/pacman/
    [root@alarm pacman]# ls
    PKGBUILD-split.proto PKGBUILD-vcs.proto PKGBUILD.proto keyrings proto.install
    [root@alarm pacman]# cat keyrings/
    cat: keyrings/: Is a directory
    [root@alarm pacman]#
    jisibencom
        6
    jisibencom  
    OP
       2018-09-10 09:55:35 +08:00
    先删除 /etc/pacmand.d/gnupg 这个文件夹
    再 pacman-key --init,
    最后 pacman-key --refresh-keys

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

    这个是设备的型号和安装的系统。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1247 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:54 · PVG 01:54 · LAX 09:54 · JFK 12:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.