AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1495051
Accepted
Stanislav C.
Stanislav C.
Asked: 2019-10-23 23:24:35 +0800 CST2019-10-23 23:24:35 +0800 CST 2019-10-23 23:24:35 +0800 CST

添加 Remi 存储库时“请求的数据类型主要不可用”

  • 772

在我们的日常自动测试中,我们使用 Ansible 从 Remi 的存储库安装 PHP 7.3。通常它工作正常,但有时(一个月几次)它会失败,并出现如下错误:

fatal: [vm1.int.zone]: FAILED! => {
"changed": false, 
"invocation": {
    "module_args": {
        "allow_downgrade": false, 
        "conf_file": null, 
        "disable_gpg_check": false, 
        "disable_plugin": [], 
        "disablerepo": null, 
        "enable_plugin": [], 
        "enablerepo": "epel,remi,remi-php73", 
        "exclude": null, 
        "install_repoquery": true, 
        "installroot": "/", 
        "list": null, 
        "name": [
            "php", 
            "php-mcrypt", 
            "php-mbstring", 
            "php-xml", 
            "php-xsl", 
            "php-xmlrpc", 
            "php-pdo", 
            "php-cli", 
            "php-pgsql", 
            "php-pspell", 
            "php-pecl-ssh2", 
            "php-pecl-zip", 
            "php-smbclient", 
            "php-intl", 
            "php-mysql", 
            "php-curl", 
            "php-xdebug", 
            "php-process"
        ], 
        "security": false, 
        "skip_broken": false, 
        "state": "installed", 
        "update_cache": false, 
        "update_only": false, 
        "validate_certs": true
    }
}, 
"msg": "Failure talking to yum: requested datatype primary not available"

有 3 个 Remi 存储库:

# ll -d /var/cache/yum/x86_64/7/remi*
drwxr-xr-x 4 root root 4096 Oct 22 22:12 /var/cache/yum/x86_64/7/remi
drwxr-xr-x 4 root root 4096 Oct 22 22:12 /var/cache/yum/x86_64/7/remi-php73
drwxr-xr-x 4 root root 4096 Oct 22 22:12 /var/cache/yum/x86_64/7/remi-safe

如果运行某些 yum 命令,其中任何一个都会导致问题,例如:

# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror2.int.zone
 * epel: mirror2.int.zone
 * extras: mirror2.int.zone
 * remi-safe: mirror.serverion.com
 * updates: mirror2.int.zone
Error: requested datatype primary not available

如果禁用 Remi 的存储库,一切正常。问题在于 Remi 存储库的缓存损坏,例如:

# ll /var/cache/yum/x86_64/7/remi-php73/
total 20
-rw-r--r-- 1 root root    0 Oct 22 22:12 cachecookie
drwxr-xr-x 2 root root 4096 Oct 22 22:12 gen
-rw-r--r-- 1 root root 2996 Oct 22 22:12 mirrorlist.txt
drwxr-xr-x 2 root root 4096 Oct 22 22:12 packages
-rw-r--r-- 1 root root 2259 Oct 22 22:12 repomd.xml

# ll /var/cache/yum/x86_64/7/remi-php73/gen/
total 0

通常,此目录如下所示:

# ll /var/cache/yum/x86_64/7/remi-php73/
total 232
-rw-r--r-- 1 root root 211219 Oct 22 14:03 7042a64df80e22496ef9a31990242357a84898e0f0272915cf7cce20b705d863-primary.sqlite.bz2
-rw-r--r-- 1 root root      0 Oct 23 04:24 cachecookie
drwxr-xr-x 2 root root   4096 Oct 23 04:24 gen
-rw-r--r-- 1 root root   2996 Oct 23 04:24 mirrorlist.txt
drwxr-xr-x 2 root root   4096 Oct 23 04:25 packages
-rw-r--r-- 1 root root   3095 Oct 22 14:03 repomd.xml

# ll /var/cache/yum/x86_64/7/remi-php73/gen/
total 996
-rw-r--r-- 1 root root 1015808 Oct 22 14:03 primary_db.sqlite

所以文件{long_id}-primary.sqlite.bz2和gen/primary_db.sqlite有时会因为某种原因丢失。

问题是这可能是什么原因?

centos yum
  • 1 1 个回答
  • 936 Views

1 个回答

  • Voted
  1. Best Answer
    Stanislav C.
    2019-11-23T02:39:30+08:002019-11-23T02:39:30+08:00

    事实证明,问题出在某个破碎的镜子上,请参阅主题:

    https://forum.remirepo.net/viewtopic.php?pid=10903#p10903

    • 0

相关问题

  • psql 未定义符号:PQsetErrorContextVisibility

  • Eclipse 氧气 3a java.lang.NoClassDefFoundError

  • 在 CentOS 7 中设置 PGOPTS 变量的位置

  • 如何从Win10使用RDP登录Centos 7

  • 如何在CentOS 7 中将Ctrl+C 永久更改为Ctrl+K?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve