Manjaro Linux 乐于简单

pacman-mirrors运行出错,这是啥原因呀?

论坛 新手初步 pacman-mirrors运行出错,这是啥原因呀?

该主题包含 5 个回复,有 3 个参与者,并且由  sh 于 1 月 4 周 前 最后一次更新。

  • suxingyu 回复

    [suxingyu@suxingyu-pc ~]$ sudo pacman-mirrors -i -c China -m
    Traceback (most recent call last):
    File “/usr/bin/pacman-mirrors”, line 28, in <module>
    pm.run()
    File “/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py”, line 86, in run
    cli.parse_command_line(self, GTK_AVAILABLE)
    File “/usr/lib/python3.6/site-packages/pacman_mirrors/functions/cli.py”, line 146, in parse_command_line
    args = parser.parse_args()
    File “/usr/lib/python3.6/argparse.py”, line 1730, in parse_args
    args, argv = self.parse_known_args(args, namespace)
    File “/usr/lib/python3.6/argparse.py”, line 1762, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
    File “/usr/lib/python3.6/argparse.py”, line 1968, in _parse_known_args
    start_index = consume_optional(start_index)
    File “/usr/lib/python3.6/argparse.py”, line 1898, in consume_optional
    arg_count = match_argument(action, selected_patterns)
    File “/usr/lib/python3.6/argparse.py”, line 2060, in _match_argument
    action.nargs) % action.nargs
    File “/usr/lib/python3.6/gettext.py”, line 618, in ngettext
    return dngettext(_current_domain, msgid1, msgid2, n)
    File “/usr/lib/python3.6/gettext.py”, line 597, in dngettext
    return t.ngettext(msgid1, msgid2, n)
    File “/usr/lib/python3.6/gettext.py”, line 454, in ngettext
    tmsg = self._catalog[(msgid1, self.plural(n))]
    File “<string>”, line 4, in func
    File “/usr/lib/python3.6/gettext.py”, line 166, in _as_int
    (n.__class__.__name__,)) from None
    TypeError: Plural value must be an integer, got NoneType

  • manjarocn 回复

    我刚试了下,去掉最后一个-m可以正常工作。
    否则跟你的情况一样。

    • suxingyu 回复

      我出去了一下,回来电脑锁屏了然后一直无限自动认证失败,连密码都输不了。。我强制重启了下就卡在start TLP system startup/shutdown不动了,开不了机了就。。

  • manjarocn 回复

    suxingyu同学,

    有问题请学会用搜索引擎和archwiki寻找答案。
    archwiki有中文翻译。

    如果什么都不愿意探索,恐怕连Windows都难用。

  • sh 回复

    error: failed to initialize alpm library
    (could not open database: /var/lib/pacman/)

回复:pacman-mirrors运行出错,这是啥原因呀?
您的信息:


«-必填


«-必填,不公开


«-可以推广您的网站

+ 54 = 63