您尚未登录。

#1 2012-07-11 15:44:01

archz
会员
注册时间: 2012-07-11
帖子: 3
个人网站

archlinux初装后无法安装软件问题的解决

问题呈现:
[root@shenzhi ~]# pacman -S sudo     注:安装任何软件包,均类似,不成功。
正在解决依赖关系...
正在查找内部冲突...

目标 (1): sudo-1.8.5.p2-1

全部下载大小:0.54 MiB
全部安装大小:2.45 MiB

进行安装吗? [Y/n] y
:: 正在从 core 软件库获取软件包...
sudo-1.8.5.p2-1-x86_64   556.4 KiB   365K/s 00:02 [######################] 100%
(1/1) 正在检查软件包完整性                         [######################] 100%
警告:Public keyring not found; have you run 'pacman-key --init'?
错误:sudo: key "F99FFE0FEAE999BD" is unknown
错误:key "F99FFE0FEAE999BD" could not be looked up remotely
错误:无法提交处理 (无效或已损坏的软件包 (PGP 签名))
发生错误,没有软件包被更新。

本人经过实际实验解决了这个问题。
主要是参考一个正确的配置文件:/etc/pacman.conf,对应修改你的系统是的对应文件,然后就OK了。

#
# /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

# 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
[archlinuxfr]
#Server =http://repo.archlinux.fr/x86_64
Server =http://repo.archlinux.fr/i686

最近编辑记录 archz (2012-07-12 10:22:22)


一个认真生活的人,一个有良知的人。

离线

#2 2012-07-11 16:02:18

reverland
root
注册时间: 2012-02-04
帖子: 356
个人网站

Re: archlinux初装后无法安装软件问题的解决

?初装后无法安装软件?果断netinstall啊
ps:你的网站链接写错了,少个c。


>>>>>>>>>jekyll博客>>>>>>>>>>
<<<<<<<<<更残念的vimwiki<<<<<<<<<
本人vim控,偏偏喜欢lisp

离线

#3 2012-07-11 18:24:35

枫叶饭团
免费会员
所在地: C.C.
注册时间: 2011-08-27
帖子: 190
个人网站

Re: archlinux初装后无法安装软件问题的解决

啊哈?

离线

#4 2012-07-11 22:00:41

archz
会员
注册时间: 2012-07-11
帖子: 3
个人网站

Re: archlinux初装后无法安装软件问题的解决

reverland 说:

?初装后无法安装软件?果断netinstall啊
ps:你的网站链接写错了,少个c。

谢谢指出。在安装的时候采用的就是netinstall方式,之前没有出现问题,最近一次重装的便是在线安装不了软件了,还好我的虚拟机中的系统尚可用,将配置复制过来后,问题就解决了。


一个认真生活的人,一个有良知的人。

离线

#5 2012-07-11 22:42:11

reverland
root
注册时间: 2012-02-04
帖子: 356
个人网站

Re: archlinux初装后无法安装软件问题的解决

archz 说:
reverland 说:

?初装后无法安装软件?果断netinstall啊
ps:你的网站链接写错了,少个c。

谢谢指出。在安装的时候采用的就是netinstall方式,之前没有出现问题,最近一次重装的便是在线安装不了软件了,还好我的虚拟机中的系统尚可用,将配置复制过来后,问题就解决了。

是不是因为siglevel那啥玩意,我觉得系统里应该有个pacman.conf.pacnew


>>>>>>>>>jekyll博客>>>>>>>>>>
<<<<<<<<<更残念的vimwiki<<<<<<<<<
本人vim控,偏偏喜欢lisp

离线

#6 2012-07-12 10:17:50

archz
会员
注册时间: 2012-07-11
帖子: 3
个人网站

Re: archlinux初装后无法安装软件问题的解决

reverland 说:
archz 说:
reverland 说:

?初装后无法安装软件?果断netinstall啊
ps:你的网站链接写错了,少个c。

谢谢指出。在安装的时候采用的就是netinstall方式,之前没有出现问题,最近一次重装的便是在线安装不了软件了,还好我的虚拟机中的系统尚可用,将配置复制过来后,问题就解决了。

是不是因为siglevel那啥玩意,我觉得系统里应该有个pacman.conf.pacnew

主意不错,不过可惜还没有。


一个认真生活的人,一个有良知的人。

离线

#7 2012-08-01 23:55:18

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: archlinux初装后无法安装软件问题的解决

那个...
其实是不是该这样?:

# pcaman-key --init
# pacman-key --populate archlinux

离线

#8 2012-08-14 22:10:52

daringwang
会员
注册时间: 2012-08-14
帖子: 3

Re: archlinux初装后无法安装软件问题的解决

nopriler正解
楼主的所谓正确配置是去掉了软件包签名验证

离线

页脚