PGP wrong in archlinux

本文介绍了一种解决在Arch Linux上使用pacman命令安装Sublime Text时遇到PGP签名错误的方法。通过修改pacman配置文件中的签名验证级别并更新软件包数据库,最终成功安装了Sublime Text。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

what is the issue

I try to install sublime in archlinux by the follow command, the software will be downloaded from the archlinuxcn repository.

sudo pacman -S archlinuxcn/sublime-text

wrong appears as follow.

error: sublime-text: signature from "SY Zhang <lastavengers@outlook.com>" is unknown trust
:: File /var/cache/pacman/pkg/sublime-text-2.0.2-4-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

solve

step 1

I don’t know why it works, but it makes me install sublime-text successfully. I modified the file /etc/pacman.conf, changed

[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = http://mirrors.163.com/archlinux-cn/$arch

to

[archlinuxcn]
SigLevel = Never # Optional TrustedOnly
Server = http://mirrors.163.com/archlinux-cn/$arch

step 2

sudo pacman -Syy

step 3

go ahead to install sublime-text.

sudo pacman -S sublime-text
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值