LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1059|回复: 12

关于pacman的问题。

[复制链接]
发表于 2005-3-15 11:13:07 | 显示全部楼层 |阅读模式
在pacman.conf里面加入了[testing]
运行就出错,什么原因了?
谢谢。
could not open sync database: testing
       have you used --refresh yet?
发表于 2005-3-15 13:14:25 | 显示全部楼层
你是如何加入的,列出来看看
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:09:00 | 显示全部楼层
#
# /etc/pacman.conf
#
# NOTE: If you find a mirror that is geographically close to you, please
#       move it to the top of the server list, so pacman will choose it
#       first.
#
# To re-sort your mirror lists by ping/traceroute results, use the
# /usr/bin/sortmirrors.pl script.  It requires the "netselect" package.
#
#     # sortmirrors.pl </etc/pacman.conf >pacman.conf.new
#

# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
LogFile     = /var/log/pacman.log
NoUpgrade   = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade   = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade   = etc/rc.conf etc/rc.local
NoUpgrade   = etc/modprobe.conf etc/modules.conf
NoUpgrade   = etc/lilo.conf boot/grub/menu.lst
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

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

#[testing]
#Server = ftp://ftp.archlinux.org/testing/os/i686
#Include = /etc/pacman.d/testing

[current]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/current

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/extra

[unstable]
Include = /etc/pacman.d/unstable

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

[root@localhost ~]# pacman -S kde
error: could not open sync database: unstable
       have you used --refresh yet?

??????????????????????????
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:10:52 | 显示全部楼层
[root@localhost ~]# ls /etc/pacman.d
current   extra   release   testing   unstable
current~  extra~  release~  testing~  unstable~
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:27:11 | 显示全部楼层
你可以简单的在pacman.conf里设好使用的Server,我就没有include 那些pacman.d/下面的东西。
类似这样:
[testing]
Server = ftp://ftp.archlinux.org/testing/os/i686

Server后面换成碧轩的那个mirror就可以了。
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:31:16 | 显示全部楼层
# GENERAL OPTIONS
#
[options]
LogFile     = /var/log/pacman.log
NoUpgrade   = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade   = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade   = etc/rc.conf etc/rc.local
NoUpgrade   = etc/modprobe.conf etc/modules.conf
NoUpgrade   = etc/lilo.conf boot/grub/menu.lst
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

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

[testing]
Server = ftp://ftp.archlinux.org/testing/os/i686
#Include = /etc/pacman.d/testing

#[current]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/current

#[extra]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/extra

#[unstable]
#Include = /etc/pacman.d/unstable

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

#[alcle]
#Server=http://download.ourlinux.net/archlinux/alcle


[root@localhost ~]# pacman -S kde
error: could not open sync database: testing
       have you used --refresh yet?

[root@localhost ~]# pacman --refresh
[root@localhost ~]# pacman --refresh
[root@localhost ~]# pacman -S kde
error: could not open sync database: testing
       have you used --refresh yet?

[root@localhost ~]# pacman --refresh
[root@localhost ~]# pacman --refresh
[root@localhost ~]# pacman -S kde
error: could not open sync database: testing
       have you used --refresh yet?

[root@localhost ~]#
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:35:35 | 显示全部楼层
testing下面的server后面换成:
http://download.ourlinux.net/archlinux/testing/testing/os/i686
然后再pacman -Sy一下试试。
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:44:07 | 显示全部楼层
thank you !
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:48:47 | 显示全部楼层
[root@localhost ~]# pacman -Sy kde
:: Synchronizing package databases...
testing                  [################] 100%      30K    17.7K/s  00:00:01
:: group kde:
    arts kde-common kdeaccessibility kdeaddons kdeadmin kdeartwork kdebase
    kdebindings kdeedu kdegames kdegraphics kdelibs kdemultimedia kdenetwork
    kdepim kdesdk kdetoys kdeutils
    Install whole content? [Y/n] y
error: cannot resolve dependencies for "kdelibs":
       "mdnsresponder" is not in the package set

??????????????????
回复 支持 反对

使用道具 举报

发表于 2005-3-15 20:56:29 | 显示全部楼层
the other question : how to show Chinese? I have installed   'pacman  -S kde-i18n-zh_cn',why  it stil is  English ?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表