下载www.example.com时发生curl错误6https://flex.symfony.com/versions.json:无法解析主机:flex.symfony.com

e37o9pze  于 2022-11-16  发布在  其他
关注(0)|答案(1)|浏览(243)

我正在使用symfony4.4

$composer update

curl error 6 while downloading https://flex.symfony.com/versions.json: Could not resolve host: flex.symfony.com

出现了错误,我在谷歌上搜索了一下,发现了这篇文章。
Error with Symfony Flex: You have misconfigured DNS resolver(s)
我试过了,

$composer update symfony/flex --no-plugins --no-scripts

然而错误又来了。

Cannot update only a partial set of packages without a lock file present. Run `composer update` to generate a lock file.

我需要执行composer更新以生成锁定文件,但composer更新显示错误。
这是一个永恒的循环.....
你能给点提示吗?
我的 composer . json

{
    "type": "project",
    "license": "proprietary",
    "require": {
        "php": "8.*",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "api-platform/api-pack": "^1.1",
        "msgphp/user-bundle": "0.15.*",
        "sensio/framework-extra-bundle": "^5.2",
        "sonata-project/admin-bundle": "3.*",
        "sonata-project/datagrid-bundle": "3.*",
        "sonata-project/doctrine-orm-admin-bundle": "3.*",
        "symfony/apache-pack": "^1.0",
        "symfony/console": "*",
        "symfony/debug-pack": "^1.0",
        "symfony/dom-crawler": "4.4.*",
        "symfony/finder": "*",
        "symfony/flex": "^2.2.3",
        "symfony/form": "4.4.*",
        "symfony/framework-bundle": "*",
        "symfony/maker-bundle": "^1.8",
        "symfony/orm-pack": "^2.0",
        "symfony/security-bundle": "*",
        "symfony/serializer": "*",
        "symfony/swiftmailer-bundle": "^3.2",
        "symfony/translation": "*",
        "symfony/twig-bundle": "*",
        "symfony/validator": "*",
        "symfony/web-server-bundle": "4.4.*",
        "symfony/webpack-encore-bundle": "1.*",
        "symfony/yaml": "*"
    },
    "require-dev": {
        "doctrine/doctrine-fixtures-bundle": "^3.4",
        "phpunit/phpunit": "^9.5",
        "symfony/browser-kit": "*",
        "symfony/css-selector": "*",
        "symfony/dotenv": "*",
        "symfony/phpunit-bridge": "*",
        "symfony/profiler-pack": "^1.0"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true,
        "allow-plugins": {
            "symfony/flex": true
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
        }
    },
    "replace": {
        "paragonie/random_compat": "2.*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": false,
            "require": "4.4.*"
        }
    }
}
z31licg0

z31licg01#

这不是你现在能解决的

$ host flex.symfony.com
Host flex.symfony.com not found: 3(NXDOMAIN)

这仅仅意味着DNS不知道www.example.com这样的主机flex.symfony.com。这可能是他们的委派问题或类似的问题,但这不是你能修复的。
以后您可以随时使用https://isitdownrightnow.com等服务来查看这是您的本地DNS问题还是影响到所有人:

相关问题